1/** 2 * 2020 PrestaShop 3 * 4 * NOTICE OF LICENSE 5 * 6 * This source file is subject to the Academic Free License (AFL 3.0) 7 * that is bundled with this package in the file LICENSE.txt. 8 * It is also available through the world-wide-web at this URL: 9 * http://opensource.org/licenses/afl-3.0.php 10 * If you did not receive a copy of the license and are unable to 11 * obtain it through the world-wide-web, please send an email 12 * to [email protected] so we can send you a copy immediately. 13 * 14 * DISCLAIMER 15 * 16 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 17 * versions in the future. If you wish to customize PrestaShop for your 18 * needs please refer to http://www.prestashop.com for more information. 19 * 20 * @author IT PREMIUM OÃ <[email protected]> 21 * @copyright 2020 IT PREMIUM OÃ 22 * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 23 * International Registered Trademark & Property of PrestaShop SA 24 */ 25 26$( document ).ready(function() { 27 if(bnJsMode == true) { 28 moveBuyNowButton(); 29 $( document ).ajaxComplete(function() { 30 moveBuyNowButton(); 31 }); 32 } 33 34 $(document).on('click', 'a.btn-buy-now', function(e) { 35 e.preventDefault(); 36 $.ajax({ 37 url: $(this).attr('href'), 38 }).done(function() { 39 $(location).attr('href', checkoutURL) 40 }); 41 }); 42 43 function moveBuyNowButton() { 44 $("div.buy-now-block a.btn-buy-now").appendTo(cartSelector).show(); 45 $("div.buy-now-block a.btn-buy-now").addClass("myObfuscateClassBase64"); 46 $("div.buy-now-block").remove(); 47 } 48});
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.