Advertisement
Guest User

Untitled

a guest
Jan 29th, 2016
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1.  
  2. root@OpenWrt:~# cat /usr/share/3ginfo/index2.html
  3. <html>
  4. <style type="text/css">
  5. body {font-family: Verdana, Arial, Helvetica, sans-serif;}
  6. .button {width:150px;}
  7. a:link {text-decoration:none;color:blue;}
  8. a:visited {text-decoration:none;color:blue;}
  9. a:active {text-decoration:none;color:blue;}
  10. a:hover {text-decoration:underline;color:blue;}
  11. .c {margin:auto;text-align:center;clear:both;}
  12. .l {width:39%;clear:both;float:left;text-align:right;}
  13. .r {width:59%;float:right; text-align:left;}
  14. </style>
  15. <head>
  16. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  17. <title>3G/LTE info</title>
  18. <script language="javascript" type="text/javascript">
  19. function detailson() {
  20. document.getElementById('details').style.display = "inline";
  21. document.getElementById('details_on').style.display = "none";
  22. document.getElementById('details_off').style.display = "inline";
  23. }
  24.  
  25. function detailsoff() {
  26. document.getElementById('details').style.display = "none";
  27. document.getElementById('details_on').style.display = "inline";
  28. document.getElementById('details_off').style.display = "none";
  29. }
  30.  
  31. function trzyginfo(zrodlo, reload) {
  32. var a;
  33.  
  34. try {a = new XMLHttpRequest();} catch (e) {
  35. try {a = new ActiveXObject("Msxml2.XMLHTTP");} catch (e) {
  36. try {a = new ActiveXObject("Microsoft.XMLHTTP");} catch (e) {
  37. alert("Coś stara ta przelądarka...");
  38. return false;
  39. }
  40. }
  41. }
  42.  
  43. document.getElementById('loader').style.display = "block";
  44. document.getElementById('zawartosc').innerHTML = "";
  45.  
  46. a.open("GET", zrodlo);
  47.  
  48. a.onreadystatechange = function() {
  49. if (a.readyState == 4) {
  50. document.getElementById('loader').style.display = "none";
  51. document.getElementById('zawartosc').innerHTML = a.responseText;
  52. if (reload == 1) {
  53. location.reload(true);
  54. }
  55. }
  56. }
  57.  
  58. a.send(null);
  59. }
  60. </script>
  61. </head>
  62. <body onload="trzyginfo('cgi-bin/3ginfo.sh',0);">
  63.  
  64. <table style='width:100%;height:100%;'>
  65. <tr><td colspan=3 style='height:100px;'>&nbsp;</td></tr>
  66. <tr>
  67. <td>&nbsp;</td>
  68. <td style='width:600px; height:200px;'>
  69. <div id='zawartosc'></div>
  70. <div id='loader' style="text-align:center;display:block;"><img src="loader.gif"></div>
  71. </td>
  72. <td>&nbsp;</td>
  73. </tr>
  74. <tr><td colspan=3>&nbsp;</td></tr>
  75. </table>
  76.  
  77. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement