1/** 2 * Copyright ETS Software Technology Co., Ltd 3 * 4 * NOTICE OF LICENSE 5 * 6 * This file is not open source! Each license that you purchased is only available for 1 website only. 7 * If you want to use this file on more websites (or projects), you need to purchase additional licenses. 8 * You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party. 9 * 10 * DISCLAIMER 11 * 12 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 13 * versions in the future. 14 * 15 * @author ETS Software Technology Co., Ltd 16 * @copyright ETS Software Technology Co., Ltd 17 * @license Valid for 1 website (or project) for each purchase of license 18 */ 19$(document).ready(function(){ 20 ets_blog.runowl(); 21 $('#module-ets_blog-blog').addClass('ets-blog'); 22 $(document).on('click','.ets-category-blog-parent',function(){ 23 $(this).next().toggleClass('show'); 24 $(this).toggleClass('active'); 25 }); 26 $(document).on('click','.ets_axpand_button',function(){ 27 if($(this).hasClass('closed')) 28 { 29 $(this).next('.list-months').removeClass('hidden'); 30 $(this).removeClass('closed').addClass('opened'); 31 } 32 else 33 { 34 $(this).next('.list-months').addClass('hidden'); 35 $(this).removeClass('opened').addClass('closed'); 36 } 37 }); 38 $('#ets-blog-capcha-refesh').click(function(){ 39 originalCapcha = $('#ets-blog-capcha-img').attr('src'); 40 originalCode = $('#ets-blog-capcha-img').attr('rel'); 41 newCode = Math.random(); 42 $('#ets-blog-capcha-img').attr('src', originalCapcha.replace(originalCode,newCode)); 43 $('#ets-blog-capcha-img').attr('rel', newCode); 44 }); 45 $('.blog_rating_star').click(function(){ 46 var rating = parseInt($(this).attr('rel')); 47 $('.blog_rating_star').removeClass('star_on'); 48 $('#blog_rating').val(rating); 49 for(i = 1; i<= rating; i++) 50 { 51 $('.blog_rating_star_'+i).addClass('star_on'); 52 } 53 }); 54}); 55ets_blog = { 56 runowl: function() 57 { 58 if ( $('.ets_blog_rtl_mode').length > 0 ){ 59 var rtl_blog = true; 60 61 } else { 62 var rtl_blog = false; 63 } 64 if ($('.page_blog.ets_block_slider ul').length > 0) 65 $('.page_blog.ets_block_slider ul').etsowlCarousel({ 66 items : 1, 67 nav : true, 68 navigation : true, 69 navigationText : ["",""], 70 pagination : false, 71 loop: $(".page_blog.ets_block_slider ul li").length > 1, 72 rewindNav : false, 73 dots : false, 74 navText: ['', ''], 75 callbacks: true, 76 rtl: rtl_blog, 77 }); 78 if($('.ets_blog_related_posts_type_carousel ul').length) 79 { 80 $('.ets_blog_related_posts_type_carousel ul').etsowlCarousel({ 81 items : 3, 82 nav : true, 83 navigation : true, 84 navigationText : ["",""], 85 pagination : false, 86 loop: $(".ets_blog_related_posts_type_carousel ul li").length > 3, 87 rewindNav : false, 88 dots : false, 89 navText: ['', ''], 90 callbacks: true, 91 rtl: rtl_blog, 92 responsive: { 93 0: { 94 items: 1 95 }, 96 768: { 97 items: 2 98 }, 99 1200: { 100 items: 3 101 } 102 } 103 }); 104 } 105 } 106}
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.