1/** 2 * Module Name: MP3 Preview Module 3 * 4 * Module URI: Please contact with [email protected] 5 * Description: A Product Preview Application for MP3 Stores 6 * Version: 2.8.3 7 * 8 * @author MEG Venture <[email protected]> 9 * @copyright 2007-2022 MEG Venture 10 * @license Copyright 2012, Caglar Guler ([email protected]) 11 * This program is not a free software: you can't redistribute it and/or modify 12 * it. All rights reserved. 13 * 14 * This copyright notice and licence should be retained in all modules based on this framework. 15 * This does not affect your rights to assert copyright over your own original work. 16 * However, the license of the audio player used in this module is provided below. 17 * This license is also in force. 18 * 19 * --------------------------------------------------------------------------------- 20 * License of the JPlayer used in this module 21 * 22 * jPlayer is the completely free and open source (MIT) media library written in JavaScript. 23 * For more information, please refer to jplayer.org 24 * --------------------------------------------------------------------------------- 25 * 26 * The mp3 upload system is adapted from the tutorial of Martin Angelov, May 2013 27 * Reference website --> http://tutorialzine.com/2013/05/mini-ajax-file-upload-form/ 28 */ 29 30$(document).ready(function () { 31 var baseDir = prestashop.urls.base_url; 32 var static_token = prestashop.static_token; 33 var urls = baseDir + 34 'modules/mp3storepro/controllers/front/ajaxnewplayer.php?token=' + static_token; 35 var pCcount = 1; 36 $( 37 "body#index main section#wrapper div.container div#content-wrapper section#main section#content section.featured-products div.products article.product-miniature div.thumbnail-container" 38 ).each(function () { 39 var chref = $(this).closest('article').attr("data-id-product"); 40 var width_player = $(this).closest('.thumbnail-container').width(); 41 $('<div id="jquery_jplayer_11_' + pCcount + 42 '" class="jquery_jplayer_maindiv" style="width:' + width_player + 'px;"></div>').insertAfter(this); 43 $.ajax( 44 { 45 url: urls, 46 data: { 47 act: 'feat_player_display', 48 idp: chref 49 }, 50 type: 'GET', // Default value 'GET' sends data via GET 51 cache: true, // Alternate value false forces browser not to send cached page 52 async: false, // Alternate value false pauses current page until action is complete 53 success: function (data, status, xhr) { 54 // alert(data); 55 $('#jquery_jplayer_11_' + pCcount).html(data); 56 }, 57 // error:function (xhr, ajaxOptions, thrownError) { 58 // alert(xhr.status); 59 // alert(thrownError); 60 // } 61 }); 62 63 pCcount++; 64 }); 65});
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.