Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(function($) {'use strict';
- //Responsive Nav
- $('li.dropdown').find('.fa-angle-down').each(function(){
- $(this).on('click', function(){
- if( $(window).width() < 768 ) {
- $(this).parent().next().slideToggle();
- }
- return false;
- });
- });
- //Fit Vids
- if( $('#video-container').length ) {
- $("#video-container").fitVids();
- }
- //Initiat WOW JS
- new WOW().init();
- // portfolio filter
- $(window).load(function(){
- $('.main-slider').addClass('animate-in');
- $('.preloader').remove();
- //End Preloader
- if( $('.masonery_area').length ) {
- $('.masonery_area').masonry();//Masonry
- }
- var $portfolio_selectors = $('.portfolio-filter >li>a');
- if($portfolio_selectors.length) {
- var $portfolio = $('.portfolio-items');
- $portfolio.isotope({
- itemSelector : '.portfolio-item',
- layoutMode : 'fitRows'
- });
- $portfolio_selectors.on('click', function(){
- $portfolio_selectors.removeClass('active');
- $(this).addClass('active');
- var selector = $(this).attr('data-filter');
- $portfolio.isotope({ filter: selector });
- return false;
- });
- }
- });
- $('.timer').each(count);
- function count(options) {
- var $this = $(this);
- options = $.extend({}, options || {}, $this.data('countToOptions') || {});
- $this.countTo(options);
- }
- // Search
- $('.fa-search').on('click', function() {
- $('.field-toggle').fadeToggle(200);
- });
- //Contact form
- $('#main-contact-form').submit(function(e){
- (e||event).preventDefault();
- var $this = $(this);
- //Отправляем запрос
- $.ajax({
- url : $this.attr('action'),
- type: "post",
- data: $this.serialize()
- });
- });
- // Progress Bar
- $.each($('div.progress-bar'),function(){
- $(this).css('width', $(this).attr('data-transition')+'%');
- });
- if( $('#gmap').length ) {
- var map;
- map = new GMaps({
- el: '#gmap',
- lat: 43.04446,
- lng: -76.130791,
- scrollwheel:false,
- zoom: 16,
- zoomControl : false,
- panControl : false,
- streetViewControl : false,
- mapTypeControl: false,
- overviewMapControl: false,
- clickable: false
- });
- map.addMarker({
- lat: 43.04446,
- lng: -76.130791,
- animation: google.maps.Animation.DROP,
- verticalAlign: 'bottom',
- horizontalAlign: 'center',
- backgroundColor: '#3e8bff',
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement