Mirage

0
No results
Back

Textures


Back
$(function(){ function adjustInstallationElementHeight() { $('.texture_element.active').each(function(){ var $element = $(this).find('.texture_element_expand'); var height = $element.height() + parseInt($element.css('margin-top')); $('.texture_element').css('margin-bottom', 0); $(this).css('margin-bottom', height + 'px'); }); } $('.texture_element_card').click(function(){ $('.texture_element').removeClass('active'); $(this).closest('.texture_element').addClass('active'); adjustInstallationElementHeight(); }); $('.texture_element_card').eq(0).click(); doEventPeriodically($(window), 'resize', 100, adjustInstallationElementHeight); if(window.location.hash) { $(window.location.hash).closest('.texture_element').addClass('active'); adjustInstallationElementHeight(); } }); jQuery(document).ready(function() { jQuery(".texture_element_card").click(function(event) { jQuery("body").removeClass("overflow_hidden"); jQuery(".texture_element.zoomed").removeClass("zoomed"); jQuery(event.target).closest("body").addClass("overflow_hidden texture-opened"); jQuery(event.target).closest(".texture_element").addClass("zoomed"); }); jQuery(".textureElementBigger").click(function(event) { jQuery("body").removeClass("overflow_hidden texture-opened"); jQuery(".texture_element.zoomed").removeClass("zoomed"); }); });