mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 07:22:57 +02:00
yWeb/Y_Tools: drop prototype.js; use jquery
Origin commit data
------------------
Branch: ni/coolstream
Commit: 839e7aa4a8
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-02-02 (Thu, 02 Feb 2023)
Origin message was:
------------------
- yWeb/Y_Tools: drop prototype.js; use jquery
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{=var-set:cancache=yPyes=}
|
{=var-set:cancache=yPyes=}
|
||||||
{=include-block:Y_Blocks.txt;head=}
|
{=include-block:Y_Blocks.txt;head=}
|
||||||
|
{=include-block:Y_Blocks.txt;jQuery=}
|
||||||
<script type="text/javascript" src="/Y_Baselib.js"></script>
|
<script type="text/javascript" src="/Y_Baselib.js"></script>
|
||||||
<script type="text/javascript" src="/prototype.js"></script>
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
//<![CDATA[
|
//<![CDATA[
|
||||||
function goConfirmUrl(_meld, _url){
|
function goConfirmUrl(_meld, _url){
|
||||||
@@ -13,7 +13,7 @@ function goUrl(_url){
|
|||||||
case "1": res="on"; break;
|
case "1": res="on"; break;
|
||||||
case "0": res="off"; break;
|
case "0": res="off"; break;
|
||||||
}
|
}
|
||||||
$("out").update(res);
|
jQuery('#out').text(res);
|
||||||
}
|
}
|
||||||
function set_btn_standby(){
|
function set_btn_standby(){
|
||||||
var res = trim(loadSyncURL("/control/standby"));
|
var res = trim(loadSyncURL("/control/standby"));
|
||||||
@@ -22,10 +22,10 @@ function set_btn_standby(){
|
|||||||
case "off": color = "green"; break;
|
case "off": color = "green"; break;
|
||||||
case "on": color = "red"; break;
|
case "on": color = "red"; break;
|
||||||
}
|
}
|
||||||
document.getElementById('btn_standby').style.borderColor = color;
|
id('btn_standby').style.borderColor = color;
|
||||||
}
|
}
|
||||||
function standby(_standby){
|
function standby(_standby){
|
||||||
var _cec = (document.getElementById('checkCEC').checked == true) ? "on" : "off";
|
var _cec = (id('checkCEC').checked == true) ? "on" : "off";
|
||||||
goUrl("/control/standby?"+_standby+"&cec="+_cec);
|
goUrl("/control/standby?"+_standby+"&cec="+_cec);
|
||||||
}
|
}
|
||||||
function init() {
|
function init() {
|
||||||
|
@@ -1,21 +1,21 @@
|
|||||||
{=include-block:Y_Blocks.txt;head=}
|
{=include-block:Y_Blocks.txt;head=}
|
||||||
|
{=include-block:Y_Blocks.txt;jQuery=}
|
||||||
<script type="text/javascript" src="/Y_Baselib.js"></script>
|
<script type="text/javascript" src="/Y_Baselib.js"></script>
|
||||||
<script type="text/javascript" src="/prototype.js"></script>
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
//<![CDATA[
|
//<![CDATA[
|
||||||
function do_start(){
|
function do_start(){
|
||||||
$('statusline').show();
|
jQuery('#statusline').show();
|
||||||
do_check();
|
do_check();
|
||||||
}
|
}
|
||||||
function do_stop(){
|
function do_stop(){
|
||||||
$('statusline').hide();
|
jQuery('#statusline').hide();
|
||||||
}
|
}
|
||||||
/*sLog*/
|
/*sLog*/
|
||||||
var sLog_body;
|
var sLog_body;
|
||||||
var sLog_line_number;
|
var sLog_line_number;
|
||||||
function sLog_init(){
|
function sLog_init(){
|
||||||
sLog_line_number = 0;
|
sLog_line_number = 0;
|
||||||
sLog_body=document.getElementById("slog_list");
|
sLog_body=id("slog_list");
|
||||||
}
|
}
|
||||||
function sLog_clear(){
|
function sLog_clear(){
|
||||||
while(sLog_body.childNodes.length > 0) {
|
while(sLog_body.childNodes.length > 0) {
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
version=3.0.8
|
version=3.0.9
|
||||||
date=02.02.2023
|
date=02.02.2023
|
||||||
info=NI-Neutrino-Webinterface
|
info=NI-Neutrino-Webinterface
|
||||||
|
Reference in New Issue
Block a user