PATH:
home
/
letacommog
/
lavenue
/
wp-content
/
plugins
/
Ultimate_VC_Addons
/
assets
/
js
;(function ($, window, undefined) { $(window).load(function (a) { flip_box_set_auto_height(); }); $(document).ready(function (a) { flip_box_set_auto_height(); }); $(window).resize(function (a) { flip_box_set_auto_height(); }); function flip_box_set_auto_height() { $('.flip-box').each(function (index, value) { var bodywidth = $(document).width(); var WW = window.innerWidth; if (WW != '') { // For desktops if (WW >= 768) { var h = $(this).attr('data-min-height') || ''; if (h != '') { if ($(this).hasClass("ifb-custom-height")) { $(this).css('min-height', h); $(this).css('height', h); if ($(this).find(".ifb-back").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle")) { var back = $(this).find(".ifb-back").outerHeight(); var backsection = $(this).find(".ifb-back").find(".ifb-flip-box-section").outerHeight(); back = parseInt(h); backsection = parseInt(backsection); // if (backsection >= back) { $(this).find(".ifb-back").find(".ifb-flip-box-section").addClass("ifb_disable_middle"); } } if ($(this).find(".ifb-front").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle")) { var front = $(this).find(".ifb-front").outerHeight(); front = parseInt(h); var frontsection = $(this).find(".ifb-front").find(".ifb-flip-box-section").outerHeight(); frontsection = parseInt(frontsection); if (frontsection >= front) { $(this).find(".ifb-front").find(".ifb-flip-box-section").addClass("ifb_disable_middle"); } } } } else { if ($(this).hasClass("ifb-jq-height")) { var ht1 = $(this).find(".ifb-back").find(".ifb-flip-box-section").outerHeight(); ht1 = parseInt(ht1); var ht2 = $(this).find(".ifb-front").find(".ifb-flip-box-section").outerHeight(); ht2 = parseInt(ht2); if (ht1 >= ht2) { $(this).find(".ifb-face").css('height', ht1); } else { $(this).find(".ifb-face").css('height', ht2); } } else if ($(this).hasClass("ifb-auto-height")) { if ($(this).find(".ifb-back").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle")) { var back = $(this).find(".ifb-back").outerHeight(); back = parseInt(back); var backsection = $(this).find(".ifb-back").find(".ifb-flip-box-section").outerHeight(); backsection = parseInt(backsection); if (backsection >= back) { $(this).find(".ifb-back").find(".ifb-flip-box-section").addClass("ifb_disable_middle"); } } } } } // For Mobiles else { var h = $(this).attr('data-min-height') || ''; // for style - 9 if ($(this).hasClass('style_9')) { $(this).css('height', 'initial'); var f1 = $(this).find('.ifb-front-1 .ifb-front').outerHeight(); var f2 = $(this).find('.ifb-back-1 .ifb-back').outerHeight(); // set largest height - of either front or back if (f1 > f2) { $(this).css('height', f1); } else { $(this).css('height', f2); } } else { if ($(this).hasClass("ifb-jq-height")) { var ht1 = $(this).find(".ifb-back").find(".ifb-flip-box-section").outerHeight(); ht1 = parseInt(ht1); var ht2 = $(this).find(".ifb-front").find(".ifb-flip-box-section").outerHeight(); ht2 = parseInt(ht2); if (ht1 >= ht2) { $(this).find(".ifb-face").css('height', ht1); } else { $(this).find(".ifb-face").css('height', ht2); } } else if ($(this).hasClass("ifb-auto-height")) { if ($(this).find(".ifb-back").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle")) { var back = $(this).find(".ifb-back").outerHeight(); var backsection = $(this).find(".ifb-back").find(".ifb-flip-box-section").outerHeight(); back = parseInt(back); backsection = parseInt(backsection); if (backsection > back) { $(this).find(".ifb-back").find(".ifb-flip-box-section").addClass("ifb_disable_middle"); } } } else if ($(this).hasClass("ifb-custom-height")) { if (h != '') { $(this).css('min-height', h); $(this).css('height', h); if ($(this).find(".ifb-back").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle")) { var back = $(this).find(".ifb-back").outerHeight(); back = parseInt(back); var backsection = $(this).find(".ifb-back").find(".ifb-flip-box-section").outerHeight(); backsection = parseInt(backsection); if (backsection >= back) { $(this).find(".ifb-back").find(".ifb-flip-box-section").addClass("ifb_disable_middle"); } } if ($(this).find(".ifb-front").find(".ifb-flip-box-section").hasClass("ifb-flip-box-section-vertical-middle")) { var front = $(this).find(".ifb-front").outerHeight(); front = parseInt(front); var frontsection = $(this).find(".ifb-front").find(".ifb-flip-box-section").outerHeight(); frontsection = parseInt(frontsection); if (frontsection >= front) { $(this).find(".ifb-front").find(".ifb-flip-box-section").addClass("ifb_disable_middle"); } else { $(this).find(".ifb-front").find(".ifb-flip-box-section").addClass("ifb_disable_middle"); } } } } else { $(this).css('height', 'initial'); } } } } }); } }(jQuery, window));
[+]
..
[-] video_module.js
[edit]
[-] index.php
[edit]
[-] dual-button.js
[edit]
[-] SmoothScroll-compatible.js
[edit]
[-] slick.js
[edit]
[-] info-box.js
[edit]
[-] classie.js
[edit]
[-] expandable-section.js
[edit]
[-] count-timer.js
[edit]
[-] jparallax.js
[edit]
[-] highlight-box.js
[edit]
[-] typed.js
[edit]
[-] fixto.js
[edit]
[-] content-box.js
[edit]
[-] jquery.sticky-kit.js
[edit]
[-] vc-fronteditor.js
[edit]
[-] jquery-appear.js
[edit]
[-] tooltip.js
[edit]
[-] vc-inline-editor.js
[edit]
[-] jquery-ui-labeledslider.js
[edit]
[-] SmoothScroll.js
[edit]
[-] teams.js
[edit]
[-] snap-svg.js
[edit]
[-] modal.js
[edit]
[-] countUp.js
[edit]
[-] bootstrap-datetimepicker.js
[edit]
[-] range-slider.js
[edit]
[-] creative-link.js
[edit]
[-] easy-ticker.js
[edit]
[-] mb-YTPlayer.js
[edit]
[-] slick-custom.js
[edit]
[-] vhparallax.js
[edit]
[-] info-banner.js
[edit]
[-] masonry.js
[edit]
[-] swatchbook.js
[edit]
[-] image-separator.js
[edit]
[-] custom.js
[edit]
[-] hotspot.js
[edit]
[-] froogaloop2-min.js
[edit]
[-] jquery-ui.js
[edit]
[-] sticky-section.js
[edit]
[-] video-banner.js
[edit]
[-] tabs-accordion.js
[edit]
[-] tabs.js
[edit]
[-] ultimate_bg.js
[edit]
[-] flip-box.js
[edit]
[-] info-circle.js
[edit]
[-] countdown.js
[edit]
[-] jquery-ui-effect.js
[edit]
[-] hotspot-tooltipster.js
[edit]
[-] vc_column.js
[edit]
[-] range-slider-touch-punch.js
[edit]
[-] ultimate-params.js
[edit]
[-] modernizr-custom.js
[edit]
[-] ihover.js
[edit]
[-] headings.js
[edit]