Added basic theme
This commit is contained in:
parent
a085ca6867
commit
8b9afa66ce
42 changed files with 5633 additions and 0 deletions
46
themes/custom/source/js/toolbar.js
Normal file
46
themes/custom/source/js/toolbar.js
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
$(function () {
|
||||
let $toolbar = $(".toolbar");
|
||||
let $aside = $(".aside");
|
||||
let $asideContent = $(".aside-content");
|
||||
let $divs = $(".aside-content div");
|
||||
let flag = false;
|
||||
let isClick = true;
|
||||
let isRotate = false;
|
||||
|
||||
let $lis = $(".aside-contact li");
|
||||
|
||||
//toolbar点击事件
|
||||
$toolbar.on("click", function () {
|
||||
if (!isClick) return;
|
||||
isClick = false;
|
||||
if (flag) {
|
||||
$asideContent.removeClass("in");
|
||||
flag = false;
|
||||
return;
|
||||
}
|
||||
$aside.fadeIn();
|
||||
$asideContent.addClass("in");
|
||||
flag = true;
|
||||
$asideContent.on("transitionend", function () {
|
||||
if (!$asideContent.hasClass("in")) {
|
||||
$aside.hide();
|
||||
}
|
||||
isClick = true;
|
||||
});
|
||||
});
|
||||
|
||||
//contact经过事件
|
||||
$lis.on("mouseover", function () {
|
||||
$(this).children("a").addClass("in");
|
||||
}).on("mouseleave", function () {
|
||||
$(this).children("a").removeClass("in");
|
||||
});
|
||||
|
||||
//鼠标经过动态事件
|
||||
$divs.on("mouseover",function (){
|
||||
$(this).addClass("heartBeat").addClass("animated");
|
||||
}).on("mouseleave",function (){
|
||||
$(this).removeClass("heartBeat");
|
||||
});
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue