You are not logged in.
Pages: 1
hello, in Oneye 9.0 I would insert the html code, but when I insert the tag in the <html> aceuille page, bone does not want to show me the screen connection, how?
Thank you in advance
Offline
oneye is a little more complex than normal websites are. Editing of index.php is neither recommended, nor helpful for things like these.
In order to add some HTML elements or such, you'll need to edit "eyeX" application's code in "system/apps/eyeX/app.eyecode".
Best regards,
Lars Knickrehm
The oneye project.
Offline
I would like to insert the code, it lets you create a navigation bar, but I do not know what file to insert ?
<?php
echo "<html> \n";
echo "<head>\n";
echo "<meta charset=\"utf-8\">\n";
echo "\n";
echo " <!--Stylesheet that satyles the charms bar and the startbutton -->\n";
echo " <link rel=\"stylesheet\" href=\".././Apps/bar/css/appbase.css\"/>\n";
echo "\n";
echo " <!--Script that powers the charms bar-->\n";
echo " <script>\n";
echo " function visibility(visibility , target) {\n";
echo " document.getElementById(target).style.display=visibility;\n";
echo " }\n";
echo " </script>\n";
echo " <script>\n";
echo " function doublevisibility(visibility , target , target2) {\n";
echo " document.getElementById(target).style.display=visibility;\n";
echo " document.getElementById(target2).style.display=visibility;\n";
echo " }\n";
echo " </script>\n";
echo " <link rel=\"stylesheet\" href=\"../../../Apps/css/appbase.css\"/>\n";
echo " <script>\n";
echo " $(document).ready(function() {\n";
echo " $(\".search_input\").keyup(function() {\n";
echo " $(\"#hugelogo\").fadeOut();\n";
echo " $(\"#viewer\").fadeOut();\n";
echo " $(\"#close\").fadeOut();\n";
echo " $(\"#tipbox\").fadeOut();\n";
echo " $(\"#logo\").fadeIn();\n";
echo " $(\"#video\").fadeIn();\n";
echo " $(\"viewer\").src='';\n";
echo " });\n";
echo " $(\"#close\").click(function() {\n";
echo " $(\"#close\").fadeOut();\n";
echo " $(\"#viewer\").fadeOut();\n";
echo " $(\"#video\").fadeIn();\n";
echo " $(\"viewer\").src='';\n";
echo " });\n";
echo " }); \n";
echo " </script>\n";
echo " <script>\n";
echo " function showframe() {\n";
echo " document.getElementById('viewer').style.display='block';\n";
echo " document.getElementById('close').style.display='block';\n";
echo " document.getElementById('video').style.display='none';\n";
echo " }\n";
echo " </script>\n";
echo "</head> \n";
echo "<body>\n";
echo " <!-- CHARMS BAR CODE -->\n";
echo "<div id=\"charmsbar\" onmouseover=\"doublevisibility('inline','charmsbar','datetime')\" onmouseout=\"doublevisibility('none','charmsbar','datetime')\" >\n";
echo " <img src=\"../../../Apps/bar/images/full.png\" onclick='function launchFullScreen(element) {\n";
echo " if(element.requestFullScreen) {\n";
echo " element.requestFullScreen();\n";
echo " } else if(element.mozRequestFullScreen) {\n";
echo " element.mozRequestFullScreen();\n";
echo " } else if(element.webkitRequestFullScreen) {\n";
echo " element.webkitRequestFullScreen();\n";
echo " }\n";
echo "}\n";
echo "launchFullScreen(document.documentElement);\n";
echo "launchFullScreen(document.getElementById(\"videoElement\"));' onclick=\"visibility('block','settingscharms')\" onmouseover=\"this.src='../../../Apps/bar/images/full-hover.png'\" onmouseout=\"this.src='../../../Apps/bar/images/full.png'\"/><br/>\n";
echo "\n";
echo " <img src=\"../../../Apps/bar/images/small.png\" onclick='function cancelFullscreen() {\n";
echo " if(document.cancelFullScreen) {\n";
echo " document.cancelFullScreen();\n";
echo " } else if(document.mozCancelFullScreen) {\n";
echo " document.mozCancelFullScreen();\n";
echo " } else if(document.webkitCancelFullScreen) {\n";
echo " document.webkitCancelFullScreen();\n";
echo " }\n";
echo "}\n";
echo "\n";
echo "// Cancel fullscreen for browsers that support it!\n";
echo "cancelFullscreen();'\n";
echo "onclick=\"visibility('block','settingscharms')\" onmouseover=\"this.src='../../../Apps/bar/images/small-hover.png'\" onmouseout=\"this.src='../../../Apps/bar/images/small.png'\"/><br/>\n";
echo "\n";
echo " <img src=\"../../../Apps/bar/images/share.png\" onclick=\"javascript:location.reload();\" onclick=\"visibility('block','sharecharms')\" onmouseover=\"this.src='../../../Apps/bar/images/share-hover.png'\" onmouseout=\"this.src='../../../Apps/bar/images/share.png'\"/><br/>\n";
echo " </div>\n";
echo " <div id=\"datetime\">\n";
echo " <img src=\"../../../Apps/bar/images/network.png\" id=\"iconnetwork\" height=\"24px\" width=\"24px\"/>\n";
echo " <img src=\"../../../Apps/bar/images/battery.png\" id=\"iconbattery\"/>\n";
echo " <span id=\"ctime\"></span>\n";
echo " <script>\n";
echo " function clock() {\n";
echo " var digital = new Date();\n";
echo " var hours = digital.getHours();\n";
echo " var minutes = digital.getMinutes();\n";
echo " var seconds = digital.getSeconds();\n";
echo " var amOrPm = \"AM\";\n";
echo " if (hours > 11) amOrPm = \"PM\";\n";
echo " if (hours > 12) hours = hours - 12;\n";
echo " if (hours == 0) hours = 12;\n";
echo " if (minutes <= 9) minutes = \"0\" + minutes;\n";
echo " if (seconds <= 9) seconds = \"0\" + seconds;\n";
echo " dispTime = hours + \":\" + minutes ;\n";
echo " document.getElementById('ctime').innerHTML = dispTime;\n";
echo " setTimeout(\"clock()\", 1000);\n";
echo " }\n";
echo " window.onload=clock;\n";
echo " </script>\n";
echo " <div id=\"date\">\n";
echo " <script>\n";
echo "\n";
echo " var dayName = new Array (\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\")\n";
echo "\n";
echo " var monName = new Array (\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\")\n";
echo "\n";
echo " var now = new Date\n";
echo "\n";
echo " document.write(\"\" + dayName[now.getDay()] + \"<br/>\" +\"<span id=month>\" + monName[now.getMonth()] + \" \"+now.getDate() +\"\")\n";
echo " </script>\n";
echo " </div>\n";
echo " </div>\n";
echo " <div id=\"hoverarea\" onmouseover=\"doublevisibility('inline','charmsbar','datetime')\" class=\"hotcorner\"></div>\n";
echo " <div id=\"bottomhoverarea\" onmouseover=\"doublevisibility('inline','charmsbar','datetime')\" class=\"hotcorner\"></div>\n";
echo " <div id=\"starthoverarea\" onmouseover=\"visibility('inline','startbutton')\" class=\"hotcorner\"></div>\n";
echo "</body> \n";
echo "</html> \n";
echo " \n";
echo "\n";
?>
Last edited by sazearte (2013-11-23 12:41:16)
Offline
you are not ideas ?
Offline
I want to set up a bar that appears when the mouse dot on the right edge of the page.
For now I'm an iframe, the iframe contains Oneye the web page it my bar.
I try to insert this code in eyelogin, or app.eyedoc in eyeX, or in the index.php file, but nothing works.
Last edited by sazearte (2013-12-04 13:44:30)
Offline
Pages: 1