1jQuery(document).ready(function ($) { 2 3 "use strict"; 4 5 var $window = jQuery(window), 6 body = jQuery('body'), 7 //windowheight = page.getViewportHeight(), 8 sitewidth = $('.site').width(), 9 maxwidth = $('.site-main').width(), 10 windowheight = $window.height(), 11 pageheight = $( document ).height(), 12 windowwidth = $window.width(); 13 14 15 //Testimonials carousel 16 $('.tx-testimonials').each(function () { 17 $(this).owlCarousel({ 18 autoPlay : 8000, 19 stopOnHover : true, 20 //navigation:true, 21 paginationSpeed : 1000, 22 goToFirstSpeed : 2000, 23 singleItem : true, 24 autoHeight : false, 25 //navigationText: ["<i class=\"fa fa-angle-left\"></i>","<i class=\"fa fa-angle-right\"></i>"], 26 //theme: "tx-custom-slider", 27 addClassActive: true 28 }); 29 }); 30 31 32 //blog and portfolio carousel 33 $('.tx-carousel').each(function () { 34 35 var _this = $('.tx-carousel'); 36 var car_columns = _this.data('columns'); 37 38 $(this).owlCarousel({ 39 items : car_columns, 40 stopOnHover : true, 41 paginationSpeed : 1000, 42 navigation : true, 43 goToFirstSpeed : 2000, 44 singleItem : false, 45 autoHeight : true, 46 navigationText: ['<span class="genericon genericon-leftarrow"></span>','<span class="genericon genericon-rightarrow"></span>'], 47 addClassActive: true, 48 theme : "tx-owl-theme" 49 }); 50 }); 51 52 53 //Products carousel 54 $('.tx-prod-carousel').each(function () { 55 56 var _this = $(this); 57 var car_columns = _this.data('columns'); 58 59 $(this).children('div').children('ul').owlCarousel({ 60 items : car_columns, 61 stopOnHover : true, 62 //navigation:true, 63 paginationSpeed : 1000, 64 navigation : true, 65 goToFirstSpeed : 2000, 66 singleItem : false, 67 autoHeight : true, 68 //navigationText: ["<i class=\"fa fa-angle-left\"></i>","<i class=\"fa fa-angle-right\"></i>"], 69 //theme: "tx-custom-slider", 70 navigationText: ['<span class="genericon genericon-leftarrow"></span>','<span class="genericon genericon-rightarrow"></span>'], 71 addClassActive: true, 72 theme : "tx-owl-theme" 73 }); 74 }); 75 76 //Related Product 77 $('.related.products').each(function () { 78 79 var _this = $(this); 80 var car_columns = _this.data('columns'); 81 82 car_columns = 4; 83 84 $(this).children('ul').owlCarousel({ 85 items : car_columns, 86 stopOnHover : true, 87 //navigation:true, 88 paginationSpeed : 1000, 89 navigation : true, 90 goToFirstSpeed : 2000, 91 singleItem : false, 92 autoHeight : true, 93 //navigationText: ["<i class=\"fa fa-angle-left\"></i>","<i class=\"fa fa-angle-right\"></i>"], 94 //theme: "tx-custom-slider", 95 navigationText: ['<span class="genericon genericon-leftarrow"></span>','<span class="genericon genericon-rightarrow"></span>'], 96 addClassActive: true, 97 theme : "tx-owl-theme" 98 }); 99 }); 100 101 102 $('.tx-slider').each(function () { 103 104 var _this = $(this); 105 var slider_delay = _this.data('delay'); 106 var slider_transition = _this.data('transition'); 107 108 if( slider_transition == 'slide' ) 109 { 110 $(this).owlCarousel({ 111 autoPlay : slider_delay, 112 stopOnHover : true, 113 navigation: true, 114 paginationSpeed : 1000, 115 goToFirstSpeed : 2000, 116 singleItem : true, 117 autoHeight : true, 118 navigationText: ['<span class="genericon genericon-rightarrow"></span>','<span class="genericon genericon-leftarrow"></span>'], 119 addClassActive: true, 120 theme : "tx-owl-theme", 121 pagination : true 122 }); 123 } else 124 { 125 $(this).owlCarousel({ 126 autoPlay : slider_delay, 127 stopOnHover : true, 128 navigation: true, 129 paginationSpeed : 1000, 130 goToFirstSpeed : 2000, 131 singleItem : true, 132 autoHeight : true, 133 navigationText: ['<span class="genericon genericon-rightarrow"></span>','<span class="genericon genericon-leftarrow"></span>'], 134 addClassActive: true, 135 theme : "tx-owl-theme", 136 transitionStyle : slider_transition, 137 pagination : true 138 }); 139 } 140 141 142 }); 143 144 145 // colorboxpopup 146 $('.tx-colorbox').each(function () { 147 $(this).colorbox(); 148 }); 149 150 // blog area masonry 151 //if ( $('.tx-post-row').length > 0 ) 152 153 //$(window).load(function() 154 $(window).on('load', function () { 155 $('.tx-masonry').each(function () { 156 $(this).masonry({}); 157 }); 158 }); 159 160 /* 161 $('.tx-blog').each(function () { 162 163 console.log ('maso'); 164 165 var _this = $(this); 166 var container_3 = document.querySelector('.tx-blog'); 167 var msnry_3 = new Masonry( container_3, { 168 //itemSelector: '.widget' 169 }); 170 }); 171 */ 172
173 174 ///////////////////////////////////////////// 175 // Forcing Wide 176 ///////////////////////////////////////////// 177 178 $.fn.widify = function() { 179 180 this.each( function() { 181 var _this = $(this); 182 var fwheight = $(this).children('div').outerHeight(); 183 var extrawidth = (sitewidth-maxwidth)/2+32; 184 185 186 if(sitewidth >= 1200) 187 { 188 _this.wrapInner( "<div class='tx-fullwidthinner'></div>" ); 189 190 _this.css({"overflow":"visible"}); 191 _this.children('.tx-fullwidthinner').css({"width":sitewidth+"px","position":"relative","margin-left":"-"+extrawidth+"px","overflow":"hidden"}); 192 193 //console.log ("yo max width : "+maxwidth+" sitewidth : "+sitewidth+" left: "+extrawidth); 194 195 } 196 197 198 $(window).resize(function() { 199 //console.log("resized : "+$('.site').width()+", Site width : "+sitewidth+", max width : "+maxwidth); 200 maxwidth = $('.site-main').width(); 201 sitewidth = $('.site').width(); 202 extrawidth = (sitewidth-maxwidth)/2+32; 203 204 if(sitewidth > 1200) { 205 206 if(!_this.children('div').hasClass('tx-fullwidthinner')) 207 { 208 _this.wrapInner( "<div style='position: relative; overflow: hidden;' class='tx-fullwidthinner'></div>" ); 209 //console.log("added"); 210 } 211 212 _this.css({"overflow":"visible"}); 213 _this.children('.tx-fullwidthinner').css({"width":sitewidth+"px","position":"relative","margin-left":"-"+extrawidth+"px"}); 214 } else 215 { 216 217 if(_this.children('div').hasClass('tx-fullwidthinner')) 218 { 219 _this.children('.tx-fullwidthinner').children().unwrap(); 220 } 221 _this.css({"height":"auto","overflow":"hidden"}); 222 //console.log("should be here"); 223 } 224 225 }); 226 227 }); 228 }; 229 230 // forcing wide 231 $('.tx-fullwidthrow').each(function () { 232 //if( $('body.tx-boxed').length < 1 && $('.has-left-sidebar').length < 1 && $('.has-right-sidebar').length < 1 ) 233 if( $('.has-left-sidebar').length < 1 && $('.has-right-sidebar').length < 1 ) 234 { 235 $(this).widify(); 236 } 237 }); 238 239 if ( $('.other-slider').length > 0 ) 240 { 241 var slider_parallax = $('.other-slider').children('.tx-slider').data('parallax'); 242 var slidetop2 = parseInt($('.other-slider').offset().top); 243 244 if( $( window ).width() > 999 && slider_parallax == "yes" ) 245 { 246 $(window).scroll(function(){ 247 var newvalue2 = parseInt($(this).scrollTop()*0.70)-100; 248 249 if ($(this).scrollTop() > slidetop2) 250 { 251 $('.other-slider img').css('margin-top', newvalue2+'px'); 252 } 253 254 if ($(this).scrollTop() <= slidetop2) 255 { 256 var slideheight2 = $('.other-slider .active img').height(); 257 $('.other-slider img').css('margin-top', 0+'px'); 258 $('.other-slider .owl-wrapper-outer').css('max-height', slideheight2+'px'); 259 } 260 //console.log('margin-top : '+newvalue+'px, ' + 'SlideTop : ' +slidetop+'px, ' + 'Scrolltop : ' +$(this).scrollTop()+'px'); 261 }); 262 } 263 } 264 265 266 //blog and portfolio carousel 267 $('.tx-animate').each(function () { 268 269 var _this = $(this); 270 var animation = _this.data('animation'); 271 var duration = _this.data('animation-duration'); 272 var delay = _this.data('animation-delay'); 273 274 duration = duration+'s'; 275 delay = delay+'s' 276 277 _this.on('inview', function(event, isInView) { 278 if (isInView) { 279 _this.css({'visibility': 'visible', 'animation-duration': duration, 'animation-delay': delay}).addClass('animated '+animation); 280 } else { 281 // element has gone out of viewport 282 } 283 }); 284 }); 285 286 287 if ( $('.tx-vslider').length > 0 ) 288 { 289 var header_height = $('.tx-vslider').data('vslider-height'); 290 var header_reduct = $('.tx-vslider').data('vslider-reduct'); 291 292 var winheight = $( window ).height(); 293 var winwidth = $( window ).width(); 294 295 if( winwidth > 1200 ) 296 { 297 $('.tx-vslider').css( "height", ((winheight-header_reduct)/100)*header_height ); 298 } else 299 { 300 $('.tx-vslider').css( "height", winheight/2); 301 } 302 303 } 304 305 306 // progress/skill bar 307 $('.prograss-container').each(function (index) { 308 var _this = $(this); 309 310 var bar_percent = _this.data("progress-percent")+'%'; 311 312 _this.children('.pbar-outer').children('.pbar-text').children('.bpercent').html(bar_percent); 313 314 _this.one('inview', function () { 315 setTimeout( function () { 316 _this.children('.pbar-outer').children('.pbar-inner').width(bar_percent); 317 }, (Math.floor((Math.random() * 400) + 40))); 318 }); 319 320 }); 321 322}); 323
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.