Guest User

Untitled

a guest
May 17th, 2019
2,862
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 24.15 KB | None | 0 0
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4.  
  5.     <meta charset="utf-8">
  6.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7.     <title>HardwareMon</title>
  8.  
  9.     <!-- Bootstrap core CSS -->
  10.     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  11.  
  12.     <style>
  13.  
  14.         body {
  15.             height: 100%;
  16.             background-color: #000000;
  17.             color: #CCC;
  18.         }
  19.  
  20.     </style>
  21.  
  22. </head>
  23.  
  24. <body class="text-center">
  25.  
  26.     <!--CPU Row-->
  27.     <div class="row no-gutters" style="height: 33vh">
  28.  
  29.         <div class="col-6 col-xs-6 col-sm-6 col-md-6 p-1">
  30.  
  31.             <!--CPU Temp-->
  32.             <h4 class="p-0 m-0" style="font-size: 2vh">CPU Temp (&#8451;)</h4>
  33.             <div id="ContainerCPUTemp" style="height: 90%;"></div>
  34.  
  35.         </div>
  36.  
  37.         <div class="col-6 col-xs-6 col-sm-6 col-md-6 p-1">
  38.  
  39.             <!--CPU Load-->
  40.             <h4 class="p-0 m-0" style="font-size: 2vh">CPU Load (%)</h4>
  41.             <div id="ContainerCPULoad" style="height: 90%;"></div>
  42.  
  43.         </div>
  44.  
  45.     </div>
  46.  
  47.     <!--GPU Row-->
  48.     <div class="row no-gutters" style="height: 33vh">
  49.  
  50.         <div class="col-6 col-xs-6 col-sm-6 col-md-6 p-1">
  51.  
  52.             <!--GPU Temp-->
  53.             <h4 class="p-0 m-0" style="font-size: 2vh">GPU Temp (&#8451;)</h4>
  54.             <div id="ContainerGPUTemp" style="height: 90%;"></div>
  55.  
  56.         </div>
  57.  
  58.         <div class="col-6 col-xs-6 col-sm-6 col-md-6 p-1">
  59.  
  60.             <!--GPU Load-->
  61.             <h4 class="p-0 m-0" style="font-size: 2vh">GPU Load (%)</h4>
  62.             <div id="ContainerGPULoad" style="height: 90%;"></div>
  63.  
  64.         </div>
  65.  
  66.     </div>
  67.  
  68.     <!--RAM & HDD Row-->
  69.     <div class="row no-gutters" style="height: 33vh">
  70.  
  71.         <div class="col-6 col-xs-6 col-sm-6 col-md-6 p-1">
  72.  
  73.             <!--RAM Load-->
  74.             <h4 class="p-0 m-0" style="font-size: 2vh">RAM Usage (%)</h4>
  75.             <div id="ContainerRAMLoad" style="height: 90%;"></div>
  76.  
  77.         </div>
  78.  
  79.         <div class="col-6 col-xs-6 col-sm-6 col-md-6 p-1">
  80.  
  81.             <!--HDD Load-->
  82.             <h4 class="p-0 m-0" style="font-size: 2vh">HDD Usage (%)</h4>
  83.             <div id="ContainerHDDLoad" style="height: 90%;"></div>
  84.  
  85.         </div>
  86.  
  87.     </div>
  88.  
  89.     <!--<div style="text-align: center">
  90.        <table style="margin: 0 auto;">
  91.            <tr>
  92.                <td>
  93.                    <div style="background: #000000; padding: 5px 20px; border: 2px solid #AAAAAA; border: none;">
  94.                        <div id="ndTime1" style="">
  95.                        </div>
  96.                    </div>
  97.                </td>
  98.            </tr>
  99.        </table>
  100.    </div>-->
  101.  
  102.     <!--Bootstrap/Jquery JS Files from CDN-->
  103.     <!--JQuery must be loaded first-->
  104.     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
  105.     <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
  106.     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
  107.  
  108.     <!--Highcharts JS from CDN-->
  109.     <script src="https://code.highcharts.com/highcharts.src.js"></script>
  110.     <script src="http://code.highcharts.com/highcharts-more.js"></script>
  111.     <script src="http://code.highcharts.com/modules/solid-gauge.js"></script>
  112.  
  113.     <script type="text/javascript">
  114.  
  115.         $(function () {
  116.  
  117.             var gaugeOptions = {
  118.  
  119.                 chart: {
  120.                     type: 'solidgauge',
  121.                     backgroundColor: '#000000',
  122.                     spacing: [5, 5, 5, 5]
  123.                 },
  124.  
  125.                 title: null,
  126.  
  127.                 pane: {
  128.                     center: ['50%', '50%'],
  129.                     size: '100%',
  130.                     startAngle: 0,
  131.                     endAngle: 360,
  132.                     background: [{
  133.                         backgroundColor: '#222222',
  134.                         className: 'highcharts-pane',
  135.                         innerRadius: '80%',
  136.                         outerRadius: '100%',
  137.                         shape: 'circle',
  138.                         borderWidth: 0
  139.                     }]
  140.                 },
  141.  
  142.                 tooltip: {
  143.                     enabled: false
  144.                 },
  145.  
  146.                 credits: {
  147.                     enabled: false
  148.                 },
  149.  
  150.                 // the value axis
  151.                 yAxis: {
  152.                     stops: [
  153.                         [0.1, '#00554F'], // green
  154.                         [0.5, '#00B2A7'], // yellow
  155.                         [0.9, '#00FFEF'] // red
  156.                     ],
  157.                     lineWidth: 0,
  158.                     minorTickInterval: null,
  159.                     tickPixelInterval: 200,
  160.                     tickWidth: 0,
  161.                     labels: {
  162.                         enabled: false
  163.                     }
  164.                 },
  165.  
  166.                 plotOptions: {
  167.                     solidgauge: {
  168.                         dataLabels: {
  169.                             borderWidth: 0,
  170.                             useHTML: true,
  171.                             verticalAlign: 'middle'
  172.                         },
  173.                         rounded: true
  174.                     }
  175.                 }
  176.             };
  177.  
  178.             // CPU Temp Gauge
  179.             var ChartCPUTemp = Highcharts.chart('ContainerCPUTemp', Highcharts.merge(gaugeOptions, {
  180.  
  181.                 yAxis: {
  182.                     min: 0,
  183.                     max: 100
  184.                 },
  185.  
  186.                 series: [{
  187.                     name: 'CPUTemp',
  188.                     data: [{
  189.                         radius: '98%',
  190.                         innerRadius: '82%',
  191.                         y: 0
  192.                     }],
  193.                     dataLabels: {
  194.                         format: '<div id="CpuTempDisplay" style="position:relative;left:-6.5vh;top:-7vh;font-size:12vh;color:#CCCCCC;font-family:helvetica;font-weight:300"></div>'
  195.                     }
  196.                 }]
  197.  
  198.             }));
  199.  
  200.             // CPU Load Gauge
  201.             var ChartCPULoad = Highcharts.chart('ContainerCPULoad', Highcharts.merge(gaugeOptions, {
  202.  
  203.                 yAxis: {
  204.                     min: 0,
  205.                     max: 100
  206.                 },
  207.  
  208.                 series: [{
  209.                     name: 'CPULoad',
  210.                     data: [{
  211.                         radius: '98%',
  212.                         innerRadius: '82%',
  213.                         y: 0
  214.                     }],
  215.                     dataLabels: {
  216.                         format: '<div id="CpuLoadDisplay" style="position:relative;left:-6.5vh;top:-7vh;font-size:12vh;color:#CCCCCC;font-family:helvetica;font-weight:300"></div>'
  217.                     }
  218.                 }]
  219.  
  220.             }));
  221.  
  222.             // GPU Temp Gauge
  223.             var ChartGPUTemp = Highcharts.chart('ContainerGPUTemp', Highcharts.merge(gaugeOptions, {
  224.  
  225.                 yAxis: {
  226.                     min: 0,
  227.                     max: 100
  228.                 },
  229.  
  230.                 series: [{
  231.                     name: 'GPUTemp',
  232.                     data: [{
  233.                         radius: '98%',
  234.                         innerRadius: '82%',
  235.                         y: 0
  236.                     }],
  237.                     dataLabels: {
  238.                         format: '<div id="GpuTempDisplay" style="position:relative;left:-6.5vh;top:-7vh;font-size:12vh;color:#CCCCCC;font-family:helvetica;font-weight:300"></div>'
  239.                     }
  240.                 }]
  241.  
  242.             }));
  243.  
  244.             // GPU Load Gauge
  245.             var ChartGPULoad = Highcharts.chart('ContainerGPULoad', Highcharts.merge(gaugeOptions, {
  246.  
  247.                 yAxis: {
  248.                     min: 0,
  249.                     max: 100
  250.                 },
  251.  
  252.                 series: [{
  253.                     name: 'GPULoad',
  254.                     data: [{
  255.                         radius: '98%',
  256.                         innerRadius: '82%',
  257.                         y: 0
  258.                     }],
  259.                     dataLabels: {
  260.                         format: '<div id="GpuLoadDisplay" style="position:relative;left:-6.5vh;top:-7vh;font-size:12vh;color:#CCCCCC;font-family:helvetica;font-weight:300;"></div>'
  261.                     }
  262.                 }]
  263.  
  264.             }));
  265.  
  266.             // RAM Load Gauge
  267.             var ChartRAMLoad = Highcharts.chart('ContainerRAMLoad', Highcharts.merge(gaugeOptions, {
  268.  
  269.                 yAxis: {
  270.                     min: 0,
  271.                     max: 100
  272.                 },
  273.  
  274.                 series: [{
  275.                     name: 'RAMLoad',
  276.                     data: [{
  277.                         radius: '98%',
  278.                         innerRadius: '82%',
  279.                         y: 0
  280.                     }],
  281.                     dataLabels: {
  282.                         format: '<div id="RamLoadDisplay" style="position:relative;left:-6.5vh;top:-7vh;font-size:12vh;color:#CCCCCC;font-family:helvetica;font-weight:300"></div>'
  283.                     }
  284.                 }]
  285.  
  286.             }));
  287.  
  288.             // HDD Load Gauge
  289.             var ChartHDDLoad = Highcharts.chart('ContainerHDDLoad', Highcharts.merge(gaugeOptions, {
  290.  
  291.                 yAxis: {
  292.                     min: 0,
  293.                     max: 100
  294.                 },
  295.  
  296.                 series: [{
  297.                     name: 'HDDLoad',
  298.                     data: [{
  299.                         radius: '98%',
  300.                         innerRadius: '82%',
  301.                         y: 0
  302.                     }],
  303.                     dataLabels: {
  304.                         format: '<div id="HddLoadDisplay" style="position:relative;left:-6.5vh;top:-7vh;font-size:12vh;color:#CCCCCC;font-family:helvetica;font-weight:300"></div>'
  305.                     }
  306.                 }]
  307.  
  308.             }));
  309.  
  310.             // Bring life to the dials refresh every 1000 msec
  311.             setInterval(function () {
  312.                 $.getJSON('data.json', function (data) {
  313.  
  314.                     var Computer = data.Children[0]; // Get master Computer object
  315.                     var ComputerChildren = Computer.Children; // Get child objects of Computer
  316.  
  317.                     var MOB;
  318.                     var CPU;
  319.                     var RAM;
  320.                     var GPU;
  321.                     var HDD;
  322.  
  323.                     $.each(ComputerChildren, function (key, value) {
  324.                         //console.log(key, value);
  325.                         switch (value.ImageURL) {
  326.                             case 'images_icon/mainboard.png':
  327.                                 MOB = value;
  328.                                 break;
  329.                             case 'images_icon/cpu.png':
  330.                                 CPU = value;
  331.                                 break;
  332.                             case 'images_icon/ram.png':
  333.                                 RAM = value;
  334.                                 break;
  335.                             case 'images_icon/nvidia.png':
  336.                                 GPU = value;
  337.                                 break;
  338.                             case 'images_icon/ati.png':
  339.                                 GPU = value;
  340.                                 break;
  341.                             case 'images_icon/hdd.png':
  342.                                 HDD = value;
  343.                                 break;
  344.                             default:
  345.                                 console.log('could not identify this Root object.', key, value);
  346.                         }
  347.                     });
  348.  
  349.                     //////////// CPU Vals ////////////
  350.                     if (CPU) {
  351.  
  352.                         var CPUChildren = CPU.Children; // Get child objects of CPU
  353.  
  354.                         //// CPU Vars ////
  355.                         var CPUClocks;
  356.                         var CPUTemps;
  357.                         var CPULoad;
  358.                         var CPUPowers;
  359.  
  360.                         // Dynamically assign them
  361.                         $.each(CPUChildren, function (key, value) {
  362.                             //console.log(key, value);
  363.                             switch (value.Text) {
  364.                                 case 'Clocks':
  365.                                     CPUClocks = value;
  366.                                     break;
  367.                                 case 'Temperatures':
  368.                                     CPUTemps = value;
  369.                                     break;
  370.                                 case 'Load':
  371.                                     CPULoad = value;
  372.                                     break;
  373.                                 case 'Powers':
  374.                                     CPUPowers = value;
  375.                                     break;
  376.                                 default:
  377.                                     console.log('could not identify this CPU child.', key, value);
  378.                             }
  379.                         });
  380.  
  381.                         //// CPU Clocks ////
  382.                         var CPUCores = 0;
  383.                         var CPUSpeed = 0;
  384.                         var CPUSpeedVal = 0;
  385.  
  386.                         if (CPUClocks) {
  387.                             // Append values if CPU Core is detected
  388.                             $.each(CPUClocks.Children, function (key, value) {
  389.                                 if (value.Text.indexOf("CPU Core") >= 0) {
  390.                                     CPUSpeed += parseInt(value.Value.split(' ')[0]); // Splits string to get number value
  391.                                     CPUCores++
  392.                                 }
  393.                             });
  394.                         }
  395.  
  396.                         CPUSpeedVal = CPUSpeed / CPUCores;
  397.  
  398.                         //// CPU Temps ////
  399.                         var CPUCores = 0;
  400.                         var CPUTemp = 0;
  401.                         var CPUTempVal = 0;
  402.  
  403.                         if (CPUTemps) {
  404.                             // Append values if CPU Core is detected
  405.                             $.each(CPUTemps.Children, function (key, value) {
  406.                                 if (value.Text.indexOf("CPU Core") >= 0) {
  407.                                     CPUTemp += parseInt(value.Value.split(' ')[0]); // Splits string to get number value
  408.                                     CPUCores++
  409.                                 }
  410.                             });
  411.                         }
  412.  
  413.                         CPUTempVal = CPUTemp / CPUCores;
  414.  
  415.                         //// CPU Load ////
  416.                         var CPULoadVal = 0;
  417.  
  418.                         if (CPULoad) {
  419.                             // Append values if CPU Core is detected
  420.                             $.each(CPULoad.Children, function (key, value) {
  421.                                 if (value.Text.indexOf("CPU Total") >= 0) {
  422.                                     CPULoadVal = parseInt(value.Value.split(' ')[0]); // Splits string to get number value
  423.                                 }
  424.                             });
  425.                         }
  426.  
  427.                         //// CPU Powers ////
  428.                         var CPUPowerVal = 0;
  429.  
  430.                         if (CPUPowers) {
  431.                             // Append values if CPU Core is detected
  432.                             $.each(CPUPowers.Children, function (key, value) {
  433.                                 if (value.Text.indexOf("CPU Package") >= 0) {
  434.                                     CPUPowerVal = parseInt(value.Value.split(' ')[0]); // Splits string to get number value
  435.                                 }
  436.                             });
  437.                         }
  438.                     }
  439.  
  440.                     //////////// GPU Vars ////////////
  441.  
  442.                     var GPUChildren = GPU.Children; // Get child objects of GPU
  443.  
  444.                     //// GPU Vars ////
  445.                     var GPUClocksCore;
  446.                     var GPUClocksMem;
  447.                     var GPUTemps;
  448.                     var GPULoad;
  449.                     var GPUData;
  450.  
  451.                     // Dynamically assign them
  452.                     $.each(GPUChildren, function (key, value) {
  453.                         //console.log(key, value);
  454.                         switch (value.Text) {
  455.                             case 'Clocks':
  456.                                 GPUClocks = value;
  457.                                 break;
  458.                             case 'Temperatures':
  459.                                 GPUTemps = value;
  460.                                 break;
  461.                             case 'Load':
  462.                                 GPULoad = value;
  463.                                 break;
  464.                             case 'Data':
  465.                                 GPUData = value;
  466.                                 break;
  467.                             default:
  468.                                 console.log('could not identify this GPU child.', key, value);
  469.                         }
  470.                     });
  471.  
  472.                     //// GPU Clocks ////
  473.                     var GPUCoreSpeedVal = 0;
  474.                     var GPUMemSpeedVal = 0;
  475.  
  476.                     if (GPUClocks) {
  477.                         // Append values if GPU Core is detected
  478.                         $.each(GPUClocks.Children, function (key, value) {
  479.                             if (value.Text.indexOf("GPU Core") >= 0) {
  480.                                 GPUCoreSpeedVal = parseInt(value.Value.split(' ')[0]); // Splits string to get number value
  481.                             }
  482.                             if (value.Text.indexOf("GPU Memory") >= 0) {
  483.                                 GPUMemSpeedVal = parseInt(value.Value.split(' ')[0]); // Splits string to get number value
  484.                             }
  485.                         });
  486.                     }
  487.  
  488.                     //// GPU Temps ////
  489.                     var GPUTempVal = 0;
  490.  
  491.                     if (GPUTemps) {
  492.                         // Append values if GPU Core is detected
  493.                         $.each(GPUTemps.Children, function (key, value) {
  494.                             if (value.Text.indexOf("GPU Core") >= 0) {
  495.                                 GPUTempVal = parseInt(value.Value.split(' ')[0]); // Splits string to get number value
  496.                             }
  497.                         });
  498.                     }
  499.  
  500.                     //// GPU Load ////
  501.                     var GPULoadVal = 0;
  502.  
  503.                     if (GPULoad) {
  504.                         // Append values if GPU Core is detected
  505.                         $.each(GPULoad.Children, function (key, value) {
  506.                             if (value.Text.indexOf("GPU Core") >= 0) {
  507.                                 GPULoadVal = parseInt(value.Value.split(' ')[0]); // Splits string to get number value
  508.                             }
  509.                         });
  510.                     }
  511.  
  512.                     //////////// RAM Vars ////////////
  513.  
  514.                     var RAMChildren = RAM.Children; // Get child objects of RAM
  515.  
  516.                     //// RAM Vars ////
  517.                     var RAMLoad;
  518.                     var RAMData;
  519.  
  520.                     // Dynamically assign them
  521.                     $.each(RAMChildren, function (key, value) {
  522.                         //console.log(key, value);
  523.                         switch (value.Text) {
  524.                             case 'Load':
  525.                                 RAMLoad = value;
  526.                                 break;
  527.                             case 'Data':
  528.                                 RAMData = value;
  529.                                 break;
  530.                             default:
  531.                                 console.log('could not identify this RAM child.', key, value);
  532.                         }
  533.                     });
  534.  
  535.                     //// RAM Load ////
  536.                     var RAMLoadVal = 0;
  537.  
  538.                     if (RAMLoad) {
  539.                         // Append values if GPU Core is detected
  540.                         $.each(RAMLoad.Children, function (key, value) {
  541.                             if (value.Text.indexOf("Memory") >= 0) {
  542.                                 RAMLoadVal = parseInt(value.Value.split(' ')[0]); // Splits string to get number value
  543.                             }
  544.                         });
  545.                     }
  546.  
  547.                     //////////// HDD Load ////////////
  548.  
  549.                     var HDDChildren = HDD.Children; // Get child objects of HDD
  550.  
  551.                     //// HDD Vars ////
  552.                     var HDDLoad;
  553.  
  554.                     // Dynamically assign them
  555.                     $.each(HDDChildren, function (key, value) {
  556.                         //console.log(key, value);
  557.                         switch (value.Text) {
  558.                             case 'Load':
  559.                                 HDDLoad = value;
  560.                                 break;
  561.                             default:
  562.                                 console.log('could not identify this HDD child.', key, value);
  563.                         }
  564.                     });
  565.  
  566.                     //// HDD Load ////
  567.                     var HDDLoadVal = 0;
  568.  
  569.                     if (HDDLoad) {
  570.                         // Append values if GPU Core is detected
  571.                         $.each(HDDLoad.Children, function (key, value) {
  572.                             if (value.Text.indexOf("Used Space") >= 0) {
  573.                                 HDDLoadVal = parseInt(value.Value.split(' ')[0]); // Splits string to get number value
  574.                             }
  575.                         });
  576.                     }
  577.  
  578.                     //////////// Update Charts ////////////
  579.  
  580.                     // CPU Temp update
  581.                     var point = ChartCPUTemp.series[0].points[0];
  582.                     point.update(Math.round(CPUTempVal));
  583.  
  584.                     $('#CpuTempDisplay').text(("0" + (Math.round(CPUTempVal))).slice(-2));
  585.  
  586.                     //ndCpuTempDisplay.setText(Math.round(CPUTempVal));
  587.                     //ndCpuTempDisplay.setText(("0" + (Math.round(CPUTempVal))).slice(-2));
  588.  
  589.                     // CPU Load update
  590.                     var point = ChartCPULoad.series[0].points[0];
  591.                     point.update(Math.round(CPULoadVal));
  592.  
  593.                     $('#CpuLoadDisplay').text(("0" + (Math.round(CPULoadVal))).slice(-2));
  594.  
  595.                     //ndCpuLoadDisplay.setText(Math.round(CPULoadVal));
  596.                     //ndCpuLoadDisplay.setText(("0" + (Math.round(CPULoadVal))).slice(-2));
  597.  
  598.                     // GPU Temp update
  599.                     var point = ChartGPUTemp.series[0].points[0];
  600.                     point.update(Math.round(GPUTempVal));
  601.  
  602.                     $('#GpuTempDisplay').text(("0" + (Math.round(GPUTempVal))).slice(-2));
  603.                     //ndGpuTempDisplay.setText(("0" + (Math.round(GPUTempVal))).slice(-2));
  604.  
  605.                     // GPU Load update
  606.                     var point = ChartGPULoad.series[0].points[0];
  607.                     point.update(Math.round(GPULoadVal));
  608.  
  609.                     $('#GpuLoadDisplay').text(("0" + (Math.round(GPULoadVal))).slice(-2));
  610.                     //ndGpuLoadDisplay.setText(("0" + (Math.round(GPULoadVal))).slice(-2));
  611.  
  612.                     //$('#GpuCoreDisplay').text(GPUCoreSpeedVal/1000);
  613.                     //$('#GpuMemDisplay').text(GPUMemSpeedVal/1000);
  614.  
  615.                     // RAM Load update
  616.                     var point = ChartRAMLoad.series[0].points[0];
  617.                     point.update(Math.round(RAMLoadVal));
  618.  
  619.                     $('#RamLoadDisplay').text(("0" + (Math.round(RAMLoadVal))).slice(-2));
  620.                     //ndRamLoadDisplay.setText(("0" + (Math.round(RAMLoadVal))).slice(-2));
  621.  
  622.                     // HDD Load update
  623.                     var point = ChartHDDLoad.series[0].points[0];
  624.                     point.update(Math.round(HDDLoadVal));
  625.  
  626.                     $('#HddLoadDisplay').text(("0" + (Math.round(HDDLoadVal))).slice(-2));
  627.                     //ndHddLoadDisplay.setText(("0" + (Math.round(HDDLoadVal))).slice(-2));
  628.  
  629.                 });
  630.             }, 1000);
  631.  
  632.         });
  633.  
  634.     </script>
  635.  
  636. </body>
  637.  
  638. </html>
Advertisement
Add Comment
Please, Sign In to add comment