1 2/* 3* Title : Pinpoint Booking System WordPress Plugin (PRO) 4* Version : 2.1.7 5* File : assets/js/rules/frontend-rules.js 6* File Version : 1.0.1 7* Created / Last Modified : 23 February 2016 8* Author : Dot on Paper 9* Copyright : © 2012 Dot on Paper 10* Website : http://www.dotonpaper.net 11* Description : Frontend end rules JavaScript class. 12*/ 13 14var DOPBSPFrontEndRules = new function(){ 15 'use strict'; 16 17 /* 18 * Private variables. 19 */ 20 var $ = jQuery.noConflict(); 21 22 /* 23 * Constructor 24 */ 25 this.__construct = function(){ 26 }; 27 28 /* 29 * Get the maximum stay of days/hours set in the rules. 30 * 31 * @param ID (Number): calendar ID 32 * 33 * @return maximum time lapse value 34 */ 35 this.getMaxTimeLapse = function(ID){ 36 var dataRules = DOPBSPFrontEnd.calendar[ID]['rules']['data']; 37 38 if(dataRules['rule'] != null){ 39 return dataRules['id'] !== '0' ? parseFloat(dataRules['rule']['time_lapse_max']):0; 40 } 41 else { 42 return 0; 43 } 44 }; 45 46 /* 47 * Get the minimum stay of days/hours set in the rules. 48 * 49 * @param ID (Number): calendar ID 50 * 51 * @return minimum time lapse value 52 */ 53 this.getMinTimeLapse = function(ID){ 54 var dataRules = DOPBSPFrontEnd.calendar[ID]['rules']['data']; 55 56 if(dataRules['rule'] != null){ 57 return dataRules['id'] !== '0' ? parseFloat(dataRules['rule']['time_lapse_min']):0; 58 } 59 else { 60 return 0; 61 } 62 }; 63 64 return this.__construct(); 65};
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.