+/**
+ * Material is a clean HTML5 theme for LuCI. It is based on luci-theme-bootstrap and MUI
+ *
+ * luci-theme-material
+ * Copyright 2015 Lutty Yang <lutty@wcan.in>
+ *
+ * Have a bug? Please create an issue here on GitHub!
+ * https://github.com/LuttyYang/luci-theme-material/issues
+ *
+ * luci-theme-bootstrap:
+ * Copyright 2008 Steven Barth <steven@midlink.org>
+ * Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
+ * Copyright 2012 David Menting <david@nut-bolt.nl>
+ *
+ * MUI:
+ * https://github.com/muicss/mui
+ *
+ * Licensed to the public under the Apache License 2.0
+ */
+
+/*
+ * Font generate by Icomoon<icomoon.io>
+ */
@font-face {
font-family: 'icomoon';
src: url('../fonts/font.eot');
left: 0;
}
-/* 进度条fix */
+/* fix progress bar */
#memfree > div,
#membuff > div,
#conns > div,
background-color: #0099CC !important;
}
-/* 多重table fix*/
+/* fix multiple table */
table table {
border: none;
border: none;
}
-/* button 样式 */
+/* button style */
.cbi-button {
box-sizing: border-box;
.uci-change-list var ins,
.uci-change-list var del {
- /*display: inline;*/
border: none;
white-space: pre;
font-style: normal;
/**
- * Created by WebStorm on 15-9-13.
+ * Material is a clean HTML5 theme for LuCI. It is based on luci-theme-bootstrap and MUI
+ *
+ * luci-theme-material
+ * Copyright 2015 Lutty Yang <lutty@wcan.in>
+ *
+ * Have a bug? Please create an issue here on GitHub!
+ * https://github.com/LuttyYang/luci-theme-material/issues
+ *
+ * luci-theme-bootstrap:
+ * Copyright 2008 Steven Barth <steven@midlink.org>
+ * Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
+ * Copyright 2012 David Menting <david@nut-bolt.nl>
+ *
+ * MUI:
+ * https://github.com/muicss/mui
+ *
+ * Licensed to the public under the Apache License 2.0
*/
(function ($) {
var b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
};
}(jQuery));
+(function ($) {
+ /**
+ * trim text, Remove spaces, wrap
+ * @param text
+ * @returns {string}
+ */
+ function trimText(text) {
+ return text.replace(/[ \t\n\r]+/g, " ");
+ }
-function trimText(text) {
- return text.replace(/[ \t\n\r]+/g, " ");
-}
-(function ($) {
var tree = undefined;
var lastNode = undefined;
+ /**
+ * get the current node by Hash (reserve)
+ * @returns {boolean} success?
+ */
function getCurrentNodeByHash() {
var ret = false;
var hash = window.location.hash;
return ret;
}
+ /**
+ * get the current node by Burl (primary)
+ * @returns {boolean} success?
+ */
function getCurrentNodeByUrl() {
var ret = false;
var getUrlNode = function (href){
return ret;
}
+ /**
+ * menu click
+ */
$(".main > .main-left > .nav > .slide > .menu").click(function () {
var ul = $(this).next(".slide-menu");
var menu = $(this);
}
});
+ /**
+ * hook menu click and add the hash
+ */
$(".main > .main-left > .nav > .slide > .slide-menu > li > a").click(function () {
var href = $(this).attr("href");
var tree = trimText($(this).parent().parent().prev().data("title")) + "|" + trimText($(this).data("title"));
return false;
});
+ /**
+ * fix menu click
+ */
$(".main > .main-left > .nav > .slide > .slide-menu > li").click(function () {
$(this).find("a").click();
});
-
+ /**
+ * get current node and open it
+ */
if (!getCurrentNodeByUrl()){
getCurrentNodeByHash();
if (tree[0] == "Status" && tree[1] == "Overview"){
$(".cbi-button-down").val("");
+ /**
+ * hook other "A Label" and add hash to it.
+ */
$("#maincontent > .container").find("a").each(function () {
var that = $(this);
var onclick = that.attr("onclick");
}
});
+ /**
+ * Sidebar expand
+ */
var showSide = false;
$(".showSide").click(function () {
if (showSide){
}
});
+ /**
+ * fix legend position
+ */
$("legend").each(function () {
var that = $(this);
that.after("<span class='panel-title'>" + that.text() + "</span>");
});
-
- window.scrollTo(0,1);
})(jQuery);
<%#
-luci-theme-material is based on MUI and luci-theme-bootstrap.
+ Material is a clean HTML5 theme for LuCI. It is based on luci-theme-bootstrap and MUI
-luci-theme-bootstrap:
-Copyright 2008 Steven Barth <steven@midlink.org>
-Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-Copyright 2012 David Menting <david@nut-bolt.nl>
+ luci-theme-material
+ Copyright 2015 Lutty Yang <lutty@wcan.in>
-MUI:
-https://github.com/muicss/mui
+ Have a bug? Please create an issue here on GitHub!
+ https://github.com/LuttyYang/luci-theme-material/issues
-luci-theme-material
-Copyright 2015 Lutty Yang <lutty@wcan.in>
+ luci-theme-bootstrap:
+ Copyright 2008 Steven Barth <steven@midlink.org>
+ Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
+ Copyright 2012 David Menting <david@nut-bolt.nl>
-Licensed to the public under the Apache License 2.0
+ MUI:
+ https://github.com/muicss/mui
+
+ Licensed to the public under the Apache License 2.0
-%>
<%
<%#
- luci-theme-material is based on MUI and luci-theme-bootstrap.
+ Material is a clean HTML5 theme for LuCI. It is based on luci-theme-bootstrap and MUI
+
+ luci-theme-material
+ Copyright 2015 Lutty Yang <lutty@wcan.in>
+
+ Have a bug? Please create an issue here on GitHub!
+ https://github.com/LuttyYang/luci-theme-material/issues
luci-theme-bootstrap:
- Copyright 2008 Steven Barth <steven@midlink.org>
- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
- Copyright 2012 David Menting <david@nut-bolt.nl>
+ Copyright 2008 Steven Barth <steven@midlink.org>
+ Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
+ Copyright 2012 David Menting <david@nut-bolt.nl>
MUI:
- https://github.com/muicss/mui
-
- luci-theme-material
- Copyright 2015 Lutty Yang <lutty@wcan.in>
+ https://github.com/muicss/mui
Licensed to the public under the Apache License 2.0
-%>