projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #501 from LuttyYang/master
[project/luci.git]
/
themes
/
luci-theme-material
/
htdocs
/
luci-static
/
material
/
js
/
script.js
diff --git
a/themes/luci-theme-material/htdocs/luci-static/material/js/script.js
b/themes/luci-theme-material/htdocs/luci-static/material/js/script.js
index
604c4da
..
a0f0675
100755
(executable)
--- a/
themes/luci-theme-material/htdocs/luci-static/material/js/script.js
+++ b/
themes/luci-theme-material/htdocs/luci-static/material/js/script.js
@@
-201,9
+201,9
@@
if (!ul.is(":visible")) {
menu.addClass("active");
ul.addClass("active");
if (!ul.is(":visible")) {
menu.addClass("active");
ul.addClass("active");
- ul.stop(true).slideDown();
+ ul.stop(true).slideDown(
"fast"
);
} else {
} else {
- ul.s
lideUp(
function () {
+ ul.s
top(true).slideUp("fast",
function () {
menu.removeClass("active");
ul.removeClass("active");
});
menu.removeClass("active");
ul.removeClass("active");
});
@@
-274,16
+274,16
@@
var showSide = false;
$(".showSide").click(function () {
if (showSide){
var showSide = false;
$(".showSide").click(function () {
if (showSide){
- $(".darkMask").stop(true).fadeOut();
+ $(".darkMask").stop(true).fadeOut(
"fast"
);
$(".main-left").stop(true).animate({
width: "0"
$(".main-left").stop(true).animate({
width: "0"
- });
+ }
,"fast"
);
showSide = false;
}else{
showSide = false;
}else{
- $(".darkMask").stop(true).fadeIn();
+ $(".darkMask").stop(true).fadeIn(
"fast"
);
$(".main-left").stop(true).animate({
width: "15rem"
$(".main-left").stop(true).animate({
width: "15rem"
- });
+ }
,"fast"
);
showSide = true;
}
});
showSide = true;
}
});
@@
-292,10
+292,10
@@
$(".darkMask").click(function () {
if (showSide){
showSide = false;
$(".darkMask").click(function () {
if (showSide){
showSide = false;
- $(".darkMask").stop(true).fadeOut();
+ $(".darkMask").stop(true).fadeOut(
"fast"
);
$(".main-left").stop(true).animate({
width: "0"
$(".main-left").stop(true).animate({
width: "0"
- });
+ }
,"fast"
);
}
});
}
});
@@
-342,4
+342,13
@@
break;
}
}
break;
}
}
+
+
+ document.addEventListener("touchmove", function(evt){
+ evt.preventDefault();
+ }, false);
+ var container = document.getElementById("maincontent");
+ container.addEventListener("touchmove", function(evt){
+ evt.stopPropagation();
+ }, false);
})(jQuery);
})(jQuery);