http://www.tusrhode.de/wp-content/plugins/sport-core-plugin/js/canon_pagebuilder_front.js?ver=6.8.11
1"use strict"; 2 3/************************************************************* 4PAGEBUILDER FRONT SCRIPTS 5 6ADD PB_FIRST PB_LAST CLASSES TO PB BLOCKS 7GALLERY BLOCK ISOTOPE FILTERING 8POSTS GRAPH 9 10*************************************************************/ 11 12/***************************************** 13ADD PB_FIRST PB_LAST CLASSES TO PB BLOCKS 14*****************************************/ 15 16 17 jQuery(document).ready(function($) { 18 19 if ($('.pb_block').size() > 0) { 20 21 var $pbBlocks = $('.pb_block'); 22 $pbBlocks.first().addClass('pb_block_first'); 23 $pbBlocks.last().addClass('pb_block_last'); 24 25 } 26 27 }); 28 29/***************************************** 30GALLERY BLOCK ISOTOPE FILTERING 31*****************************************/ 32 33 34 jQuery(window).load(function($) { 35 36 $=jQuery; 37 38 if ($('.pb_isotope_gallery').size() > 0) { 39 $('.pb_isotope_gallery').isotope({ 40 itemSelector: '.element', 41 layoutMode: 'fitRows' 42 }); 43 } 44 45 // $('.pb_isotope_gallery').isotope('reLayout'); 46 47 }); 48 49 jQuery(document).ready(function($) { 50 51 52 if ($('.isotope_filter_menu').size() > 0) { 53 54 55 56 //ISOTOPE FILTERING 57 $('.isotope_filter_menu li:eq(0) a').addClass('selected'); 58 59 $('.isotope_filter_menu li a').on('click', function (event) { 60 event.preventDefault(); 61 var $this = $(this); 62 var $this_block = $this.closest('.pb_block'); 63 var $this_gallery = $this_block.find('.pb_isotope_gallery'); 64 65 //update selected filter item 66 $('.isotope_filter_menu li a').removeClass('selected'); 67 $this.addClass('selected'); 68 69 70 var filterVar = $this.closest('li').attr('class'); 71 if ( (typeof filterVar == 'undefined') || (filterVar.indexOf('cat-item-all') != -1) ) { 72 filterVar = "*"; 73 } else { 74 filterVar = filterVar.split(' '); 75 filterVar = "." + filterVar[1]; 76 } 77 $this_gallery.isotope({ filter: filterVar}); 78 79 //recalculate last item 80 var $filteredItems = $this_gallery.find('.element:not(.isotope-hidden)'); 81 if ($filteredItems.size() > 0) { 82 var numColumns = $this_gallery.attr('data-num_columns'); 83 84 $filteredItems.each(function(index, e) { 85 var $this = $(this); 86 $this.removeClass('last'); 87 if (((index+1) % numColumns) === 0) $this.addClass('last'); 88 }); 89 90 $this_gallery.isotope('reLayout'); 91 92 } 93 }); 94 95 } 96 97 }); 98 99/***************************************** 100POSTS GRAPH 101*****************************************/ 102 103 104 jQuery(document).ready(function($) { 105 106 if ($('.pb_posts_graph').size() > 0) { 107 108 $('.pb_posts_graph'). each(function (index) { 109 var $this = $(this); 110 var $singleGraphs = $this.find('.single-graph'); 111 var containerHeight = 260; 112 var imageHeight = 84; 113 var pixelRange = containerHeight - imageHeight; 114 115 // determine max 116 var max = 0; 117 $singleGraphs.each(function (index) { 118 var $thisSingleGraph = $(this); 119 var yValue = parseInt($thisSingleGraph.find('.graph-inner').attr('data-y_value')); 120 if (yValue > max) { max = yValue; } 121 }); 122 123 // for each graph calculate percentage of max 124 $singleGraphs.each(function (index) { 125 var $thisSingleGraph = $(this); 126 var $thisInnerGraph = $thisSingleGraph.find('.graph-inner'); 127 var yValue = parseInt($thisInnerGraph.attr('data-y_value')); 128 var percentage = yValue / max; 129 var reversePercentage = 1-percentage; 130 var pixelsFromTop = pixelRange * reversePercentage; 131 $thisInnerGraph.css('top', pixelsFromTop + 'px'); 132 133 // console.log("yValue: " + yValue); 134 // console.log("percentage: " + percentage); 135 // console.log("reversePercentage: " + reversePercentage); 136 // console.log("pixelsFromTop: " + pixelsFromTop); 137 }); 138 139 }); 140 141 } 142 143 }); 144
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.