~carstengrohmann/OOMAnalyser

044a152f2818fe1b7399878ece13232c6c8df785 — Carsten Grohmann 4 years ago 007f425 v0.1.0
Add version number to the footer and set the version to "0.1.0"
2 files changed, 6 insertions(+), 1 deletions(-)

M OOMAnalyser.html
M OOMAnalyser.py
M OOMAnalyser.html => OOMAnalyser.html +1 -1
@@ 450,7 450,7 @@ function goBack() {
<hr/>

<div class="footer">
    OOMAnalyser |
    OOMAnalyser <span id="version"></span> |
    Copyright (C) 2017 Carsten Grohmann |
    <a href="javascript:void(0);" onclick="OOMAnalyser.toggle('license')" title="Show / hide license text">License: MIT</a> |
    <a href="https://github.com/CarstenGrohmann/OOMAnalyser" title="Source code on GitHub">Source Code on GitHub</a>

M OOMAnalyser.py => OOMAnalyser.py +5 -0
@@ 10,6 10,8 @@ import re
DEBUG=False
"""Show additional information during the development cycle"""

VERSION="0.1"
"""Version number"""

def hide_element(element_id):
    """Hide the given HTML element"""


@@ 396,6 398,9 @@ Killed process 6576 (java) total-vm:33914892kB, anon-rss:20629004kB, file-rss:0k
    def __init__(self):
        self._set_defaults()

        element = document.getElementById('version')
        element.textContent = "v{}".format(VERSION)

    def _set_single_item(self, item):
        """
        Set content of a single item to the HTML element with the same name.