luci-theme-rosy: (html)Change the scroll bar style, compatible with each bower
authorYanlan Shen <yanlan.shen.@rosinson.com>
Thu, 10 Jan 2019 03:45:16 +0000 (11:45 +0800)
committerYanlan Shen <yanlan.shen.@rosinson.com>
Thu, 10 Jan 2019 03:59:37 +0000 (11:59 +0800)
Signed-off-by: Yanlan Shen <yanlan.shen.@rosinson.com>
themes/luci-theme-rosy/luasrc/view/themes/rosy/footer.htm
themes/luci-theme-rosy/luasrc/view/themes/rosy/header.htm

index f0cbe4e9689c3d5f089e12752f14b414160cd34c..4377e1ca98002eaa2628b519564ab740ae4597e0 100755 (executable)
@@ -43,8 +43,8 @@
 <script>                                         
     var luciLocation = <%= luci.http.write_json(luci.dispatcher.context.path) %>;
 </script>
-<script src="<%=media%>/js/jquery.min.js?v=git-18.247.71242-9541751"></script>
-<script src="<%=media%>/js/script.js?v=git-18.247.71242-9541751"></script>
+<script src="<%=media%>/js/jquery.min.js"></script>
+<script src="<%=media%>/js/script.js"></script>
 </body>
 
 </html>
index 21fa78e3c6b205447a0d5b8d2291bdae5e6bd889..a6aafbed61bece10da542c1ce1e2c89f78e65387 100644 (file)
        local function render_topmenu()
                local childs = disp.node_childs(cattree)
                if #childs > 0 then
-                       write('<ul class="nav">')
+                       write('<ul class="nav scroll">')
 
                        for i, r in ipairs(childs) do
                                local nnode = cattree.nodes[r]
        <% end -%>
        <script src="<%=resource%>/cbi.js"></script>
        <script src="<%=resource%>/xhr.js"></script>
+       <script src="<%=media%>/js/ScrollY.js"></script>
 </head>
 
 <body class="lang_<%=luci.i18n.context.lang%> <%- if node then %><%= striptags( node.title ) %><%- end %> <% if luci.dispatcher.context.authsession then %>logged-in<% end %>">
                        <div class="nav-container">
                                <a class="brand" href="#">
                                        <%=boardinfo.hostname or "?"%></a>
-                               <div class="navbar-container">
+                               <div class="navbar-container" id="navBox">
                                        <% render_topmenu() %>
                                </div>
                        </div>