1export default { 2 data(){ 3 return { 4 passengers_1: 1, 5 passengers_2: 0, 6 passengers_3: 0, 7 } 8 }, 9 methods: { 10 crement(param, cnt, event){ 11 var that; 12 var target 13 if(event){ 14 target = $(event.target) 15 if(target.is('[data-bs-custom-class="tooltip-baby"]')) 16 that = target 17 else 18 that = target.closest('[data-bs-custom-class="tooltip-baby"]') 19 } 20 21 if(param == "passengers_3"){ 22 if(!target){ 23 //console.info("$event не опÑеделÑн") 24 //return 25 } 26 if(this.passengers_1 <= this.passengers_3 && cnt > 0){ 27 setTimeout(function(){ 28 clearTimeout(window.timetooltip) 29 30 $(that).tooltip('show') 31 $(that).on("mouseleave", ()=>{ 32 window.timetooltip = setTimeout(()=>{ 33 $(that).tooltip('hide') 34 }, 500) 35 }) 36 if( $(document).width() <= 991 ){ 37 window.timetooltip = setTimeout(()=>{ 38 $(that).tooltip('hide') 39 }, 2000) 40 } 41 },1) 42 43 return false 44 } 45 } 46 47 var max = max || 99 48 this[param] = this[param]*1 49 if((this[param] >= max && cnt > 0) || (this[param] <= 0 && cnt < 0) ) 50 { 51 return false 52 } 53 54 if(param == "passengers_1") { 55 if((this[param] >= max && cnt > 1) || (this[param] <= 1 && cnt < 1) ) 56 { 57 return false 58 } 59 } 60 61 console.log( ) 62 63 this[param] += cnt*1 64 } 65 }, 66}
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.