1/************************************************ 2 Museum Gouda 3************************************************/ 4 5$(function () { 6 /************************************************ 7 Dynamic prices 8************************************************/ 9 if ( 10 parseFloat(ticketsTotalPrice) <= 0 || 11 typeof dynamicPriceDates == "undefined" || 12 dynamicPriceDates.length === 0 13 ) { 14 $("#calendar-section").removeClass("has-titles"); 15 } else { 16 $("#calendar-section").addClass("has-titles"); 17 var dates = []; 18 19 $.each(dynamicPriceDates, function (date, settings) { 20 var dayPrice = 0; 21 22 $.each(ticketNumbers, function (i, number) { 23 if (settings["day"][i]["price"] != undefined) { 24 var base = settings["day"][i]["base"]; 25 var price = settings["day"][i]["price"]; 26 27 dayPrice += parseFloat((price - base) * number); 28 } 29 }); 30 31 dates.push({ 32 date: date, 33 title: 34 dayPrice !== 0 35 ? (dayPrice < 0 ? "" : "+") + convertPrice(dayPrice) 36 : "", 37 }); 38 }); 39 40 datesTitle = { 41 dates: dates, 42 }; 43 44 $(".calendar").datepicker("refresh"); 45 } 46});
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.