Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.66 KB | None | 0 0
  1. <html>
  2. <head>
  3.  
  4.  
  5. <script type="text/javascript" charset="utf-8"></script>
  6.  
  7. <script type="text/javascript" src="Files/js/clock.js"></script>
  8. <script type="text/javascript" src="Files/js/Convert.js"></script>
  9. <script type="text/javascript" src="Files/js/WeatherMain.js"></script>
  10. <script type="text/javascript" src="Files/js/FIO.js"></script>
  11. <script type="text/javascript" src="Config.js"></script>
  12.  
  13. <style>
  14.  
  15.  
  16. body{
  17. position: fixed;
  18. height: 100%;
  19. width:100%;
  20. margin: 0;
  21. padding: 0;
  22. color: #ffffff;
  23. font-family:lite;
  24. text-shadow: 0px 1px 1px #000;
  25. }
  26.  
  27. @font-face{
  28. font-family: geo-light;
  29. src:url(Files/fonts/geo-light.otf);
  30. }
  31. @font-face{
  32. font-family:geo;
  33. src:url(Files/fonts/geo.otf);
  34. }
  35. @font-face {
  36. font-family: 'lite';
  37. src: url('Files/fonts/lite.ttf');
  38. }
  39.  
  40.  
  41. #BG{
  42.  
  43. position:absolute; top:0%; left:0%; width:100%; -webkit-backdrop-filter:blur(2px); height:30%; background-color:rgba(0,0,0,0.40);
  44. box-shadow: 0 12px 18px -8px black;
  45. z-index:0;}
  46.  
  47.  
  48.  
  49. #L{
  50. position:absolute; top:29.99%; left:0%; width:100%; height:0.1%; z-index:1;
  51. background-color:black;
  52. opacity:0.6;}
  53.  
  54. #R{
  55. position:absolute; top:30%; left:0%; width:100%; height:98%; z-index:-1; opacity:0;
  56. background-color:#2d2d2d;
  57. border-top:solid 1 rgba(238,238,238,0.6);
  58. box-shadow:0px 0px 20px rgba(0,0,0, 0.6);
  59. }
  60.  
  61.  
  62. .iWidget{
  63.  
  64. position: absolute; width: 100%; height: 100%;}
  65.  
  66.  
  67. .iWidget div{
  68.  
  69. position: relative; color:white; width: 100%; //text-align: center; //font-variant: small-caps; z-index: 2;}
  70.  
  71. #Today{
  72. position: absolute;
  73. top: 4%;
  74. left: 1.5%;
  75. width: 100%;
  76. text-align: left;
  77. z-index: 50;
  78. }
  79. #time{font-family:geo; font-size:28px;}
  80. #cal{font-size: 14px;}
  81.  
  82. #Info{
  83. position:absolute;
  84. top: 21.55%;
  85. left: 1.5%;
  86. width: 93.55%;
  87. text-align: left;
  88. font-size: 13px;
  89. z-index:50;
  90. text-shadow: 0px 1px 1px #000;
  91. }
  92.  
  93. #tod,#device{color: #ff9900; text-shadow: 0px 1px 1px #000;}
  94.  
  95.  
  96. #icon{
  97. position: absolute;top: 0%; left: 0%; height:30%; width:100%; opacity:0.9; z-index: -2;}
  98.  
  99.  
  100. </style>
  101. </head>
  102.  
  103.  
  104. <body>
  105.  
  106. <div id="L"></div>
  107. <div id="R"></div>
  108. <div id="BG"></div>
  109.  
  110. <div class="iWidget">
  111. <div id="Today">
  112. <a id="time"></a><br>
  113. <div id="cal"></div>
  114. </div>
  115.  
  116. <div id="Info">
  117. <a id="tod">Afternoon </a> <a id="device"> </a> <a id="Forecast">Weather </a> <a id="LevelDisplay">
  118. </a> <a id="StateDisplay"> </a>
  119. </div>
  120.  
  121. <img id="icon" src="Files/Weather/Custom/dunno.jpg"/>
  122.  
  123. </div>
  124.  
  125.  
  126.  
  127. <script type="text/javascript">
  128.  
  129. clock({
  130.  
  131. twentyfour : twentyfourh,
  132.  
  133. padzero : pad,
  134.  
  135. refresh : 5000,
  136.  
  137. success: function(clock){
  138.  
  139. document.getElementById('time').innerHTML = clock.hourtext() + " " + clock.minuteonetext() + " " + clock.minutetwotext();
  140.  
  141. document.getElementById('cal').innerHTML = clock.sdaytext() + " " + clock.dateplus() + " " + clock.smonthtext();
  142.  
  143. document.getElementById('tod').innerHTML = "Good " + clock.tod();
  144.  
  145. }
  146.  
  147. });
  148.  
  149.  
  150.  
  151. function mainUpdate(type){
  152. if (type == "battery"){
  153.  
  154. document.getElementById('LevelDisplay').innerHTML = " | Battery Level is " + batteryPercent + "%";
  155.  
  156. //document.getElementById("LevelDisplay").innerHTML = "The battery is currently " + tWords[Number(batteryPercent)] + " " + 'Percent';
  157. document.getElementById('StateDisplay').innerHTML = (batteryCharging) ? " Charging" : " ";
  158. }
  159.  
  160. if(type == "system"){
  161.  
  162. document.getElementById('device').innerHTML = deviceName + "! ";
  163. }
  164. }
  165.  
  166. </script>
  167.  
  168.  
  169.  
  170. </body>
  171.  
  172. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement