From d8342717c163546e325865b946bc441a69af5695 Mon Sep 17 00:00:00 2001 From: zogodo <742782908@qq.com> Date: Sat, 22 Feb 2020 13:08:49 +0800 Subject: [PATCH] =?UTF-8?q?select=E4=B8=8D=E5=B7=A5=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TC1/http_server/web/assets/css_pack.css | 28 +-- TC1/http_server/web/demo.html | 296 +++++++----------------- 2 files changed, 87 insertions(+), 237 deletions(-) diff --git a/TC1/http_server/web/assets/css_pack.css b/TC1/http_server/web/assets/css_pack.css index c1a3815..c2be3f7 100644 --- a/TC1/http_server/web/assets/css_pack.css +++ b/TC1/http_server/web/assets/css_pack.css @@ -5,7 +5,7 @@ font-family: 'Material Icons'; font-style: normal; font-weight: 400; - src: url(https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2'); + src: url(flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2'); } .material-icons { font-family: 'Material Icons'; @@ -308,7 +308,7 @@ font-family: 'Roboto'; font-style: normal; font-weight: 400; - src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2'); + src: local('Roboto'), local('Roboto-Regular'), url(KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @@ -364,7 +364,7 @@ font-family: 'Roboto'; font-style: normal; font-weight: 500; - src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBBc4.woff2) format('woff2'); + src: local('Roboto Medium'), local('Roboto-Medium'), url(KFOlCnqEu92Fr1MmEU9fBBc4.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @@ -695,28 +695,6 @@ _:-ms-input-placeholder, :root .demo-graph { -ms-flex-align: center; align-items: center; } -/* icon.css */ -@font-face { - font-family: 'Material Icons'; - font-style: normal; - font-weight: 400; - src: url(https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2'); -} -.material-icons { - font-family: 'Material Icons'; - font-weight: normal; - font-style: normal; - font-size: 24px; - line-height: 1; - letter-spacing: normal; - text-transform: none; - display: inline-block; - white-space: nowrap; - word-wrap: normal; - direction: ltr; - -webkit-font-feature-settings: 'liga'; - -webkit-font-smoothing: antialiased; -} /* zogodo */ .page{display:none;} .mdl-nav-active { diff --git a/TC1/http_server/web/demo.html b/TC1/http_server/web/demo.html index 8433a76..60c24f4 100644 --- a/TC1/http_server/web/demo.html +++ b/TC1/http_server/web/demo.html @@ -165,11 +165,16 @@
-
- - +
+ + + keyboard_arrow_down + +
    +
  • Germany
  • +
  • Belarus
  • +
  • Russia
  • +
@@ -195,10 +200,6 @@
-
-
- -
@@ -324,217 +325,88 @@
- - -
- - - - - - - - - - - - - - - - - - - - - - - - 500 - 400 - 300 - 200 - 100 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - - - - - - - - - - - - + + + + + power.powers.forEach(element => { + data.series[0].push(element/10); + }); + chart_wth += power.powers.length; + $("#ct-chart").width(chart_wth * 10); + t.update(data); + if (power.powers.length != 0 && x < 100) { + chart_par.scrollTo(chart_par.scrollWidth, 0); + } + window.setTimeout(GetPowerRecord, 3000); + }, + error: AjaxErr + }); + } + $(document).ready(function(){ + GetPowerRecord(); + }) +