diff options
author | Sebastian Reichel <sre@ring0.de> | 2018-06-29 00:58:19 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2018-07-15 22:59:57 +0200 |
commit | 22df08c29f6e4566d418e2a80a8279303406a733 (patch) | |
tree | decb3029284b966635855e1684bc07ef9d3c1a6f /templates/stats/stock.html | |
parent | 17560f8bf49a0be2e0b490159e29f4894fe12cba (diff) | |
download | serial-barcode-scanner-22df08c29f6e4566d418e2a80a8279303406a733.tar.bz2 |
build: switch to meson buildsystem
We build the project with 'meson' now instead of using custom
configure script + GNU Makefiles. To build the project, go to
the project root directory and use the following commands:
Building:
meson build
cd build
ninja
Update Language Files:
ninja shopsystem-pot
ninja shopsystem-update-po
Install:
DESTDIR=./tmp ninja install
Diffstat (limited to 'templates/stats/stock.html')
-rw-r--r-- | templates/stats/stock.html | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/templates/stats/stock.html b/templates/stats/stock.html deleted file mode 100644 index 710bf60..0000000 --- a/templates/stats/stock.html +++ /dev/null @@ -1,83 +0,0 @@ - <div id="placeholder" style="width:800px;height:400px;float: left;"></div> - <div style="float: left;"> - <button id="resetzoom" class="btn">Reset Zoom</button> - <br><br> - <ul id="overviewLegend"> - </ul> - </div> - -<script type="text/javascript"> -$(function () { - var datasets = {{{DATA}}}; - - // hard-code color indices to prevent them from shifting as - // countries are turned on/off - var i = 0, choiceContainer = $("#overviewLegend"); - - $.each(datasets, function(key, val) { - val.color = i; - ++i; - l = val.label; - var li = $('<li />').appendTo(choiceContainer); - - $('<input name="' + key + '" id="' + key + '" class="pcheckbox" type="checkbox" checked="checked"/>').appendTo(li); - $('<label>', { - text: l, - 'for': l - }).appendTo(li); - }); - - choiceContainer.find("input").click(plotAccordingToChoices); - - function plotAccordingToChoices() { - var data = []; - - choiceContainer.find("input:checked").each(function () { - var key = $(this).attr("name"); - if (key && datasets[key]) - data.push(datasets[key]); - }); - - var options = { - legend: { - show: true - }, - yaxis: { - mode: "amount", - min: 0 - }, - xaxis: { - mode: "time", - timeformat: "%y-%0m-%0d" - }, - zoom: { - interactive: true - }, - pan: { - interactive: true - } - } - - if (data.length > 0) - $.plot($("#placeholder"), data, options); - } - - /* first rendering to get colors */ - plotAccordingToChoices(); - - $('.legendColorBox > div').each(function(i){ - $(this).clone().prependTo(choiceContainer.find("li").eq(i)); - }); - - $("#resetzoom").click(function(eventObject) { plotAccordingToChoices(); }); - - /* uncheck all */ - choiceContainer.find("input").attr('checked', false); - - /* enable Club Mate 0.5 */ - $('input[name=product_4029764001807]').attr('checked', true) - - /* rerendering without all those graphs */ - plotAccordingToChoices(); -}); -</script> |