1/** 2 * 2015-2019 Bonpresta 3 * 4 * Bonpresta Gallery Thumbnails On Product List 5 * 6 * NOTICE OF LICENSE 7 * 8 * This source file is subject to the General Public License (GPL 2.0) 9 * that is bundled with this package in the file LICENSE.txt. 10 * It is also available through the world-wide-web at this URL: 11 * http://opensource.org/licenses/GPL-2.0 12 * 13 * DISCLAIMER 14 * 15 * Do not edit or add to this file if you wish to upgrade the module to newer 16 * versions in the future. 17 * 18 * @author Bonpresta 19 * @copyright 2015-2019 Bonpresta 20 * @license http://opensource.org/licenses/GPL-2.0 General Public License (GPL 2.0) 21*/ 22 23(function($){ 24 'use strict'; 25 26 $('.bonthumbnails li:first-child').addClass('active'); 27 $(document).on('click', '.bonthumbnails li a', function(e) { 28 e.preventDefault(); 29 var urlThumbnails = $(this).attr('data-href'); 30 var boxThumbnails = $(this).parent().parent().prev('.product-thumbnail').find('img'); 31 $(boxThumbnails).attr('src', urlThumbnails); 32 $(this).parent().parent().find('li.active').removeClass('active'); 33 $(this).parent().addClass('active'); 34 }); 35 36}(jQuery)); 37
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.