mirror of
https://github.com/dawidolko/Website-Templates.git
synced 2026-02-04 17:40:04 +00:00
Website templates
This commit is contained in:
66
techro/assets/js/custom.js
Normal file
66
techro/assets/js/custom.js
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
Theme: Techro - Free business bootstrap template
|
||||
Description: Free to use for personal and commercial use
|
||||
Author: WebThemez.com
|
||||
Website: http://webthemez.com
|
||||
Note: Please do not remove the footer backlink (webthemez.com)--(if you want to remove contact: webthemez@gmail.com)
|
||||
Licence: Creative Commons Attribution 3.0** - http://creativecommons.org/licenses/by/3.0/
|
||||
*/
|
||||
jQuery(document).ready(function ($) {
|
||||
//da slider
|
||||
$('#da-slider').cslider({
|
||||
autoplay: true,
|
||||
bgincrement: 0
|
||||
});
|
||||
//Set the carousel options
|
||||
$('#quote-carousel').carousel({
|
||||
pause: true,
|
||||
interval: 4000,
|
||||
});
|
||||
// fancybox
|
||||
$(".fancybox").fancybox();
|
||||
//isotope
|
||||
if ($('.isotopeWrapper').length) {
|
||||
var $container = $('.isotopeWrapper');
|
||||
var $resize = $('.isotopeWrapper').attr('id');
|
||||
// initialize isotope
|
||||
$container.isotope({
|
||||
itemSelector: '.isotopeItem',
|
||||
resizable: false, // disable normal resizing
|
||||
masonry: {
|
||||
columnWidth: $container.width() / $resize
|
||||
}
|
||||
});
|
||||
$("a[href='#top']").click(function () {
|
||||
$("html, body").animate({
|
||||
scrollTop: 0
|
||||
}, "slow");
|
||||
return false;
|
||||
});
|
||||
$('.navbar-inverse').on('click', 'li a', function () {
|
||||
$('.navbar-inverse .in').addClass('collapse').removeClass('in').css('height', '1px');
|
||||
});
|
||||
$('#filter a').click(function () {
|
||||
$('#filter a').removeClass('current');
|
||||
$(this).addClass('current');
|
||||
var selector = $(this).attr('data-filter');
|
||||
$container.isotope({
|
||||
filter: selector,
|
||||
animationOptions: {
|
||||
duration: 1000,
|
||||
easing: 'easeOutQuart',
|
||||
queue: false
|
||||
}
|
||||
});
|
||||
return false;
|
||||
});
|
||||
$(window).smartresize(function () {
|
||||
$container.isotope({
|
||||
// update columnWidth to a percentage of container width
|
||||
masonry: {
|
||||
columnWidth: $container.width() / $resize
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user