LuttyYang / luci-theme-material

this is a openwrt luci theme
331 stars 94 forks source link

Missing style of "Swap" #17

Closed wongsyrone closed 9 years ago

wongsyrone commented 9 years ago

qq 20151011111315

LuttyYang commented 9 years ago

你可以把整个交换区附近的HTML源代码贴出来么?我的路由器没有设置Swap。

首先你打开这个页面,然后点击F12进入开发者模式,然后复制整个Swap的代码贴出来即可

LuttyYang commented 9 years ago

一般情况下路由器用不到这样子吧,你都在路由器上干嘛了,看起来你好像是程序员的样子

wongsyrone commented 9 years ago

我找到的和Swap相关的是:

<fieldset class="cbi-section">
    <legend>Swap</legend>

    <table width="100%" cellspacing="10">
        <tr><td width="33%">Total Available</td><td id="swaptotal">-</td></tr>
        <tr><td width="33%">Free</td><td id="swapfree">-</td></tr>
    </table>
</fieldset>

            if (e = document.getElementById('swaptotal'))
                e.innerHTML = progressbar(
                    (info.swap.free / 1024) + " kB",
                    (info.swap.total / 1024) + " kB"
                );

            if (e = document.getElementById('swapfree'))
                e.innerHTML = progressbar(
                    (info.swap.free / 1024) + " kB",
                    (info.swap.total / 1024) + " kB"
                );

如果需要其他的信息,我再找。 PS:是个伪程序员,前端基本不懂

LuttyYang commented 9 years ago

我已经在0.2.12中修复了它

wongsyrone commented 9 years ago

Good job. On Oct 14, 2015 10:39 PM, "LuttyYang" notifications@github.com wrote:

我已经在0.2.12中修复了它

— Reply to this email directly or view it on GitHub https://github.com/LuttyYang/luci-theme-material/issues/17#issuecomment-148070742 .