1jQuery(document).ready(function($) { 2 3 $('.ifgrid').isotope({ 4 // options 5 itemSelector: '.element-itemif', 6 // layoutMode: 'fitRows' 7 }); 8 9 $(".apif-owl-carousel").owlCarousel({ 10 margin: 10, 11 loop: true, 12 autoplay: true, 13 autoplaySpeed:500, 14 responsive: { 15 0: { 16 items: 1 17 }, 18 600: { 19 items: 2 20 }, 21 1000: { 22 items: 3 23 } 24 } 25 }); 26 27 28 $( '.ri-grid' ).gridrotator({ 29 rows : '2', 30 columns : '5', 31 maxStep : 2, 32 interval : 2000, 33 preventClick : false, 34 w1024 : { 35 rows : '2', 36 columns : '5' 37 }, 38 w768 : { 39 rows : '2', 40 columns : '5' 41 }, 42 w480 : { 43 rows : '2', 44 columns : '5' 45 }, 46 w320 : { 47 rows : '2', 48 columns : '5' 49 }, 50 w240 : { 51 rows : '2', 52 columns : '5' 53 } 54 }); 55 56}); 57 58// Mosaic View Layout Javascript 59function initHoverEffectForThumbView() { 60 jQuery('.thumb-elem, .grid-elem header').each(function(){ 61 var thisElem = jQuery(this); 62 var getElemWidth = thisElem.width(); 63 var getElemHeight = thisElem.height(); 64 var centerX = getElemWidth/2; 65 var centerY = getElemHeight/2; 66 67 thisElem.mouseenter(function(){ 68 thisElem.on('mousemove', function (e) { 69 var mouseX = e.pageX - thisElem.offset().left; 70 var mouseY = e.pageY - thisElem.offset().top; 71 var mouseDistX = (mouseX / centerX) * 100 - 100; 72 var mouseDistY = (mouseY / centerY) * 100 - 100; 73// thisElem.find('img.the-thumb').css({ 74// 'left': -(mouseDistX/6.64) - 15 + "%", 75// 'top': -(mouseDistY/6.64) - 15 + "%" 76// }); 77// thisElem.find('source.the-thumb').css({ 78// 'left': -(mouseDistX/6.64) - 15 + "%", 79// 'top': -(mouseDistY/6.64) - 15 + "%" 80// }); 81 }); 82 83 thisElem.find('.thumb-elem-section:not(.no-feat-img)').fadeIn('fast'); 84 }).mouseleave(function(){ 85 thisElem.find('.thumb-elem-section:not(.no-feat-img)').fadeOut('fast'); 86 }); 87 }); 88} 89 90 91function initSimpleHoverEffectForThumbView() { 92 jQuery('.thumb-elem, .grid-elem header').each(function(){ 93 var thisElem = jQuery(this); 94 thisElem.mouseenter(function(){ 95 thisElem.find('.thumb-elem-section:not(.no-feat-img)').fadeIn('fast'); 96 }).mouseleave(function(){ 97 thisElem.find('.thumb-elem-section:not(.no-feat-img)').fadeOut('fast'); 98 }); 99 }); 100} 101 102jQuery(window).load(function() { 103 "use strict"; 104 105 if (!hoverEffect.disable_hover_effect && jQuery(window).width() > 768) { 106 initHoverEffectForThumbView(); 107 }else{ 108 initSimpleHoverEffectForThumbView(); 109 } 110}); 111var hoverEffect = {"disable_hover_effect":""};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.