1jQuery(document).ready(function($) { 2 // DropDown 3 ajax_pagination(); 4 5 6// Events Calendar 7 if(jQuery('#calendar').length || jQuery('#upcoming_events_load').length) { 8 //var datepicker_opts = jQuery.extend(default_opts, tf_calendar.datepicker_opts); 9 10 var now = new Date(); 11 var day = ("0" + now.getDate()).slice(-2); 12 var month = ("0" + (now.getMonth() + 1)).slice(-2); 13 var today = now.getFullYear()+"-"+(month)+"-"+(day); 14 15 // ajax request to return event from curent category 16 var id = jQuery('input[name="current_event"]').attr("value"); 17 18 var lang = ''; 19 if( typeof tf_qtrans_lang !== 'undefined' ) 20 lang = '&lang=' + tf_qtrans_lang.lang; 21 22 var x_data = "action=tfuse_archive_events&id="+id + lang; 23 jQuery.ajax({ 24 type: "POST", 25 url: tf_script.ajaxurl, 26 data: x_data, 27 success: function(rsp){ 28 //console.log(rsp); 29 var data = jQuery.parseJSON(rsp); 30 31 var calendar = jQuery('#calendar').calendar({ 32 events_source: data, 33 view: 'month', 34 tmpl_path: tf_script.TFUSE_THEME_URL+'/tmpls/', 35 tmpl_cache: false, 36 modal: '#events-modal', 37 day: today, 38 onAfterEventsLoad: function(events) { 39 if(!events) { 40 return; 41 } 42 var list = jQuery('#eventlist'); 43 list.html(''); 44 45 jQuery.each(events, function(key, val) { 46 jQuery(document.createElement('li')) 47 .html('<a href="' + val.url + '">' + val.title + '</a>') 48 .appendTo(list); 49 }); 50 }, 51 onAfterViewLoad: function(view) { 52 var opts = tf_calendar.datepicker_opts; 53 54 jQuery('.calendar-navigation h3').text(this.getTitle()); 55 jQuery('.calendar-navigation a').removeClass('active'); 56 jQuery('a[data-calendar-view="' + view + '"]').addClass('active'); 57 58 //Events day 59 jQuery(function() { 60 jQuery('.cal-cell1').each(function (){ 61 var $this = jQuery(this); 62 if($this.children('.cal-month-day').children('.events-list').length){ 63 $this.children('.cal-month-day').addClass('event-day'); 64 65 var list_events = $this.find(".event").length; 66 if(list_events > 1){ 67 $this.find('.event-day').append('<div class="list-events">' + '<span>' + list_events + '</span>' + ' ' + opts.nr_event2 + '</div>'); 68 } 69 else{ 70 $this.find('.event-day').append('<div class="list-events">' + '<span>' + list_events + '</span>' + ' ' + opts.nr_event + '</div>'); 71 } 72 73 } 74 }); 75 jQuery('.cal-day-today').append("<span class='text-today'>"+opts.currentText+"</span>"); 76 }); 77 }, 78 classes: { 79 months: { 80 general: 'label' 81 } 82 } 83 }); 84 85 jQuery('.calendar-navigation a[data-calendar-nav]').each(function() { 86 var $this = jQuery(this); 87 $this.click(function() { 88 calendar.navigate($this.data('calendar-nav')); 89 }); 90 }); 91 92 jQuery('.calendar-navigation a[data-calendar-view]').each(function() { 93 var $this = jQuery(this); 94 $this.click(function() { 95 calendar.view($this.data('calendar-view')); 96 }); 97 }); 98 99 jQuery('#first_day').change(function(){ 100 var value = jQuery(this).val(); 101 value = value.length ? parseInt(value) : null; 102 calendar.setOptions({first_day: value}); 103 calendar.view(); 104 }); 105 106 jQuery('#language').change(function(){ 107 calendar.setLanguage(jQuery(this).val()); 108 calendar.view(); 109 }); 110 111 jQuery('#events-in-modal').change(function(){ 112 var val = jQuery(this).is(':checked') ? jQuery(this).val() : null; 113 calendar.setOptions({modal: val}); 114 }); 115 jQuery('#events-modal .modal-header, #events-modal .modal-footer').click(function(e){
116 //e.preventDefault(); 117 //e.stopPropagation(); 118 }); 119 } 120 }); 121 } 122 123 124 jQuery("[data-toggle='tooltip']").tooltip(); 125 126 //jQuery("body").tooltip({ selector: '[data-toggle=tooltip]' }); 127 128 jQuery('a[data-rel]').each(function() { 129 jQuery(this).attr('rel', jQuery(this).data('rel')); 130 }); 131 jQuery("a[rel^='prettyPhoto']").prettyPhoto({ 132 social_tools:false, 133 theme: 'dark_square' 134 }); 135 136 137 //var $ = jQuery; 138 var screenRes = jQuery(window).width(), 139 screenHeight = jQuery(window).height(), 140 html = jQuery('html'); 141 142 143//Menu <ul> replace to <select> 144function responsive(mainNavigation, mainNavigation2) { 145 var screenRes = jQuery('body').width(); 146 147 if (jQuery('#site-navigation select').length == 0) { 148 /* Replace unordered list with a "select" element to be populated with options, and create a variable to select our new empty option menu */ 149 jQuery('#site-navigation').append('<select class="select_styled" id="topm-select" style="display:none;"></select>'); 150 var selectMenu = jQuery('#topm-select'); 151 152 function appendToSelect(elem){ 153 154 /* Get top-level link and text */ 155 var href = jQuery(elem).children('a').attr('href'); 156 var text = jQuery(elem).children('a').text(); 157 158 /* Append this option to our "select" */ 159 if (jQuery(elem).is(".current-menu-item") && href != '#') { 160 jQuery(selectMenu).append('<option value="' + href + '">
160' + text + '</option>'); 161 } else if (href == '#') { 162 jQuery(selectMenu).append('<option value="' + href + '" disabled="disabled">' + text + '</option>'); 163 } else { 164 jQuery(selectMenu).append('<option value="' + href + '">' + text + '</option>'); 165 } 166 167 /* Check for "children" and navigate for more options if they exist */ 168 if (jQuery(elem).children('ul').length > 0) { 169 jQuery(elem).children('ul').children('li').not(".mega-nav-widget").each(function() { 170 171 /* Get child-level link and text */ 172 var href2 = jQuery(this).children('a').attr('href'); 173 var text2 = jQuery(this).children('a').text(); 174 175 /* Append this option to our "select" */ 176 if (jQuery(this).is(".current-menu-item") && href2 != '#') { 177 jQuery(selectMenu).append('<option value="' + href2 + '" selected> - ' + text2 + '</option>'); 178 } else if (href2 == '#') { 179 jQuery(selectMenu).append('<option value="' + href2 + '" disabled="disabled">- ' + text2 + '</option>'); 180 } else { 181 jQuery(selectMenu).append('<option value="' + href2 + '"> - ' + text2 + '</option>'); 182 } 183 184 /* Check for "children" and navigate for more options if they exist */ 185 if (jQuery(this).children('ul').length > 0) { 186 jQuery(this).children('ul').children('li').each(function() { 187 188 /* Get child-level link and text */ 189 var href3 = jQuery(this).children('a').attr('href'); 190 var text3 = jQuery(this).children('a').text(); 191 192 /* Append this option to our "select" */ 193 if (jQuery(this).is(".current-menu-item")) { 194 jQuery(selectMenu).append('<option value="' + href3 + '" class="select-current" selected>--' + text3 + '</option>'); 195 } else { 196 jQuery(selectMenu).append('<option value="' + href3 + '"> --- ' + text3 + '</option>'); 197 } 198 199 }) 200 } 201 }) 202 } 203 } 204 205 /* Navigate our nav clone for information needed to populate options */ 206 jQuery(mainNavigation).children('ul').children('li').each(function() { 207 appendToSelect(jQuery(this)) 208 }); 209 jQuery(mainNavigation2).children('ul').children('li').each(function() { 210 appendToSelect(jQuery(this)) 211 }); 212 213 } 214 if (screenRes > 768) { 215 jQuery('#site-navigation select:first').hide(); 216 jQuery('#site-navigation ul:first, #site-navigation2 ul:first').show(); 217 } else { 218 jQuery('#site-navigation ul:first, #site-navigation2 ul:first').hide(); 219 jQuery('#site-navigation select:first').show(); 220 } 221 222 /* When our select menu is changed, change the window location to match the value of the selected option. */ 223 jQuery(selectMenu).change(function() { 224 location = this.options[this.selectedIndex].value; 225 }); 226}; 227jQuery(document).ready(function() { 228 var screenRes = jQuery(window).width(); 229 // Remove links outline in IE 7 230 jQuery("a").attr("hideFocus", "true").css("outline", "none"); 231 232 233 234 // reload topmenu on Resize 235 var mainNavigation = jQuery('#site-navigation').clone(), 236 mainNavigation2 = jQuery('#site-navigation2').clone(); 237 responsive(mainNavigation, mainNavigation2); 238 239 jQuery(window).resize(function() { 240 var screenRes = jQuery('body').width(); 241 responsive(mainNavigation, mainNavigation2); 242 243 jQuery('.site-navigation').children('ul').first().slicknav({parentTag: 'div', allowParentLinks :true}); 244 jQuery('.slicknav_nav').find('.slicknav_item').siblings('ul').removeClass('hidden'); 245 246 }); 247 248 //Script align center the text for projects post 249 var wrapper_projects_post = jQuery('.postlist.projects .post'); 250 var entry_aside_projects = jQuery('.postlist.projects .entry-aside'); 251 wrapper_projects_post.each(function(){ 252 hei3 = jQuery(this).height(); 253 entry_aside_projects.each(function(){ 254 hei4 = jQuery(this).height(); 255 jQuery(this).css({ 256 'padding-top' :hei3/2-hei4/2 257 }); 258 }); 259 260 }); 261 262}); 263 264 265// Mobile Menu (SlickNav) 266jQuery('.site-navigation').children('ul').first().slicknav({parentTag: 'div', allowParentLinks :true}); 267jQuery('.slicknav_nav').children('.mega-nav').find('.slicknav_item').removeClass('slicknav_item'); 268jQuery('.slicknav_nav').find('.slicknav_item').siblings('ul').removeClass('hidden'); 269 270//Menu Script dropdown animate 271 jQuery(document).ready(function(jQuery) { 272 273 274 jQuery(".nav-menu > ul").addClass('animated hidden'); 275 276 var menuItemWidth, submenuItemWidth, mnHeight; 277 278 jQuery(".nav-menu .menu-item-has-children").hover(function(event){ 279 var jQuerythis = jQuery(this); 280 281 jQuerythis.children('ul').removeClass().addClass('animated'); 282 menuItemWidth = jQuerythis.innerWidth(); 283 menuItemHeight = jQuerythis.innerHeight(); 284 submenuItemWidth = jQuerythis.children("ul").innerWidth(); 285 286 // Set Mega Nav Width according to # of Widgets 287 if(jQuerythis.hasClass('mega-nav')) { 288 var ul = jQuerythis.children('ul'), 289 li = ul.children('li'), 290 widthFinal = 0 291 liHeight = 0; 292 293 li.not('.arrow-dropdown').each(function() { 294 var width = jQuery(this).outerWidth() 295 widthFinal = widthFinal + width; 296 height = jQuery(this).outerHeight(); 297 298 if (height > liHeight) { 299 liHeight = height; 300 } 301 302 }); 303 ul.css('width', widthFinal); 304 li.not('.arrow-dropdown').css('height', liHeight); 305 if (jQuerythis.find('ul').length){ 306 var meganav = jQuery(this).children("ul"), 307 mnWidth = meganav.outerWidth(), 308 mnoffset = parseInt(meganav.offset().left, 10), 309 screenWidth = jQuery(window).width(); 310 if (mnoffset+mnWidth > screenWidth) { 311 meganav.css('left' , -(mnoffset+mnWidth-screenWidth) - 22); 312 } 313 } 314 315 } 316 if(jQuerythis.find('ul')) { 317 var dropdown = jQuerythis.children('ul'), 318 dropdownWidth = dropdown.outerWidth(), 319 dropdownOffset = parseInt(dropdown.offset().left, 10); 320 if (dropdownWidth + dropdownOffset > screenRes) { 321 dropdown.removeClass().addClass('left'); 322 } 323 else { 324 dropdown.removeClass('left'); 325 } 326 } 327 328 jQuerythis.children('ul').addClass('fadeInDownSmall').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){ 329 jQuerythis.children('ul').removeClass('fadeInDownSmall fadeOutUpSmall animated hidden').addClass('animated') 330 }); 331 }, function(){ 332 jQuery(this).children('ul').addClass('fadeOutUpSmall').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){ 333 jQuery(this).removeClass('fadeInDownSmall fadeOutUpSmall animated hidden').addClass('hidden'); 334 }); 335 }); 336 337 338 339 // Menu parent 340 jQuery(".nav-menu li").has('ul').addClass('parent'); 341 342 343 //console.log(jQuery(".nav-menu ul.animated li").hasClass('parent').children('ul'));
344 345 jQuery(".nav-menu ul.animated li").each(function(){ 346 if(jQuery(this).hasClass('parent')) 347 jQuery(this).find('ul').removeClass('animated'); 348 }); 349 350 351 352 }); 353 354 355// IE<8 Warning 356 if (html.hasClass("ie7")) { 357 jQuery("body").empty().html('Please, Update your Browser to at least IE8'); 358 } 359 360// Disable Empty Links 361 jQuery("[href='#']").click(function(event){ 362 event.preventDefault(); 363 }); 364 365// Body Wrap 366 jQuery(".body-wrap").css("min-height", screenHeight); 367 jQuery(window).resize(function() { 368 screenHeight = jQuery(window).height(); 369 jQuery(".body-wrap").css("min-height", screenHeight); 370 }); 371 372// Remove outline in IE 373 jQuery("a, input, textarea").attr("hideFocus", "true").css("outline", "none"); 374 375 376// buttons 377 jQuery('a.btn, span.btn').on('mousedown', function(){ 378 jQuery(this).addClass('active') 379 }); 380 jQuery('a.btn, span.btn').on('mouseup mouseout', function(){ 381 jQuery(this).removeClass('active') 382 }); 383 384 385// Styled Select, CheckBox, RadioBox 386 if (jQuery(".select-styled").length) { 387 cuSel({changedEl: ".select-styled", visRows: 6, itemPadding: 14}); 388 } 389 if (jQuery(".input-styled").length) { 390 jQuery(".input-styled input").customInput(); 391 } 392 393// prettyPhoto lightbox, check if <a> has atrr data-rel and hide for Mobiles 394 if(jQuery('a').is('[data-rel]') && screenRes > 600) { 395 jQuery('a[data-rel]').each(function() { 396 jQuery(this).attr('rel', jQuery(this).data('rel')); 397 }); 398 jQuery("a[rel^='prettyPhoto']").prettyPhoto({ 399 social_tools:false, 400 theme: 'dark_square' 401 }); 402 }; 403 404 405 406 407// Smooth Scroling of ID anchors 408 function filterPath(string) { 409 return string 410 .replace(/^\//,'') 411 .replace(/(index|default).[a-zA-Z]{3,4}jQuery/,'') 412 .replace(/\/jQuery/,''); 413 } 414 var locationPath = filterPath(location.pathname); 415 var scrollElem = scrollableElement('html', 'body'); 416 417 jQuery('a[href*="#"].anchor').each(function() { 418 jQuery(this).click(function(event) { 419 var thisPath = filterPath(this.pathname) || locationPath; 420 if ( locationPath == thisPath 421 && (location.hostname == this.hostname || !this.hostname) 422 && this.hash.replace(/#/,'') ) { 423 var jQuerytarget = jQuery(this.hash), target = this.hash; 424 if (target && jQuerytarget.length != 0) { 425 var targetOffset = jQuerytarget.offset().top; 426 event.preventDefault(); 427 jQuery(scrollElem).animate({scrollTop: targetOffset}, 400, function() { 428 location.hash = target; 429 }); 430 } 431 } 432 }); 433 }); 434 435 // use the first element that is "scrollable" 436 function scrollableElement(els) { 437 for (var i = 0, argLength = arguments.length; i <argLength; i++) { 438 var el = arguments[i], 439 jQueryscrollElement = jQuery(el); 440 if (jQueryscrollElement.scrollTop()> 0) { 441 return el; 442 } else { 443 jQueryscrollElement.scrollTop(1); 444 var isScrollable = jQueryscrollElement.scrollTop()> 0; 445 jQueryscrollElement.scrollTop(0); 446 if (isScrollable) { 447 return el; 448 } 449 } 450 } 451 return []; 452 }; 453 454 455 456 457// Crop Images in Image Slider 458 459 // adds .naturalWidth() and .naturalHeight() methods to jQuery for retrieving a normalized naturalWidth and naturalHeight. 460 (function(jQuery){ 461 var 462 props = ['Width', 'Height'], 463 prop; 464 465 while (prop = props.pop()) { 466 (function (natural, prop) { 467 jQuery.fn[natural] = (natural in new Image()) ? 468 function () { 469 return this[0][natural]; 470 } : 471 function () { 472 var 473 node = this[0], 474 img, 475 value; 476 477 if (node.tagName.toLowerCase() === 'img') { 478 img = new Image(); 479 img.src = node.src, 480 value = img[prop]; 481 } 482 return value; 483 }; 484 }('natural' + prop, prop.toLowerCase())); 485 } 486 }(jQuery)); 487 488 var 489 carousels_on_page = jQuery('.carousel-inner').length, 490 carouselWidth, 491 carouselHeight, 492 ratio, 493 imgWidth, 494 imgHeight, 495 imgRatio, 496 imgMargin, 497 this_image, 498 images_in_carousel; 499 500 for(var i = 1; i <= carousels_on_page; i++){ 501 jQuery('.carousel-inner').eq(i-1).addClass('id'+i); 502 } 503 504 function imageSize() { 505 setTimeout(function () { 506 for(var i = 1; i <= carousels_on_page; i++){ 507 carouselWidth = jQuery('.carousel-inner.id'+i+' .item').width(); 508 carouselHeight = jQuery('.carousel-inner.id'+i+' .item').height();
509 ratio = carouselWidth/carouselHeight; 510 511 images_in_carousel = jQuery('.carousel-inner.id'+i+' .item img').length; 512 513 for(var j = 1; j <= images_in_carousel; j++){ 514 this_image = jQuery('.carousel-inner.id'+i+' .item img').eq(j-1); 515 imgWidth = this_image.naturalWidth(); 516 imgHeight = this_image.naturalHeight(); 517 imgRatio = imgWidth/imgHeight; 518 519 if(ratio <= imgRatio){ 520 imgMargin = parseInt((carouselHeight/imgHeight*imgWidth-carouselWidth)/2, 10); 521 this_image.css("cssText", "height: "+carouselHeight+"px; margin-left:-"+imgMargin+"px;"); 522 } 523 else{ 524 imgMargin = parseInt((carouselWidth/imgWidth*imgHeight-carouselHeight)/2, 10); 525 this_image.css("cssText", "width: "+carouselWidth+"px; margin-top:-"+imgMargin+"px;"); 526 } 527 } 528 } 529 }, 0); 530 } 531 532 jQuery(window).load(function(){ 533 imageSize(); 534 }); 535 jQuery(window).resize(function() { 536 jQuery('.carousel-indicators li:first-child').click(); 537 imageSize(); 538 }); 539 540}); 541 542 543 544// Footer Menu <ul> replace to <select> 545function responsive(footerNavigation) { 546 var screenRes = jQuery('body').width(); 547 548 if (jQuery('#site-navigation3 select').length == 0) { 549 /* Replace unordered list with a "select" element to be populated with options, and create a variable to select our new empty option menu */ 550 jQuery('#site-navigation3').append('<select class="select_styled" id="footerm-select" style="display:none;"></select>'); 551 var footerMenu = jQuery('#footerm-select'); 552 553 /* Navigate our nav clone for information needed to populate options */ 554 jQuery(footerNavigation).children('ul').children('li').each(function() { 555 556 /* Get top-level link and text */ 557 var href = jQuery(this).children('a').attr('href'); 558 var text = jQuery(this).children('a').text(); 559 560 /* Append this option to our "select" */ 561 if (jQuery(this).is(".current-menu-item") && href != '#') { 562 jQuery(footerMenu).append('<option value="' + href + '" selected>' + text + '</option>'); 563 } else if (href == '#') { 564 jQuery(footerMenu).append('<option value="' + href + '" disabled="disabled">' + text + '</option>'); 565 } else { 566 jQuery(footerMenu).append('<option value="' + href + '">
566' + text + '</option>'); 567 } 568 569 /* Check for "children" and navigate for more options if they exist */ 570 if (jQuery(this).children('ul').length > 0) { 571 jQuery(this).children('ul').children('li').not(".mega-nav-widget").each(function() { 572 573 /* Get child-level link and text */ 574 var href2 = jQuery(this).children('a').attr('href'); 575 var text2 = jQuery(this).children('a').text(); 576 577 /* Append this option to our "select" */ 578 if (jQuery(this).is(".current-menu-item") && href2 != '#') { 579 jQuery(footerMenu).append('<option value="' + href2 + '" selected> - ' + text2 + '</option>'); 580 } else if (href2 == '#') { 581 jQuery(footerMenu).append('<option value="' + href2 + '" disabled="disabled"># ' + text2 + '</option>'); 582 } else { 583 jQuery(footerMenu).append('<option value="' + href2 + '"> - ' + text2 + '</option>'); 584 } 585 586 /* Check for "children" and navigate for more options if they exist */ 587 if (jQuery(this).children('ul').length > 0) { 588 jQuery(this).children('ul').children('li').each(function() { 589 590 /* Get child-level link and text */ 591 var href3 = jQuery(this).children('a').attr('href'); 592 var text3 = jQuery(this).children('a').text(); 593 594 /* Append this option to our "select" */ 595 if (jQuery(this).is(".current-menu-item")) { 596 jQuery(footerMenu).append('<option value="' + href3 + '" class="select-current" selected>' + text3 + '</option>'); 597 } else { 598 jQuery(footerMenu).append('<option value="' + href3 + '"> -- ' + text3 + '</option>'); 599 } 600 601 }); 602 } 603 }); 604 } 605 }); 606 } 607 if (screenRes > 768) { 608 jQuery('#site-navigation3 select:first').hide(); 609 jQuery('#site-navigation3 ul:first').show(); 610 } else { 611 jQuery('#site-navigation3 ul:first').hide(); 612 jQuery('#site-navigation3 select:first').show(); 613 } 614 615 /* When our select menu is changed, change the window location to match the value of the selected option. */ 616 jQuery(footerMenu).change(function() { 617 location = this.options[this.selectedIndex].value; 618 }); 619} 620jQuery(document).ready(function() { 621 var screenRes = jQuery(window).width(); 622 // Remove links outline in IE 7 623 jQuery("a").attr("hideFocus", "true").css("outline", "none"); 624 625 626 // reload topmenu on Resize 627 var footerNavigation = jQuery('#site-navigation3').clone(); 628 responsive(footerNavigation); 629 630 jQuery(window).resize(function() { 631 var screenRes = jQuery('body').width(); 632 responsive(footerNavigation); 633 }); 634 635 636 637// odd/even 638 jQuery("ul.recent_posts > li:odd, ul.popular_posts > li:odd, .table-striped table>tbody>tr:odd, .boxed_list > .boxed_item:odd, .grid_layout .post-item:odd").addClass("odd"); 639 jQuery(".widget_recent_comments ul > li:even, .widget_recent_entries li:even, .widget_twitter .tweet_item:even, .widget_archive ul > li:even, .widget_categories ul > li:even, .widget_nav_menu ul > li:even, .widget_links ul > li:even, .widget_meta ul > li:even, .widget_pages ul > li:even, .event_list .event_item:even").addClass("even"); 640 641 642 643 if(jQuery('.header').parents('header').next().hasClass('slider-full')){ 644 jQuery('.header').removeClass('bg-menu'); 645 } 646 647 else{ 648 jQuery('.header').addClass('bg-menu'); 649 } 650 651 jQuery( ".press-article:nth-child(2n)" ).css( "margin-right", "0" ); 652 653 654 655 656 657 658 659 660}); 661 662jQuery(document).ready(function(){ 663 664 665 if(jQuery(".slider-foto-video").find("[data-skin='" + 'light' + "']").length){ 666 667 jQuery('.slider-html5gallery').attr({ 668 //"data-skin" : "light", //Skins: darkness, gallery, horizontal, light(default), mediapage, showcase, vertical 669 "data-width" : "740", 670 "data-height" : "515", 671 "data-slideshowinterval" : "6000", 672 "data-padding": 0, 673 "data-bgcolor" : "", 674 "data-bgimage" : "", 675 "data-galleryshadow" : !1, 676 "data-slideshadow" : !1, //!0 - Slider Shadow its true, analogical for next parameters 677 "data-showsocialmedia" : !1, 678 "data-headerpos" : "top", 679 "data-showdescription" : !1, 680 "data-titleoverlay" : !1, 681 "data-titleautohide" : !1, 682 "data-titlecss" : " {color:#ffffff; font-size:14px; font-family:Armata, sans-serif, Arial; overflow:hidden; white-space:normal; text-align:left; padding:10px 0px 10px 10px; background:rgb(102, 102, 102) transparent; background: rgba(102, 102, 102, 0.6); filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; -ms-filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; }", 683 "data-titlecsslink" : " a {color:#ffffff;}", 684 "data-descriptioncss" : " {color:#ffffff; font-size:12px; font-family:Armata, sans-serif, Arial; overflow:hidden; white-space:normal; text-align:left; padding:0px 0px 10px 10px; background:rgb(102, 102, 102) transparent; background: rgba(102, 102, 102, 0.6); filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; -ms-filter:'progid:DXImageTransform.Microsoft.gradient(startColorstr=#99666666, endColorstr=#99666666)'; }", 685 "data-descriptioncsslink" : " a {color:#ffffff;}", 686 "data-showcarousel" : !0, 687 "data-carouselmargin" : 0, 688 "data-carouselbgtransparent" : !0, 689 "data-thumbwidth" : 120, 690 "data-thumbheight" : 90, 691 "data-thumbgap" : 2, 692 "data-thumbmargin" : 2, 693 "data-thumbunselectedimagebordercolor" : "", 694 "data-thumbimageborder" : 0, 695 "data-thumbimagebordercolor" : "", 696 "data-thumbshowplayonvideo" : !0, 697 "data-thumbshadow" : !1, 698 "data-thumbopacity" : 0.9, 699 "data-responsive" : "true", 700 "data-pausebutton" : "false", 701 "data-autoslide" : "true", 702 "data-showplaybutton" : "false", 703 "data-autoplayvideo" : "false" 704 705 706 } 707 ); 708 jQuery('.slider-html5gallery').addClass('html5gallery'); 709 710 711 } 712 713 else{ 714 jQuery(".slider-foto-video > div").removeClass("slider-html5gallery").addClass("html5gallery"); 715 } 716 717 718 //Iframe Serponsive 719 function adjustIframes() 720 { 721 jQuery('iframe').each(function(){ 722 var 723 jQuerythis = jQuery(this), 724 proportion = jQuerythis.data( 'proportion' ), 725 w = jQuerythis.attr('width'), 726 actual_w = jQuerythis.width(); 727 728 if ( ! proportion ) 729 { 730 proportion = jQuerythis.attr('height') / w; 731 jQuerythis.data( 'proportion', proportion ); 732 } 733 734 if ( actual_w != w ) 735 { 736 jQuerythis.css( 'height', Math.round( actual_w * proportion ) + 'px' ); 737 } 738 }); 739 } 740 jQuery(window).on('resize load',adjustIframes); 741 742 // Detect Click in Iframe 743 function detectIframeClick() { 744 var overiFrame = -1; 745 746 jQuery('#myCarousel').find('iframe').hover( function() { 747 overiFrame = 1; 748 }, function() { 749 overiFrame = -1 750 }); 751 jQuery(window).on('blur', function() { 752 if( overiFrame != -1 ) { 753 jQuery('#myCarousel').carousel('pause'); 754 } 755 756 }); 757 758 jQuery('.carousel-control, .carousel-indicators li').click(function() { 759 jQuery('#myCarousel').carousel('cycle'); 760 }); 761 } 762 763 detectIframeClick(); 764 765}); 766 767function ajax_pagination() 768{ 769 770 if(parseInt(display.number) <= parseInt(display.items)) { 771 jQuery('#ajax_load_posts').parent().remove(); 772 } 773 774 var pageNum = parseInt(display.startPage); 775 var max = parseInt(display.maxPages); 776 var max_specific = parseInt(display.max_specific);// alert(max_specific); 777 if(max_specific != 0){ max = max_specific;} 778 779 jQuery('#ajax_load_posts').on('click',function(){ 780 jQuery(this).children('span').text('Loading...'); 781 pageNum++; 782 783 var post_type = jQuery('input[name="post_type"]').attr("value"); 784 var search_param = jQuery('input[name="search_param"]').attr("value"); 785 786 var search_key = jQuery('input[name="search_key"]').attr("value"); 787 var homepage = jQuery('input[name="homepage"]').attr("value"); 788 var allhome = jQuery('input[name="allhome"]').attr("value"); 789 var allblog = jQuery('input[name="allblog"]').attr("value"); 790 var cat_ids = jQuery('input[name="categories_ids"]').attr("value"); 791 var is_tax = jQuery('input[name="is_this_tax"]').attr("value"); 792 var id = jQuery('input[name="current_cat"]').attr("value"); 793 794 var x_data = "action=tfuse_ajax_get_posts&id="+id+"&search_param="+search_param+"&post_type="+post_type+"&is_tax="+is_tax+"&homepage="+homepage+"&allhome="+allhome+"&allblog="+allblog+"&cat_ids="+cat_ids+'&search_key='+search_key+'&pageNum='+pageNum+'&max='+max; 795 jQuery.ajax({ 796 type: "POST", 797 url: tf_script.ajaxurl, 798 data: x_data, 799 success: function(rsp){ 800 801 var obj = jQuery.parseJSON(rsp); 802 //var obj = rsp; 803 //s console.log(obj); 804 805 for(var i = 0 ;i < parseInt(obj.items); i++) 806 { 807 var boxes = jQuery(obj.html[i]); 808 jQuery("#content_load").append( boxes ); 809 } 810 811 if(pageNum >= max) 812 { 813 jQuery('#ajax_load_posts').parent().remove(); 814 } 815 else 816 { 817 jQuery('#ajax_load_posts').children('span').text('Load more'); 818 } 819 820 //Script align center the text for projects post 821 var wrapper_projects_post = jQuery('.postlist.projects .post'); 822 var entry_aside_projects = jQuery('.postlist.projects .entry-aside'); 823 wrapper_projects_post.each(function(){ 824 hei3 = jQuery(this).height(); 825 entry_aside_projects.each(function(){ 826 hei4 = jQuery(this).height(); 827 jQuery(this).css({ 828 'padding-top' :hei3/2-hei4/2 829 }); 830 }); 831 832 }); 833 834 jQuery('a[data-rel]').each(function() { 835 jQuery(this).attr('rel', jQuery(this).data('rel')); 836 }); 837 jQuery("a[rel^='prettyPhoto']").prettyPhoto({ 838 social_tools:false, 839 theme: 'dark_square' 840 }); 841 842 jQuery('.gallery-list .gallery-item:nth-child(4n)').css('margin-right','0px'); 843 } 844 }); 845 return false; 846 });
vendor: 3 bytes, line 847
847}
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.