1'use strict'; 2 3 4$(function () { 5 $.ajaxSetup({cache: false}); 6}); 7 8 9function refreshCestaDinamic(){ 10 $.get('/webapi/cesta/cesta', function(result) { 11 $('#cestadinamic').html(result); 12 }); 13} 14 15 16function cestaAdd(idArticulo, cantidad){ 17 $.get("/webapi/cesta/add/"+idArticulo+"/"+cantidad, function() { 18 refreshCestaDinamic(); 19 }); 20} 21 22function cestaRemove(linea){ 23 $.get("/webapi/cesta/remove/"+linea, function() { 24 refreshCestaDinamic(); 25 }); 26} 27function cestaIncrement(linea,incremento){ 28 $.get("/webapi/cesta/increment/"+linea+"/"+incremento, function() { 29 refreshCestaDinamic(); 30 }); 31} 32 33$( ".addCestaBtn" ).on( "click", function() { 34 let idArticulo = $(this).data('idart'); 35 let cantArt = $(this).data('cantart'); 36 cestaAdd(idArticulo,cantArt); 37}); 38 39 40 41$("#cestadinamic").on( "click", ".removeLineaCesta", function() { 42 let lincesta = $(this).data('lincesta'); 43 cestaRemove(lincesta); 44}); 45 46 47$("#cestadinamic").on( "click", ".incLineaCesta", function() { 48 let lincesta = $(this).data('lincesta'); 49 cestaIncrement(lincesta,1); 50}); 51 52$("#cestadinamic").on( "click", ".decLineaCesta", function() { 53 let lincesta = $(this).data('lincesta'); 54 cestaIncrement(lincesta,-1); 55});
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.