modif order
This commit is contained in:
@@ -54,22 +54,22 @@ function filteritem() {
|
||||
}
|
||||
|
||||
function contact() {
|
||||
var $contact = $('header .contact');
|
||||
var $contact = $('header .contact h3');
|
||||
|
||||
$contact.on('click', function() {
|
||||
if ($(this).hasClass('open')) {
|
||||
$(this).removeClass('open');
|
||||
$(this).addClass('close');
|
||||
if ($(this).parent(".contact").hasClass('open')) {
|
||||
$(this).parent(".contact").removeClass('open');
|
||||
$(this).parent(".contact").addClass('close');
|
||||
} else {
|
||||
$(this).addClass('open');
|
||||
$(this).removeClass('close');
|
||||
$(this).parent(".contact").addClass('open');
|
||||
$(this).parent(".contact").removeClass('close');
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
var $page = $('#page-wrapper.blog');
|
||||
function customscroll($page_item) {
|
||||
var $page_item = $("body.blog #start, body.item");
|
||||
var $page_item = $("#page-wrapper.item");
|
||||
|
||||
$page_item.mCustomScrollbar({
|
||||
theme: "dark",
|
||||
@@ -85,20 +85,21 @@ function customscroll($page_item) {
|
||||
}
|
||||
});
|
||||
|
||||
$("body").mCustomScrollbar({
|
||||
$("#page-wrapper.blog").mCustomScrollbar({
|
||||
theme: "dark",
|
||||
scrollbarPosition: "outside",
|
||||
callbacks: {
|
||||
whileScrolling: function() {
|
||||
var pct = this.mcs.topPct;
|
||||
if (pct < 1) {
|
||||
if ( ($page.hasClass('down')) ) {
|
||||
} else {
|
||||
$page.addClass("down");
|
||||
$page_item.mCustomScrollbar("disable",true);
|
||||
$("#page-wrapper").addClass("down");
|
||||
$(this).mCustomScrollbar("disable",true);
|
||||
setTimeout(function(){
|
||||
console.log('time');
|
||||
$("#page-wrapper").mCustomScrollbar("update");
|
||||
}, 500);
|
||||
}
|
||||
setTimeout(function(){
|
||||
$page_item.mCustomScrollbar("update");
|
||||
}, 2000);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -111,34 +112,10 @@ function clickscroll() {
|
||||
})
|
||||
}
|
||||
|
||||
function transitionPage() {
|
||||
// var $links = $('a');
|
||||
// $links.on('click', function(e) {
|
||||
// var $link = $(this).attr("href");
|
||||
// setTimeout(function() {
|
||||
// window.location.href = $link;
|
||||
// }, 10000);
|
||||
//
|
||||
// $links.parents('#top').fadeOut()
|
||||
// })
|
||||
|
||||
$("a:not(.filter)").click(function(e) {
|
||||
var link = $(this).attr("href");
|
||||
$(this).parents('#top').fadeOut()
|
||||
setTimeout(function() {
|
||||
window.location.href = link;
|
||||
}, 600);
|
||||
e.preventDefault();
|
||||
});
|
||||
$('#top').fadeIn(1000).removeClass('hidden');
|
||||
}
|
||||
|
||||
jQuery(document).ready(function($) {
|
||||
masonry();
|
||||
filteritem();
|
||||
contact();
|
||||
customscroll();
|
||||
clickscroll();
|
||||
transitionPage();
|
||||
// $('#top').fadeIn();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user