-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
76 lines (64 loc) · 1.88 KB
/
script.js
File metadata and controls
76 lines (64 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
Theme: Flatfy Theme
Author: Andrea Galanti
Bootstrap Version
Build: 1.0
http://www.andreagalanti.it
*/
$(window).load(function() {
//Preloader
$('#status').delay(300).fadeOut();
$('#preloader').delay(300).fadeOut('slow');
$('body').delay(550).css({'overflow':'visible'});
})
$(document).ready(function() {
//animated logo
$(".navbar-brand").hover(function () {
$(this).toggleClass("animated shake");
});
//animated scroll_arrow
$(".img_scroll").hover(function () {
$(this).toggleClass("animated infinite bounce");
});
//Wow Animation DISABLE FOR ANIMATION MOBILE/TABLET
wow = new WOW(
{
mobile: false
});
wow.init();
//MagnificPopup
$('.image-link').magnificPopup({type:'image'});
// OwlCarousel N1
$("#owl-demo").owlCarousel({
autoPlay: false,
items : 2,
itemsDesktop : [1199,2],
itemsDesktopSmall : [979,3]
});
// OwlCarousel N2
$("#owl-demo-1").owlCarousel({
navigation : false, // Show next and prev buttons
slideSpeed : 300,
paginationSpeed : 400,
singleItem:true
});
//SmothScroll
$('a[href*=#]').click(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
&& location.hostname == this.hostname) {
var $target = $(this.hash);
$target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
if ($target.length) {
var targetOffset = $target.offset().top;
$('html,body').animate({scrollTop: targetOffset}, 600);
return false;
}
}
});
//Subscribe
//new UIMorphingButton( document.querySelector( '.morph-button' ) );
// for demo purposes only
[].slice.call( document.querySelectorAll( 'form button' ) ).forEach( function( bttn ) {
bttn.addEventListener( 'click', function( ev ) { ev.preventDefault(); } );
} );
});