Files
recycled-ni-neutrino/data/y-web/Y_Tools_Screenshot_LCD4Linux.yhtm
vanhofen 817897728a yWeb/Y_Tools_Screenshot_LCD4Linux: add missing Y_Baselib.js
Origin commit data
------------------
Branch: ni/coolstream
Commit: d0e83acedc
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-02-19 (Sun, 19 Feb 2023)

Origin message was:
------------------
- yWeb/Y_Tools_Screenshot_LCD4Linux: add missing Y_Baselib.js

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2023-02-19 22:50:17 +01:00

55 lines
1.5 KiB
Plaintext

{=include-block:Y_Blocks.txt;head=}
{=include-block:Y_Blocks.txt;js_jquery=}
<script src="/Y_Baselib.js"></script>
<script>
var interval;
function do_showshot() {
jQuery('#shot').attr("src", "/tmp/lcd4linux.png?" + Math.random());
jQuery('#shot').show();
}
function do_reload(){
if (id('checkReload').checked)
interval = setInterval(do_showshot, id('inputReload').value + "000");
else
clearInterval(interval);
}
</script>
{=include-block:Y_Blocks.txt;head_close=}
<body onload="do_showshot();">
<div class="work_box" id="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:menu=LCD4Linux-{=L:bc.menue.screenshot=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<div id="screenshot_header">
<div id="buttons" style="display: block">
<div class="right">
Reload: <input type="number" value="15" id="inputReload" min="1" max="180" title="{=L:bc.screenshot.reload_desc=}" disabled /> <input id="checkReload" name="checkReload" type="checkbox" />
</div>
<div class="clear"></div>
</div>
</div>
<table cellpadding="0" class="screenshot">
<tr>
<td class="shot">
<img id="shot" src="" style="display: none" />
</td>
</tr>
</table>
</div>
</div>
<script>
id('checkReload').onclick = function() {
if (this.checked ) {
interval = setInterval(do_showshot, id('inputReload').value + "000");
id('inputReload').disabled = false;
} else {
clearInterval(interval);
id('inputReload').disabled = true;
}
};
</script>
</body>
</html>