mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
Your reaction to this commit were remarkable. You demanded with an imperious kind to revert this commit. You spoke about any rules only, and I didn't hear evidencing explanations from you. Admittedly, my commit wasn't very pretty and not the best style because everything was squashed in a single commit with some customizations, but which is ultimately just a formality... that's about it, and was quite compliant with license conditions. In additional, your name was noted on the commit. I'm just reminding you, until a few years ago, you didn't care about licenses. The general copyright mainly lies with yjogol and a lot of changes of the origin yweb code has been coming in by several committers since yweb exists. I won't judge, whether any unique selling points play a role, but such restrictions are exactly what the license should prevent. Especially as, many creeped in brandings in some code parts (not only yweb) do suggest that. Besides neutralizing such things, mainly it was the purpose to get more compatibility, even though some functionalities were removed or switched off. Related to yweb I have decided to take back this commit for the sake of peace, and I hope you are happy with it. However, I still reserve to continue using and adopting yweb.
133 lines
4.1 KiB
Plaintext
133 lines
4.1 KiB
Plaintext
{=global-var-set:alpha=true=}
|
|
{=include-block:Y_Blocks.txt;head=}
|
|
<script type="text/javascript" src="/prototype.js"></script>
|
|
<script type="text/javascript" src="/Y_Baselib.js"></script>
|
|
<script type="text/javascript" src="/Y_yweb.js"></script>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
/*Indicator*/
|
|
var g_i_active = false;
|
|
var g_i_counter = 0;
|
|
var g_i_rec_state = new Array(" REC ", " (REC) ", " ((REC)) ", "(((REC)))");
|
|
var g_i_recording = false;
|
|
function i_state_check(){
|
|
var res = "";
|
|
//var res = loadSyncURL("/control/setmode?status");
|
|
g_i_recording = (res.search(/on/)!=-1);
|
|
}
|
|
function i_state_view(){
|
|
if(g_i_recording)
|
|
document.getElementById('state').innerHTML = g_i_rec_state[g_i_active %4];
|
|
else
|
|
document.getElementById('state').innerHTML = "";
|
|
}
|
|
function i_clock(){
|
|
now = new Date();
|
|
var hour = now.getHours();
|
|
var min = now.getMinutes();
|
|
if(hour < 10)
|
|
hour = "0" + hour;
|
|
if(min < 10)
|
|
min = "0" + min;
|
|
document.getElementById('clock').innerHTML = hour + ":" + min;
|
|
}
|
|
function i_interval(){
|
|
if(g_i_active<12)
|
|
g_i_active++;
|
|
else{
|
|
g_i_active=0;
|
|
i_clock();
|
|
i_state_check();
|
|
}
|
|
i_state_view();
|
|
}
|
|
function i_start(){
|
|
g_i_counter = 0;
|
|
i_clock();
|
|
g_i_active = window.setInterval('i_interval()', 1000);
|
|
add_yExtensions('main', 'menu_prim');
|
|
}
|
|
function i_stop(){
|
|
window.clearInterval(g_i_active);
|
|
}
|
|
/* frame navigation */
|
|
function nav_prim(_prim){
|
|
top.top_main.base.location.href="Y_Dyn_Pages.yhtm?page=frame_"+_prim;
|
|
}
|
|
function nav_work(_work){
|
|
top.top_main.base.work.location.href=_work;
|
|
}
|
|
var g_work="";
|
|
function _nav_work(){
|
|
top.top_main.base.work.location.href=g_work;
|
|
}
|
|
function nav(_prim, _work){
|
|
g_work=_work;
|
|
nav_prim(_prim);
|
|
window.setTimeout("_nav_work()",300);
|
|
}
|
|
function vlc() {
|
|
var vlc_url = loadSyncURL("/control/build_live_url?vlc_link=true");
|
|
window.open("/tmp/vlc.m3u?"+Math.random(),"_blank");
|
|
}
|
|
//]]>
|
|
</script>
|
|
<style>
|
|
#prim{
|
|
background: url(/images/tux-yweb.png) no-repeat left top;
|
|
height:38px;
|
|
}
|
|
</style>
|
|
</head>
|
|
{=var-set:alt_httpd={=ini-get:%(CONFIGDIR)/nhttpd.conf;WebsiteMain.override_directory;%(PUBLIC_HTTPDDIR)=}=}
|
|
{=var-set:vf={=if-file-exists:{=var-get:alt_httpd=}/Y_Version.txt~{=var-get:alt_httpd=}/Y_Version.txt~Y_Version.txt=}=}
|
|
<body>
|
|
<div class="y_menu_prim_box">
|
|
<div class="y_menu_prim_box_head"><div class="y_menu_prim_box_head_h2"></div></div>
|
|
<div class="y_menu_prim_box_body">
|
|
<table border="0" width="100%">
|
|
<tr>
|
|
<td width="150" id="prim">
|
|
<span style="font-size: 8pt;position:relative;left:45px;top:10px;">v{=ini-get:{=var-get:vf=};version=}</span>
|
|
</td>
|
|
<td>
|
|
<ul id="menu_prim" class="y_menu_prim">
|
|
<li><a target="base" href="Y_Dyn_Pages.yhtm?page=frame_boxcontrol"
|
|
title="{=L:main.boxcontrol_desc=}">{=L:main.boxcontrol=}</a></li>
|
|
<li><a target="base" href="Y_Dyn_Pages.yhtm?page=frame_tools"
|
|
title="{=L:main.tools_desc=}">{=L:main.tools=}</a></li>
|
|
<li><a target="base" href="Y_Dyn_Pages.yhtm?page=frame_settings"
|
|
title="{=L:main.settings_desc=}">{=L:main.settings=}</a></li>
|
|
<!-- unused
|
|
<li><a target="base" href="Y_Dyn_Pages.yhtm?page=frame_ext"
|
|
title="{=L:main.extensions_desc=}">{=L:main.extensions=}</a></li>
|
|
-->
|
|
<li><a target="base" href="Y_Dyn_Pages.yhtm?page=frame_info"
|
|
title="{=L:main.info_desc=}">{=L:main.info=}</a></li>
|
|
</ul>
|
|
</td>
|
|
<td>
|
|
<span class="control_icon">
|
|
<a target="base" href="Y_Tools_Screenshot.yhtm?osd=1" title="{=L:main.remote_full_desc=}"><img src="/images/fb.png"></a>
|
|
<a href="javascript:vlc()" title="{=L:main.stream_to_vlc_client_desc=}"><img src="/images/vlc.png"></a>
|
|
</span>
|
|
</td>
|
|
<td align="right">
|
|
<span id="state" style="color : red;font-family: Courier New, Courier, monospace;"> </span>
|
|
<span id="box_name" {=if-empty:{=ini-get:%(CONFIGDIR)/Y-Web.conf;yweb_box_color=}~~style="color : #{=ini-get:%(CONFIGDIR)/Y-Web.conf;yweb_box_color=};"=}>
|
|
{=ini-get:%(CONFIGDIR)/Y-Web.conf;yweb_box_name=}</span>
|
|
<span id="clock">00:00</span>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
i_start();
|
|
//]]>
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|