1 2/* 3* Title : Pinpoint Booking System WordPress Plugin (PRO) 4* Version : 2.1.2 5* File : assets/js/frontend.js 6* File Version : 1.0 7* Created / Last Modified : 08 November 2015 8* Author : Dot on Paper 9* Copyright : © 2015 Dot on Paper 10* Website : http://www.dotonpaper.net 11* Description : Front end JavaScript class. 12*/ 13 14var DOPBSPFrontEnd = new function(){ 15 'use strict'; 16 17 /* 18 * Private variables. 19 */ 20 var $ = jQuery.noConflict(); 21 22 /* 23 * Public variables. 24 */ 25 this.calendar = new Array(); 26 27 /* 28 * Constructor 29 */ 30 this.__construct = function(){ 31 }; 32 33 /* 34 * Display price with currency in set format. 35 * 36 * @param ID (Number): calendar ID 37 * @param price (Number): price value 38 * 39 * @return price with currency 40 */ 41 this.setPrice = function(ID, 42 price){ 43 var dataCurrency = DOPBSPFrontEnd.calendar[ID]['currency']['data'], 44 priceDisplayed = ''; 45 46 price = DOPPrototypes.getWithDecimals(Math.abs(price), 47 2); 48 49 switch (dataCurrency['position']){ 50 case 'after': 51 priceDisplayed = price+dataCurrency['sign']; 52 break; 53 case 'after_with_space': 54 priceDisplayed = price+' '+dataCurrency['sign']; 55 break; 56 case 'before_with_space': 57 priceDisplayed = dataCurrency['sign']+' '+price; 58 break; 59 default: 60 priceDisplayed =dataCurrency['sign']+price; 61 } 62 63 return priceDisplayed; 64 }; 65 66 /* 67 * Get text. 68 * 69 * @param ID (Number): calendar ID 70 * @param section (String): the section for which the text will be displayed 71 * @param key (String): text key 72 * @param plugin (String): the plugin for which the text will be displayed 73 * 74 * @return a string or an array of strings 75 */ 76 this.text = function(ID, 77 section, 78 key, 79 plugin){ 80 plugin = plugin === undefined ? 'calendar':plugin; 81 82 switch (plugin){ 83 case 'calendar': 84 return DOPBSPFrontEnd.calendar[ID][section]['text'][key]; 85 break; 86 } 87 }; 88 89 return this.__construct(); 90};
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.