1$(document).ready(function() { 2 (function() { 3 var bar = $('.bar'); 4 var percent = $('.percent'); 5 $('#upload-form').ajaxForm({ 6 dataType: 'json', 7 beforeSend: function() { 8 var percentVal = '0%'; 9 bar.width(percentVal); 10 percent.html(percentVal) 11 }, 12 uploadProgress: function(event, position, total, percentComplete) { 13 var percentVal = percentComplete + '%'; 14 bar.width(percentVal); 15 percent.html(percentVal); 16 if (percentComplete == 100) { 17 var baseUrl = window.location.protocol + "//" + window.location.host; 18 $('#myprogress').hide(); 19 $('#processing').html('<img src="https://way2enjoy.com/files/loading22.gif"> Processing...') 20 } 21 }, 22 success: function(data) { 23 var percentVal = '100%'; 24 bar.width(percentVal); 25 percent.html(percentVal); 26 $('#ag1').attr("data-source", data.url); 27 $('#track_url').val(data.url); 28 $('#track_name').val(data.name); 29 $('#folder').val(data.folder); 30 if (data.message) { 31 $('#error').html(data.message); 32 $('#error').show() 33 } 34 $('#upload').hide(); 35 dzsap_init("#ag1", { 36 design_skin: "skin-wave", 37 autoplay: "on" 38 }); 39 $('#crop').show() 40 } 41 }); 42 $('#upload-form2').ajaxForm({ 43 dataType: 'json', 44 beforeSend: function() { 45 var percentVal = '0%'; 46 bar.width(percentVal); 47 percent.html(percentVal) 48 }, 49 uploadProgress: function(event, position, total, percentComplete) { 50 var percentVal = percentComplete + '%'; 51 bar.width(percentVal); 52 percent.html(percentVal); 53 if (jQuery.type(this.files) === "undefined") { 54 var size = '30' 55 } 56 else { 57 var size = Math.ceil(($('#input')[0].files[0].size) / 50000) 58 } 59 if (percentComplete == 100) { 60 baseUrl = window.location.protocol + "//" + window.location.host; 61 $('#myprogress').hide(); 62 $('#processing').html('<div id="my-timer">Less than <b class="h1 text-info" id="show-time">' + size + '</b> seconds </div><img src="https://way2enjoy.com/files/loading22.gif"> Processing...') 63 } 64 }, 65 success: function(data) { 66 var percentVal = '100%'; 67 bar.width(percentVal); 68 percent.html(percentVal); 69 var ndhtml = []; 70 var sthtml = []; 71 var rdhtml = []; 72 var html = ''; 73 for (var i = 0; i < data.length; i++) { 74 z = i + 1; 75 downlo = data[i]; 76 lastigg = downlo.countimg; 77 html += '<tr id="' + i + '"><td>' + z + '</td><td>' + downlo.name + '</td><td>' + downlo.size + '</td><td>' + downlo.compressedsize + '</td><td>' + downlo.webpsize + '</td><td>' + downlo.resize + '</td><td>' + downlo.save + '</td><td><a href="' + downlo.file + '" download="' + downlo.name + '" onclick="ga(\'send\', \'event\', \'PNG Download\', \'Download\', \'' + downlo.name + '\');">Download</a><a href="' + downlo.file + '" download="' + downlo.name + '" class="download_' + downlo.zipfile + '"><img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" width="1px" height="1px"></a></td></tr>'; /* console.log(lastigg); */ 78 if (lastigg === "99999999999") { 79 sthtml.push({ 80 'x': z, 81 'y': parseFloat(downlo.stchart) 82 }); 83 ndhtml.push({ 84 'x': z, 85 'y': parseFloat(downlo.ndchart) 86 }); 87 rdhtml.push({ 88 'x': z, 89 'y': parseFloat(downlo.rdchart) 90 }) 91 } 92 } 93 $('.canvsdis').addClass('canvsfinal'); 94 if (z > 3) 95 { 96 97 var chart = new CanvasJS.Chart("chartContainer", { 98 title: { 99 text: "Original Size Vs Compressed Size (in KB)", 100 fontSize: 30 101 }, 102 animationEnabled: !0, 103 // axisX: { 104 // gridColor: "Silver", 105 // tickColor: "silver", 106 // minimum: 1 107 // }, 108 theme: "theme2", 109 axisY: { 110 gridColor: "Silver", 111 tickColor: "silver", 112 includeZero: false 113 }, 114 axisX:{ 115 interval: 1, 116 minimum: 1 117 }, 118 legend: { 119 verticalAlign: "center", 120 horizontalAlign: "right" 121 }, 122 data: [{type: "line",showInLegend: !0,yValueFormatString: "#,##0.0# KB",name: "Original Size",minimum: 1,markerType: "square",color: "#F08080",lineThickness: 4, dataPoints: sthtml},{type: "line",showInLegend: !0,yValueFormatString: "#,##0.0# KB",name: "Compressed Size",minimum: 1,markerType: "square",color: "#20B2AA",lineThickness: 5,dataPoints: ndhtml},{type: "line",showInLegend: !0,yValueFormatString: "#,##0.0# KB",name: "WebP Size",minimum: 1,markerType: "square",color: "orange",lineThickness: 5,dataPoints: rdhtml}], 123 legend: { 124 cursor: "pointer", 125 } 126 }); 127 128 } 129 else 130 { 131 132 var chart = new CanvasJS.Chart("chartContainer", { 133 title: { 134 text: "Original Size Vs Compressed Size (in KB)", 135 fontSize: 30 136 }, 137 animationEnabled: !0, 138 // axisX: { 139 // gridColor: "Silver", 140 // tickColor: "silver", 141 // minimum: 1 142 // }, 143 theme: "light", 144 axisY: { 145 gridColor: "Silver", 146 tickColor: "silver", 147 includeZero: false, 148 minimum: 0 149 }, 150 legend: { 151 verticalAlign: "center", 152 horizontalAlign: "right" 153 }, 154 data: [{type: "bar",yValueFormatString: "#,##0.0# KB",dataPoints: [{ label: "WebP Size", color: "orange", y: parseFloat(downlo.rdchart) },{ label: "Compressed Size", color: "#20B2AA", y: parseFloat(downlo.ndchart) },{ label: "Original Size", color: "#F08080", y: parseFloat(downlo.stchart) },]}], 155 legend: { 156 cursor: "pointer", 157 } 158 }); 159 160 161 } 162 // console.log(datavaluee); 163 164 $('#down-btn').html(html); 165 166 167 168 chart.render(); 169 $('#saving-details').html(html); 170 if (data.message) { 171 $('#download').html('<span class="alert alert-danger" role="alert" id="error">' + data.message + '</span>') 172 } 173 $('#upload').hide(); 174 $('#download').show() 175 } 176 }) 177 })(); 178 $('#input').change(function() { 179 $("#upload-form2").submit(); 180 $('#loading_progress').hide(); 181 $('#loading_progress').html(''); 182 $('#upload_btn').attr('disabled', !1); 183 $('#myprogress').show(); 184 var max = 52428800; 185 if (this.files && this.files[0].size > max) { 186 $('#loading_progress').html('File size is too big!'); 187 $('#loading_progress').show(); 188 $('#upload_btn').attr('disabled', !0); 189 $('#myprogress').hide(); 190 this.value = '' 191 } 192 if ($('#speed').val() == "") { 193 $('#speed').css({ 194 "border": '#FF0000 1px solid' 195 }); 196 $('#upload_btn').attr('disabled', !0) 197 } 198 }); 199 $('#speed').change(function() { 200 if ($('#speed').val() == "") { 201 $('#speed').css({ 202 "border": '#FF0000 1px solid' 203 }); 204 $('#upload_btn').attr('disabled', !0) 205 } 206 else { 207 $('#speed').css({ 208 "border": '1px solid #a9a9a9' 209 }); 210 $('#upload_btn').attr('disabled', !1) 211 } 212 }); 213 $('#back').click(function() { 214 $('#download').hide(); 215 $('#trimming_progress').html(''); 216 $('#crop').show() 217 }) 218}); 219 220function display_error(txt) { 221 $('#loading_progress').html(txt); 222 $('#upload_btn').attr('disabled', !0) 223} 224 225function trim_it() { 226 $('audio')[0].pause(); 227 var track_url = $('#track_url').val(); 228 var track_name = $('#track_name').val(); 229 var track_ext = $('#track_ext').val(); 230 var begin = $('#begin').val(); 231 var end = $('#end').val(); 232 var folder = $('#folder').val(); 233 var fade = $('#fade').val(); 234 var baseUrl = window.location.protocol + "//" + window.location.host; 235 $('#trimming_progress').html('<img src="https://way2enjoy.com/files/loading22.gif"> Processing...'); 236 $.ajax({ 237 url: 'https://way2enjoy.com/modules/mp3-cutter/crop.php', 238 type: 'POST', 239 data: { 240 track_url: track_url, 241 track_name: track_name, 242 begin: begin, 243 end: end, 244 track_ext: track_ext, 245 folder: folder, 246 fade: fade 247 }, 248 dataType: 'json', 249 success: function(data) { 250 $('#crop').hide(); 251 $('#download').show(); 252 $('#down-btn').attr('href', '' + data.file) 253 }, 254 error: function(data) { 255 $('#crop').hide(); 256 $('#download').show(); 257 $('#info').html('There has been an error processing your request.') 258 } 259 }) 260}
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.