Changeset 3318891
- Timestamp:
- 06/27/2025 03:58:31 PM (9 months ago)
- Location:
- box-tracker
- Files:
-
- 2 added
- 6 edited
- 11 copied
-
tags/2.2.4 (copied) (copied from box-tracker/trunk)
-
tags/2.2.4/box-tracker-online.php (copied) (copied from box-tracker/trunk/box-tracker-online.php) (1 diff)
-
tags/2.2.4/images/Google_logo.png (added)
-
tags/2.2.4/includes/base/activate.php (copied) (copied from box-tracker/trunk/includes/base/activate.php)
-
tags/2.2.4/includes/base/ajax-control.php (copied) (copied from box-tracker/trunk/includes/base/ajax-control.php)
-
tags/2.2.4/includes/base/enqueue.php (copied) (copied from box-tracker/trunk/includes/base/enqueue.php) (2 diffs)
-
tags/2.2.4/includes/base/server-calls.php (copied) (copied from box-tracker/trunk/includes/base/server-calls.php)
-
tags/2.2.4/javascript/address-validation-script.js (copied) (copied from box-tracker/trunk/javascript/address-validation-script.js) (6 diffs)
-
tags/2.2.4/javascript/front-house-script.js (modified) (1 diff)
-
tags/2.2.4/readme.txt (copied) (copied from box-tracker/trunk/readme.txt) (1 diff)
-
tags/2.2.4/templates/front-house-step-one-template.php (copied) (copied from box-tracker/trunk/templates/front-house-step-one-template.php)
-
tags/2.2.4/templates/front-house-step-three-template.php (copied) (copied from box-tracker/trunk/templates/front-house-step-three-template.php)
-
tags/2.2.4/uninstall.php (copied) (copied from box-tracker/trunk/uninstall.php)
-
trunk/box-tracker-online.php (modified) (1 diff)
-
trunk/images/Google_logo.png (added)
-
trunk/includes/base/enqueue.php (modified) (2 diffs)
-
trunk/javascript/address-validation-script.js (modified) (6 diffs)
-
trunk/javascript/front-house-script.js (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
box-tracker/tags/2.2.4/box-tracker-online.php
r3316514 r3318891 8 8 Plugin URI: https://www.dumpster.software/api/word-press-plugin.html 9 9 Description: The Box Tracker plugin facilitates online ordering for waste haulers. Depending on configuration, orders will result either in service requests on the customer screen or fully booked work orders on dispatch. Using the Web API tab on Box Tracker's Preferences app, you can prevent over booking, control which days of the week online orders will be accepted, and prevent same day ordering. For more information about Box Tracker or this plugin please contact support at 603 546 6751 option 2 or support@cairnapps.com 10 Version: 2.2. 310 Version: 2.2.4 11 11 Author: Cairn Applications Inc 12 12 Author URI: https://www.cloud-computing.rocks/ -
box-tracker/tags/2.2.4/includes/base/enqueue.php
r3310668 r3318891 31 31 wp_enqueue_style('b0xT-front-house-style', $this->b0xT_plugin_url.'styles/front-house-styles.css', '', '', 'all'); 32 32 wp_enqueue_style('b0xT-jquery-ui-style', "https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/themes/base/jquery-ui.css", '', '', 'all'); 33 wp_enqueue_style('b0xT-google-maps-icon-style', "https://fonts.googleapis.com/icon?family=Material+Icons", '', '', 'all'); 33 34 34 35 $b0xT_google_api_key = esc_attr(get_option('b0xT_google_api_key')); … … 54 55 $b0xT_config = array( 55 56 'ajax_url' => $this->b0xT_admin_url."admin-ajax.php", 57 'image_url' => $this->b0xT_plugin_url.'images/', 56 58 'ajax_nonce' => wp_create_nonce('_check__ajax_100')); 57 59 -
box-tracker/tags/2.2.4/javascript/address-validation-script.js
r3316514 r3318891 2 2 var b0xT_address_data = this; 3 3 b0xT_address_data.config = b0xT_arg_config; 4 b0xT_address_data.random_number = Math.floor(Math.random() * 1000000); 4 5 5 6 this._b0xT_init = async function() { … … 38 39 39 40 let b0xT_address_suggestion_wrap = document.createElement("div"); 40 b0xT_address_suggestion_wrap.style.maxHeight = "300px";41 b0xT_address_suggestion_wrap.style.overflowY = "auto";42 41 b0xT_address_suggestion_wrap.style.position = "absolute"; 43 42 b0xT_address_suggestion_wrap.style.marginTop = "1px"; … … 45 44 b0xT_address_suggestion_wrap.style.backgroundColor = "#ffffff"; 46 45 b0xT_address_suggestion_wrap.style.zIndex = 1; 47 b0xT_address_suggestion_wrap.style.width = b0xT_address_data.config.searchCtrl.offsetWidth+"px";48 46 b0xT_address_data.address_suggestion_wrap = b0xT_address_suggestion_wrap; 49 47 b0xT_address_data.config.searchCtrl.after(b0xT_address_suggestion_wrap); 50 48 51 //lets add an observer to the actual input, we are going52 //to make sure that the dropdown wrapper follows it in width53 let b0xT_resize_observer = new ResizeObserver(function(b0xT_elements) {54 clearTimeout(b0xT_address_data.resizeTimeout);55 b0xT_address_data.resizeTimeout = setTimeout(function(){56 b0xT_address_suggestion_wrap.style.width = b0xT_address_data.config.searchCtrl.offsetWidth+"px";57 }, 500);58 });59 60 b0xT_resize_observer.observe(b0xT_address_data.config.searchCtrl);61 49 62 50 //setup event listensers on fields … … 145 133 const b0xT_suggestions_array = b0xT_suggestions.suggestions; 146 134 147 b0xT_address_data.address_suggestion_wrap.innerHTML = ""; 148 let b0xT_address_suggestion_wrap = document.createElement("div"); 149 b0xT_address_suggestion_wrap.style.border = "1px solid #d1cfcf"; 150 151 b0xT_suggestions_array.forEach(function(b0xT_suggestion, b0xT_index) { 152 const b0xT_place_prediction = b0xT_suggestion.placePrediction; 153 let b0xT_input_wrap = document.createElement("div"); 154 let b0xT_input = document.createElement("input"); 155 b0xT_input.setAttribute("type", "text"); 156 b0xT_input.style.width = "100%"; 157 b0xT_input.style.border = "0px"; 158 b0xT_input.style.padding = "10px"; 159 b0xT_input.style.cursor = "pointer"; 160 161 if(b0xT_index < b0xT_suggestions_array.length - 1) { 162 b0xT_input.style.borderBottom = "1px solid #d1cfcf"; 163 } 164 165 b0xT_input.readOnly = true; 166 b0xT_input.value = b0xT_place_prediction.text.toString(); 167 168 b0xT_input.onmouseover = function() { 169 this.style.color = "#0174ab"; 170 this.style.backgroundColor = "#dddddd"; 171 }; 172 b0xT_input.onmouseout = function() { 173 this.style.removeProperty("color"); 174 this.style.removeProperty("background-color"); 175 } 176 b0xT_input.onclick = function() { 177 clearTimeout(b0xT_address_data.blurTimeOut); 178 clearTimeout(b0xT_address_data.searchTimeOut); 179 b0xT_address_data._b0xT_fill_in_address(b0xT_place_prediction); 180 b0xT_address_data.address_suggestion_wrap.innerHTML = ""; 181 b0xT_address_data.address_suggestion_wrap.style.boxShadow = "none"; 182 } 183 184 b0xT_input_wrap.appendChild(b0xT_input); 185 b0xT_address_suggestion_wrap.appendChild(b0xT_input_wrap); 186 }); 187 188 let b0xT_powered_by_wrap = document.createElement("div"); 189 let b0xT_powered_by = document.createElement("input"); 190 b0xT_powered_by.setAttribute("type", "text"); 191 b0xT_powered_by.style.border = "0px"; 192 b0xT_powered_by.style.padding = "5px"; 193 b0xT_powered_by.style.width = "100%"; 194 b0xT_powered_by.style.textAlign = "right"; 195 b0xT_powered_by.style.fontWeight = "bold"; 196 b0xT_powered_by.style.color = "#000000"; 197 b0xT_powered_by.style.pointerEvents = "none"; 198 b0xT_powered_by.value = "powered by Google"; 199 200 b0xT_powered_by_wrap.appendChild(b0xT_powered_by); 201 b0xT_address_suggestion_wrap.appendChild(b0xT_powered_by_wrap); 202 b0xT_address_data.address_suggestion_wrap.appendChild(b0xT_address_suggestion_wrap); 135 let b0xT_fill_structure = function(b0xT_address_suggestions_wrap) { 136 b0xT_address_suggestions_wrap.innerHTML = ""; 137 b0xT_suggestions_array.forEach(function(b0xT_suggestion, b0xT_index) { 138 const b0xT_place_prediction = b0xT_suggestion.placePrediction; 139 let b0xT_input_wrap = document.createElement("div"); 140 let b0xT_input = document.createElement("div"); 141 b0xT_input.style.whiteSpace = "nowrap"; 142 b0xT_input.style.borderRadius = "0px"; 143 b0xT_input.style.width = "100%"; 144 b0xT_input.style.border = "0px"; 145 b0xT_input.style.padding = "10px"; 146 b0xT_input.style.cursor = "pointer"; 147 148 let b0xT_icon = document.createElement("i"); 149 b0xT_icon.style.verticalAlign = "middle"; 150 b0xT_icon.style.fontSize = "14pt"; 151 b0xT_icon.style.marginRight = "5px"; 152 b0xT_icon.style.color = "#808080"; 153 154 b0xT_icon.setAttribute("class", "material-icons"); 155 b0xT_icon.innerHTML = "place"; 156 157 b0xT_input.appendChild(b0xT_icon); 158 b0xT_input.innerHTML += b0xT_place_prediction.text.toString(); 159 160 if(b0xT_index < b0xT_suggestions_array.length - 1) { 161 b0xT_input_wrap.style.borderBottom = "1px solid #d1cfcf"; 162 } 163 164 b0xT_input.onmouseover = function() { 165 this.style.color = "#0174ab"; 166 this.style.backgroundColor = "#dddddd"; 167 }; 168 b0xT_input.onmouseout = function() { 169 this.style.removeProperty("color"); 170 this.style.removeProperty("background-color"); 171 } 172 b0xT_input.onclick = function() { 173 clearTimeout(b0xT_address_data.blurTimeOut); 174 clearTimeout(b0xT_address_data.searchTimeOut); 175 b0xT_address_data._b0xT_fill_in_address(b0xT_place_prediction); 176 b0xT_address_data.address_suggestion_wrap.innerHTML = ""; 177 b0xT_address_data.address_suggestion_wrap.style.boxShadow = "none"; 178 } 179 180 b0xT_input_wrap.appendChild(b0xT_input); 181 b0xT_address_suggestions_wrap.appendChild(b0xT_input_wrap); 182 }); 183 }; 184 185 let b0xT_build_structure = function() { 186 let b0xT_flex_master_div = document.createElement("div"); 187 b0xT_flex_master_div.style.flexDirection = "column"; 188 b0xT_flex_master_div.style.display = "flex"; 189 190 //content 191 let b0xT_address_suggestions_wrap = document.createElement("div"); 192 b0xT_address_suggestions_wrap.setAttribute("id", "b0xT_"+b0xT_address_data.random_number+"_AddrVldtrSuggestionsContent"); 193 b0xT_address_suggestions_wrap.style.border = "1px solid #d1cfcf"; 194 b0xT_address_suggestions_wrap.style.borderBottom = "0px"; 195 b0xT_address_suggestions_wrap.style.overflowY = "auto"; 196 b0xT_address_suggestions_wrap.style.maxHeight = "300px"; 197 198 b0xT_fill_structure(b0xT_address_suggestions_wrap); 199 200 b0xT_flex_master_div.appendChild(b0xT_address_suggestions_wrap); 201 202 //logo 203 let b0xT_powered_by_wrap = document.createElement("div"); 204 b0xT_powered_by_wrap.style.border = "1px solid #d1cfcf"; 205 b0xT_powered_by_wrap.style.borderTop = "0px"; 206 207 let b0xT_powered_by = document.createElement("div"); 208 b0xT_powered_by.style.borderRadius = "0px"; 209 b0xT_powered_by.style.width = "100%"; 210 b0xT_powered_by.style.border = "0px"; 211 b0xT_powered_by.style.padding = "10px"; 212 213 b0xT_powered_by.style.color = "#808080"; 214 b0xT_powered_by.style.textAlign = "right"; 215 b0xT_powered_by.style.fontWeight = "bold"; 216 b0xT_powered_by.style.pointerEvents = "none"; 217 b0xT_powered_by.innerHTML = "powered by"; 218 219 let b0xT_icon = document.createElement("img"); 220 b0xT_icon.setAttribute("src", b0xT_address_data.config.imageUrl+"/Google_logo.png"); 221 222 b0xT_icon.style.height = "18px"; 223 b0xT_icon.style.verticalAlign = "middle"; 224 b0xT_icon.style.marginLeft = "5px"; 225 226 b0xT_powered_by.appendChild(b0xT_icon); 227 b0xT_powered_by_wrap.appendChild(b0xT_powered_by); 228 229 b0xT_flex_master_div.appendChild(b0xT_powered_by_wrap); 230 231 //put it together 232 b0xT_address_data.address_suggestion_wrap.appendChild(b0xT_flex_master_div); 233 }; 234 235 let b0xT_address_suggestions_wrap = document.getElementById("b0xT_"+b0xT_address_data.random_number+"_AddrVldtrSuggestionsContent"); 236 237 if(!b0xT_address_suggestions_wrap) { 238 b0xT_build_structure(); 239 } else { 240 b0xT_fill_structure(b0xT_address_suggestions_wrap); 241 } 203 242 }; 204 243 … … 265 304 //check if the address is rooftop 266 305 let b0xT_verified = 0; 267 if(b0xT_place.types.includes('premise') || b0xT_place.location _type == 'ROOFTOP' || b0xT_postal_suffix.shortText.length) {306 if(b0xT_place.types.includes('premise') || b0xT_place.location.location_type == 'ROOFTOP' || b0xT_postal_suffix.shortText.length) { 268 307 //TODO:: 269 308 b0xT_verified = 1; … … 273 312 let b0xT_pattern = new RegExp("^-?[1-9]\\d{1,2}($|\.\\d+$)"); 274 313 275 if(!b0xT_place.location) { return 0; }276 314 if(!b0xT_place.location) { return 0; } 277 315 -
box-tracker/tags/2.2.4/javascript/front-house-script.js
r3245851 r3318891 459 459 "validateCtrl" : $('span[name=b0xT_google_status]')[0], 460 460 "errorShield" : $('#b0xT_google_search_error_shield')[0], 461 "errorDialog" : $('#b0xT_google_search_error_dialog')[0] 461 "errorDialog" : $('#b0xT_google_search_error_dialog')[0], 462 "imageUrl": b0xT_config.image_url 462 463 }); 463 464 } -
box-tracker/tags/2.2.4/readme.txt
r3316514 r3318891 4 4 Requires PHP: 5.6.4 5 5 Tested up to: 6.8 6 Stable tag: 2.2. 36 Stable tag: 2.2.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
box-tracker/trunk/box-tracker-online.php
r3316514 r3318891 8 8 Plugin URI: https://www.dumpster.software/api/word-press-plugin.html 9 9 Description: The Box Tracker plugin facilitates online ordering for waste haulers. Depending on configuration, orders will result either in service requests on the customer screen or fully booked work orders on dispatch. Using the Web API tab on Box Tracker's Preferences app, you can prevent over booking, control which days of the week online orders will be accepted, and prevent same day ordering. For more information about Box Tracker or this plugin please contact support at 603 546 6751 option 2 or support@cairnapps.com 10 Version: 2.2. 310 Version: 2.2.4 11 11 Author: Cairn Applications Inc 12 12 Author URI: https://www.cloud-computing.rocks/ -
box-tracker/trunk/includes/base/enqueue.php
r3310668 r3318891 31 31 wp_enqueue_style('b0xT-front-house-style', $this->b0xT_plugin_url.'styles/front-house-styles.css', '', '', 'all'); 32 32 wp_enqueue_style('b0xT-jquery-ui-style', "https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/themes/base/jquery-ui.css", '', '', 'all'); 33 wp_enqueue_style('b0xT-google-maps-icon-style', "https://fonts.googleapis.com/icon?family=Material+Icons", '', '', 'all'); 33 34 34 35 $b0xT_google_api_key = esc_attr(get_option('b0xT_google_api_key')); … … 54 55 $b0xT_config = array( 55 56 'ajax_url' => $this->b0xT_admin_url."admin-ajax.php", 57 'image_url' => $this->b0xT_plugin_url.'images/', 56 58 'ajax_nonce' => wp_create_nonce('_check__ajax_100')); 57 59 -
box-tracker/trunk/javascript/address-validation-script.js
r3316514 r3318891 2 2 var b0xT_address_data = this; 3 3 b0xT_address_data.config = b0xT_arg_config; 4 b0xT_address_data.random_number = Math.floor(Math.random() * 1000000); 4 5 5 6 this._b0xT_init = async function() { … … 38 39 39 40 let b0xT_address_suggestion_wrap = document.createElement("div"); 40 b0xT_address_suggestion_wrap.style.maxHeight = "300px";41 b0xT_address_suggestion_wrap.style.overflowY = "auto";42 41 b0xT_address_suggestion_wrap.style.position = "absolute"; 43 42 b0xT_address_suggestion_wrap.style.marginTop = "1px"; … … 45 44 b0xT_address_suggestion_wrap.style.backgroundColor = "#ffffff"; 46 45 b0xT_address_suggestion_wrap.style.zIndex = 1; 47 b0xT_address_suggestion_wrap.style.width = b0xT_address_data.config.searchCtrl.offsetWidth+"px";48 46 b0xT_address_data.address_suggestion_wrap = b0xT_address_suggestion_wrap; 49 47 b0xT_address_data.config.searchCtrl.after(b0xT_address_suggestion_wrap); 50 48 51 //lets add an observer to the actual input, we are going52 //to make sure that the dropdown wrapper follows it in width53 let b0xT_resize_observer = new ResizeObserver(function(b0xT_elements) {54 clearTimeout(b0xT_address_data.resizeTimeout);55 b0xT_address_data.resizeTimeout = setTimeout(function(){56 b0xT_address_suggestion_wrap.style.width = b0xT_address_data.config.searchCtrl.offsetWidth+"px";57 }, 500);58 });59 60 b0xT_resize_observer.observe(b0xT_address_data.config.searchCtrl);61 49 62 50 //setup event listensers on fields … … 145 133 const b0xT_suggestions_array = b0xT_suggestions.suggestions; 146 134 147 b0xT_address_data.address_suggestion_wrap.innerHTML = ""; 148 let b0xT_address_suggestion_wrap = document.createElement("div"); 149 b0xT_address_suggestion_wrap.style.border = "1px solid #d1cfcf"; 150 151 b0xT_suggestions_array.forEach(function(b0xT_suggestion, b0xT_index) { 152 const b0xT_place_prediction = b0xT_suggestion.placePrediction; 153 let b0xT_input_wrap = document.createElement("div"); 154 let b0xT_input = document.createElement("input"); 155 b0xT_input.setAttribute("type", "text"); 156 b0xT_input.style.width = "100%"; 157 b0xT_input.style.border = "0px"; 158 b0xT_input.style.padding = "10px"; 159 b0xT_input.style.cursor = "pointer"; 160 161 if(b0xT_index < b0xT_suggestions_array.length - 1) { 162 b0xT_input.style.borderBottom = "1px solid #d1cfcf"; 163 } 164 165 b0xT_input.readOnly = true; 166 b0xT_input.value = b0xT_place_prediction.text.toString(); 167 168 b0xT_input.onmouseover = function() { 169 this.style.color = "#0174ab"; 170 this.style.backgroundColor = "#dddddd"; 171 }; 172 b0xT_input.onmouseout = function() { 173 this.style.removeProperty("color"); 174 this.style.removeProperty("background-color"); 175 } 176 b0xT_input.onclick = function() { 177 clearTimeout(b0xT_address_data.blurTimeOut); 178 clearTimeout(b0xT_address_data.searchTimeOut); 179 b0xT_address_data._b0xT_fill_in_address(b0xT_place_prediction); 180 b0xT_address_data.address_suggestion_wrap.innerHTML = ""; 181 b0xT_address_data.address_suggestion_wrap.style.boxShadow = "none"; 182 } 183 184 b0xT_input_wrap.appendChild(b0xT_input); 185 b0xT_address_suggestion_wrap.appendChild(b0xT_input_wrap); 186 }); 187 188 let b0xT_powered_by_wrap = document.createElement("div"); 189 let b0xT_powered_by = document.createElement("input"); 190 b0xT_powered_by.setAttribute("type", "text"); 191 b0xT_powered_by.style.border = "0px"; 192 b0xT_powered_by.style.padding = "5px"; 193 b0xT_powered_by.style.width = "100%"; 194 b0xT_powered_by.style.textAlign = "right"; 195 b0xT_powered_by.style.fontWeight = "bold"; 196 b0xT_powered_by.style.color = "#000000"; 197 b0xT_powered_by.style.pointerEvents = "none"; 198 b0xT_powered_by.value = "powered by Google"; 199 200 b0xT_powered_by_wrap.appendChild(b0xT_powered_by); 201 b0xT_address_suggestion_wrap.appendChild(b0xT_powered_by_wrap); 202 b0xT_address_data.address_suggestion_wrap.appendChild(b0xT_address_suggestion_wrap); 135 let b0xT_fill_structure = function(b0xT_address_suggestions_wrap) { 136 b0xT_address_suggestions_wrap.innerHTML = ""; 137 b0xT_suggestions_array.forEach(function(b0xT_suggestion, b0xT_index) { 138 const b0xT_place_prediction = b0xT_suggestion.placePrediction; 139 let b0xT_input_wrap = document.createElement("div"); 140 let b0xT_input = document.createElement("div"); 141 b0xT_input.style.whiteSpace = "nowrap"; 142 b0xT_input.style.borderRadius = "0px"; 143 b0xT_input.style.width = "100%"; 144 b0xT_input.style.border = "0px"; 145 b0xT_input.style.padding = "10px"; 146 b0xT_input.style.cursor = "pointer"; 147 148 let b0xT_icon = document.createElement("i"); 149 b0xT_icon.style.verticalAlign = "middle"; 150 b0xT_icon.style.fontSize = "14pt"; 151 b0xT_icon.style.marginRight = "5px"; 152 b0xT_icon.style.color = "#808080"; 153 154 b0xT_icon.setAttribute("class", "material-icons"); 155 b0xT_icon.innerHTML = "place"; 156 157 b0xT_input.appendChild(b0xT_icon); 158 b0xT_input.innerHTML += b0xT_place_prediction.text.toString(); 159 160 if(b0xT_index < b0xT_suggestions_array.length - 1) { 161 b0xT_input_wrap.style.borderBottom = "1px solid #d1cfcf"; 162 } 163 164 b0xT_input.onmouseover = function() { 165 this.style.color = "#0174ab"; 166 this.style.backgroundColor = "#dddddd"; 167 }; 168 b0xT_input.onmouseout = function() { 169 this.style.removeProperty("color"); 170 this.style.removeProperty("background-color"); 171 } 172 b0xT_input.onclick = function() { 173 clearTimeout(b0xT_address_data.blurTimeOut); 174 clearTimeout(b0xT_address_data.searchTimeOut); 175 b0xT_address_data._b0xT_fill_in_address(b0xT_place_prediction); 176 b0xT_address_data.address_suggestion_wrap.innerHTML = ""; 177 b0xT_address_data.address_suggestion_wrap.style.boxShadow = "none"; 178 } 179 180 b0xT_input_wrap.appendChild(b0xT_input); 181 b0xT_address_suggestions_wrap.appendChild(b0xT_input_wrap); 182 }); 183 }; 184 185 let b0xT_build_structure = function() { 186 let b0xT_flex_master_div = document.createElement("div"); 187 b0xT_flex_master_div.style.flexDirection = "column"; 188 b0xT_flex_master_div.style.display = "flex"; 189 190 //content 191 let b0xT_address_suggestions_wrap = document.createElement("div"); 192 b0xT_address_suggestions_wrap.setAttribute("id", "b0xT_"+b0xT_address_data.random_number+"_AddrVldtrSuggestionsContent"); 193 b0xT_address_suggestions_wrap.style.border = "1px solid #d1cfcf"; 194 b0xT_address_suggestions_wrap.style.borderBottom = "0px"; 195 b0xT_address_suggestions_wrap.style.overflowY = "auto"; 196 b0xT_address_suggestions_wrap.style.maxHeight = "300px"; 197 198 b0xT_fill_structure(b0xT_address_suggestions_wrap); 199 200 b0xT_flex_master_div.appendChild(b0xT_address_suggestions_wrap); 201 202 //logo 203 let b0xT_powered_by_wrap = document.createElement("div"); 204 b0xT_powered_by_wrap.style.border = "1px solid #d1cfcf"; 205 b0xT_powered_by_wrap.style.borderTop = "0px"; 206 207 let b0xT_powered_by = document.createElement("div"); 208 b0xT_powered_by.style.borderRadius = "0px"; 209 b0xT_powered_by.style.width = "100%"; 210 b0xT_powered_by.style.border = "0px"; 211 b0xT_powered_by.style.padding = "10px"; 212 213 b0xT_powered_by.style.color = "#808080"; 214 b0xT_powered_by.style.textAlign = "right"; 215 b0xT_powered_by.style.fontWeight = "bold"; 216 b0xT_powered_by.style.pointerEvents = "none"; 217 b0xT_powered_by.innerHTML = "powered by"; 218 219 let b0xT_icon = document.createElement("img"); 220 b0xT_icon.setAttribute("src", b0xT_address_data.config.imageUrl+"/Google_logo.png"); 221 222 b0xT_icon.style.height = "18px"; 223 b0xT_icon.style.verticalAlign = "middle"; 224 b0xT_icon.style.marginLeft = "5px"; 225 226 b0xT_powered_by.appendChild(b0xT_icon); 227 b0xT_powered_by_wrap.appendChild(b0xT_powered_by); 228 229 b0xT_flex_master_div.appendChild(b0xT_powered_by_wrap); 230 231 //put it together 232 b0xT_address_data.address_suggestion_wrap.appendChild(b0xT_flex_master_div); 233 }; 234 235 let b0xT_address_suggestions_wrap = document.getElementById("b0xT_"+b0xT_address_data.random_number+"_AddrVldtrSuggestionsContent"); 236 237 if(!b0xT_address_suggestions_wrap) { 238 b0xT_build_structure(); 239 } else { 240 b0xT_fill_structure(b0xT_address_suggestions_wrap); 241 } 203 242 }; 204 243 … … 265 304 //check if the address is rooftop 266 305 let b0xT_verified = 0; 267 if(b0xT_place.types.includes('premise') || b0xT_place.location _type == 'ROOFTOP' || b0xT_postal_suffix.shortText.length) {306 if(b0xT_place.types.includes('premise') || b0xT_place.location.location_type == 'ROOFTOP' || b0xT_postal_suffix.shortText.length) { 268 307 //TODO:: 269 308 b0xT_verified = 1; … … 273 312 let b0xT_pattern = new RegExp("^-?[1-9]\\d{1,2}($|\.\\d+$)"); 274 313 275 if(!b0xT_place.location) { return 0; }276 314 if(!b0xT_place.location) { return 0; } 277 315 -
box-tracker/trunk/javascript/front-house-script.js
r3245851 r3318891 459 459 "validateCtrl" : $('span[name=b0xT_google_status]')[0], 460 460 "errorShield" : $('#b0xT_google_search_error_shield')[0], 461 "errorDialog" : $('#b0xT_google_search_error_dialog')[0] 461 "errorDialog" : $('#b0xT_google_search_error_dialog')[0], 462 "imageUrl": b0xT_config.image_url 462 463 }); 463 464 } -
box-tracker/trunk/readme.txt
r3316514 r3318891 4 4 Requires PHP: 5.6.4 5 5 Tested up to: 6.8 6 Stable tag: 2.2. 36 Stable tag: 2.2.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.