1/** 2 * ------------------------------------------------------------------------ 3 * JA Allure Template 4 * ------------------------------------------------------------------------ 5 * Copyright (C) 2004-2018 J.O.O.M Solutions Co., Ltd. All Rights Reserved. 6 * @license - Copyrighted Commercial Software 7 * Author: J.O.O.M Solutions Co., Ltd 8 * Websites: http://www.joomlart.com - http://www.joomlancers.com 9 * This file may not be redistributed in whole or significant part. 10 * ------------------------------------------------------------------------ 11 */ 12 13 14// Head Search 15// -------------- 16(function($){ 17 $(document).ready(function () { 18 if($('.head-search-wrap').length > 0) { 19 $('.btn-search').click(function() { 20 $('.head-search').toggleClass('btn-open'); 21 $('.head-search-wrap').toggleClass('btn-open'); 22 $('.head-right').toggleClass('btn-open'); 23 $('.has-search').toggleClass('has-search-open'); 24 25 if ($('.head-search-wrap').hasClass('btn-open')) { 26 $('#mod-search-searchword').focus(); 27 } 28 }); 29 } 30 if ($('table.hikashop_product_characteristics_table').length) { 31 $('table.hikashop_product_characteristics_table tr input.inputbox').on('click', function(){ 32 // $('#hikashop_product_characteristics label.active').removeClass('active'); 33 // $(this).parent().addClass('active'); 34 $(this).parents('tr').find('label').removeClass('active'); 35 $(this).parent().addClass('active'); 36 }); 37 } 38 }); 39})(jQuery); 40 41(function($){ 42 $(document).ready(function(){ 43 44 //////////////////////////////// 45 // equalheight for col 46 //////////////////////////////// 47 var ehArray = ehArray2 = [], 48 i = 0; 49 50 $('.equal-height').each (function(){ 51 var $ehc = $(this); 52 if ($ehc.has ('.equal-height')) { 53 ehArray2[ehArray2.length] = $ehc; 54 } else { 55 ehArray[ehArray.length] = $ehc; 56 } 57 }); 58 59 for (i = ehArray2.length -1; i >= 0; i--) { 60 ehArray[ehArray.length] = ehArray2[i]; 61 } 62 63 var equalHeight = function() { 64 for (i = 0; i < ehArray.length; i++) { 65 var $cols = ehArray[i].children().filter('.col'), 66 maxHeight = 0, 67 equalChildHeight = ehArray[i].hasClass('equal-height-child'); 68 69 // reset min-height 70 if (equalChildHeight) { 71 $cols.each(function(){$(this).children().first().css('min-height', 0)}); 72 } else { 73 $cols.css('min-height', 0); 74 } 75 $cols.each (function() { 76 maxHeight = Math.max(maxHeight, equalChildHeight ? $(this).children().first().innerHeight() : $(this).innerHeight()); 77 }); 78 if (equalChildHeight) { 79 $cols.each(function(){$(this).children().first().css('min-height', maxHeight + 1)}); 80 } else { 81 $cols.css('min-height', maxHeight + 1); 82 } 83 } 84 // store current size 85 $('.equal-height > .col').each (function(){ 86 var $col = $(this); 87 $col.data('old-width', $col.width()).data('old-height', $col.innerHeight()); 88 }); 89 }; 90 91 equalHeight(); 92 93 // monitor col width and fire equalHeight 94 setInterval(function() { 95 $('.equal-height > .col').each(function(){ 96 var $col = $(this); 97 if (($col.data('old-width') && $col.data('old-width') != $col.width()) || 98 ($col.data('old-height') && $col.data('old-height') != $col.innerHeight())) { 99 equalHeight(); 100 // break each loop 101 return false; 102 } 103 }); 104 }, 500); 105 }); 106 $(window).on('load', function(){ 107 // only for simple product layout j2store 108 $('.com_j2store .simple-product .equal-height #j2store-product-detail-tab a').on('click', function(){ 109 setTimeout(function(){ 110 $('.com_j2store .simple-product .equal-height .col').removeAttr('style'); 111 }, 400); // delay for tab effect. 112 }); 113 }); 114 115})(jQuery);
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.