luci-theme-rosy: Modify the code for the progress bar of the overview interface 2334/head
authorYanlan Shen <yanlan.shen.@rosinson.com>
Mon, 3 Dec 2018 07:14:14 +0000 (15:14 +0800)
committerYanlan Shen <yanlan.shen.@rosinson.com>
Mon, 3 Dec 2018 07:14:14 +0000 (15:14 +0800)
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
themes/luci-theme-rosy/htdocs/luci-static/rosy/cascade.css
themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js

index 0b30ee3c46d48c83c3b31af7ec715a2b671d88d9..6efafa3347d6f700a799f9d0840fdbd0c4fedbac 100644 (file)
@@ -369,7 +369,6 @@ div>.table>.tbody>.tr:nth-of-type(2n) {
     background-color: #9bc1cc;
     border-radius: 20px;
     overflow: hidden;
-    border: none !important;
     position: relative;
 }
 .cbi-progressbar div {
@@ -377,7 +376,8 @@ div>.table>.tbody>.tr:nth-of-type(2n) {
     height: 20px;
     border-radius: 20px;
 }
-.cbi-progressbar samll {
+.cbi-progressbar::after {
+    content: attr(title);
     position: absolute;
     top: 0;
     left: 0;
index e8ba0206093e651aa2cb03b52b128e3145aa5a16..9d9cc7a2f9200b6a19e4e28308c808a72eb50784 100755 (executable)
         });
     });
 
-    $('<samll>').text($('.cbi-progressbar').attr('title')).appendTo('.cbi-progressbar');
-    setInterval(function(){
-        $('.cbi-progressbar').each(function(i, e){
-            $(this).children("samll").text($(this).attr('title'));
-        });
-        
-    }, 5000);
-    
-
 })(jQuery);