diff options
author | Yanlan Shen <yanlan.shen.@rosinson.com> | 2018-11-27 10:15:31 +0800 |
---|---|---|
committer | Yanlan Shen <yanlan.shen.@rosinson.com> | 2018-12-03 15:08:11 +0800 |
commit | 6cb25970b8089afc9dffd0b82ff1a64837633344 (patch) | |
tree | a52d0ba68d75ad8043a67b4e963dd194bbd52522 /themes/luci-theme-rosy/htdocs/luci-static/rosy/js | |
parent | a92c94df32eaf9d0693eb799bfcf5bd7e92151b8 (diff) |
luci-theme-rosy: Modify the color of the button's primary and secondary colors and the bug of the status-overview page.
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
Diffstat (limited to 'themes/luci-theme-rosy/htdocs/luci-static/rosy/js')
-rwxr-xr-x | themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js b/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js index 8985834eff..9da67062a7 100755 --- a/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js +++ b/themes/luci-theme-rosy/htdocs/luci-static/rosy/js/script.js @@ -272,15 +272,21 @@ } var a = window.getComputedStyle($(".cbi-section .table .tr:first-child")[0], ':before').getPropertyValue('content'); var b = window.getComputedStyle($('.cbi-section .table .tr:last-child')[0], ':before').getPropertyValue('content'); - console.log(typeof a); if( a != 'none' || b != 'none' ){ $('.cbi-section .table .tr:first-child .td:first-child').css('border-top-left-radius', '0'); $('.cbi-section .table .tr:last-child .td:first-child').css('border-bottom-left-radius', '0'); $('.cbi-section .table .tr:first-child .th:first-child').css('border-top-left-radius', '0'); - console.log($('.cbi-section .table .tr:last-child .td:first-child')); } }); + $('<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); |