Changeset 3318918
- Timestamp:
- 06/27/2025 05:15:19 PM (9 months ago)
- Location:
- bin-tracker-online
- Files:
-
- 2 added
- 5 edited
- 13 copied
-
tags/1.3.4 (copied) (copied from bin-tracker-online/trunk)
-
tags/1.3.4/bin-tracker-online.php (copied) (copied from bin-tracker-online/trunk/bin-tracker-online.php) (1 diff)
-
tags/1.3.4/images/Google_logo.png (added)
-
tags/1.3.4/includes/base/activate.php (copied) (copied from bin-tracker-online/trunk/includes/base/activate.php)
-
tags/1.3.4/includes/base/ajax-control.php (copied) (copied from bin-tracker-online/trunk/includes/base/ajax-control.php)
-
tags/1.3.4/includes/base/enqueue.php (copied) (copied from bin-tracker-online/trunk/includes/base/enqueue.php) (2 diffs)
-
tags/1.3.4/includes/base/server-calls.php (copied) (copied from bin-tracker-online/trunk/includes/base/server-calls.php)
-
tags/1.3.4/javascript/address-validation-script.js (copied) (copied from bin-tracker-online/trunk/javascript/address-validation-script.js) (6 diffs)
-
tags/1.3.4/javascript/front-house-script.js (copied) (copied from bin-tracker-online/trunk/javascript/front-house-script.js) (1 diff)
-
tags/1.3.4/readme.txt (copied) (copied from bin-tracker-online/trunk/readme.txt) (1 diff)
-
tags/1.3.4/styles/front-house-styles.css (copied) (copied from bin-tracker-online/trunk/styles/front-house-styles.css)
-
tags/1.3.4/templates/front-house-step-one-template.php (copied) (copied from bin-tracker-online/trunk/templates/front-house-step-one-template.php)
-
tags/1.3.4/templates/front-house-step-three-template.php (copied) (copied from bin-tracker-online/trunk/templates/front-house-step-three-template.php)
-
tags/1.3.4/uninstall.php (copied) (copied from bin-tracker-online/trunk/uninstall.php)
-
trunk/bin-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
-
bin-tracker-online/tags/1.3.4/bin-tracker-online.php
r3316516 r3318918 8 8 Plugin URI: https://www.bintracker.software/api/word-press-plugin.html 9 9 Description: The plug in provides integration with a private web application for Bin their Dump That, a franchisor in the waste hauling industry 10 Version: 1.3. 310 Version: 1.3.4 11 11 Author: Cairn Applications Inc 12 12 Author URI: https://www.cloud-computing.rocks/ -
bin-tracker-online/tags/1.3.4/includes/base/enqueue.php
r3310697 r3318918 30 30 wp_enqueue_style('b1nT-dialog-box-style', $this->b1nT_plugin_url.'styles/dialog-box-styles.css', '', '', 'all'); 31 31 wp_enqueue_style('b1nT-front-house-style', $this->b1nT_plugin_url.'styles/front-house-styles.css', '', '', 'all'); 32 wp_enqueue_style('b1nT-google-maps-icon-style', "https://fonts.googleapis.com/icon?family=Material+Icons", '', '', 'all'); 32 33 33 34 //inclided css locally; word press does not seem to load the jquery date picker supporting css … … 57 58 $b1nT_config = array( 58 59 'ajax_url' => $this->b1nT_admin_url."admin-ajax.php", 60 'image_url' => $this->b1nT_plugin_url.'images/', 59 61 'ajax_nonce' => wp_create_nonce('_check__ajax_100')); 60 62 -
bin-tracker-online/tags/1.3.4/javascript/address-validation-script.js
r3316516 r3318918 2 2 var b1nT_address_data = this; 3 3 b1nT_address_data.config = b1nT_arg_config; 4 b1nT_address_data.random_number = Math.floor(Math.random() * 1000000); 4 5 5 6 this._b1nT_init = async function() { … … 38 39 39 40 let b1nT_address_suggestion_wrap = document.createElement("div"); 40 b1nT_address_suggestion_wrap.style.maxHeight = "300px";41 b1nT_address_suggestion_wrap.style.overflowY = "auto";42 41 b1nT_address_suggestion_wrap.style.position = "absolute"; 43 42 b1nT_address_suggestion_wrap.style.marginTop = "1px"; … … 45 44 b1nT_address_suggestion_wrap.style.backgroundColor = "#ffffff"; 46 45 b1nT_address_suggestion_wrap.style.zIndex = 1; 47 b1nT_address_suggestion_wrap.style.width = b1nT_address_data.config.searchCtrl.offsetWidth+"px"; 46 47 b1nT_address_suggestion_wrap.setAttribute("class", "b1nT_address_suggestion_wrap"); 48 48 49 b1nT_address_data.address_suggestion_wrap = b1nT_address_suggestion_wrap; 49 50 b1nT_address_data.config.searchCtrl.after(b1nT_address_suggestion_wrap); 50 51 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(b1nT_address_data.resizeTimeout);55 b1nT_address_data.resizeTimeout = setTimeout(function(){56 b1nT_address_suggestion_wrap.style.width = b1nT_address_data.config.searchCtrl.offsetWidth+"px";57 }, 500);58 });59 60 b0xT_resize_observer.observe(b1nT_address_data.config.searchCtrl);61 52 62 53 //setup event listensers on fields … … 145 136 const b1nT_suggestions_array = b1nT_suggestions.suggestions; 146 137 147 b1nT_address_data.address_suggestion_wrap.innerHTML = ""; 148 let b1nT_address_suggestion_wrap = document.createElement("div"); 149 b1nT_address_suggestion_wrap.style.border = "1px solid #d1cfcf"; 150 151 b1nT_suggestions_array.forEach(function(b1nT_suggestion, b1nT_index) { 152 const b1nT_place_prediction = b1nT_suggestion.placePrediction; 153 let b1nT_input_wrap = document.createElement("div"); 154 let b1nT_input = document.createElement("input"); 155 b1nT_input.setAttribute("type", "text"); 156 b1nT_input.style.width = "100%"; 157 b1nT_input.style.border = "0px"; 158 b1nT_input.style.padding = "10px"; 159 b1nT_input.style.cursor = "pointer"; 160 161 if(b1nT_index < b1nT_suggestions_array.length - 1) { 162 b1nT_input.style.borderBottom = "1px solid #d1cfcf"; 163 } 164 165 b1nT_input.readOnly = true; 166 b1nT_input.value = b1nT_place_prediction.text.toString(); 167 168 b1nT_input.onmouseover = function() { 169 this.style.color = "#0174ab"; 170 this.style.backgroundColor = "#dddddd"; 171 }; 172 b1nT_input.onmouseout = function() { 173 this.style.removeProperty("color"); 174 this.style.removeProperty("background-color"); 175 } 176 b1nT_input.onclick = function() { 177 clearTimeout(b1nT_address_data.blurTimeOut); 178 clearTimeout(b1nT_address_data.searchTimeOut); 179 b1nT_address_data._b1nT_fill_in_address(b1nT_place_prediction); 180 b1nT_address_data.address_suggestion_wrap.innerHTML = ""; 181 b1nT_address_data.address_suggestion_wrap.style.boxShadow = "none"; 182 } 183 184 b1nT_input_wrap.appendChild(b1nT_input); 185 b1nT_address_suggestion_wrap.appendChild(b1nT_input_wrap); 186 }); 187 188 let b1nT_powered_by_wrap = document.createElement("div"); 189 let b1nT_powered_by = document.createElement("input"); 190 b1nT_powered_by.setAttribute("type", "text"); 191 b1nT_powered_by.style.border = "0px"; 192 b1nT_powered_by.style.padding = "5px"; 193 b1nT_powered_by.style.width = "100%"; 194 b1nT_powered_by.style.textAlign = "right"; 195 b1nT_powered_by.style.fontWeight = "bold"; 196 b1nT_powered_by.style.color = "#000000"; 197 b1nT_powered_by.style.pointerEvents = "none"; 198 b1nT_powered_by.value = "powered by Google"; 199 200 b1nT_powered_by_wrap.appendChild(b1nT_powered_by); 201 b1nT_address_suggestion_wrap.appendChild(b1nT_powered_by_wrap); 202 b1nT_address_data.address_suggestion_wrap.appendChild(b1nT_address_suggestion_wrap); 138 let b1nT_fill_structure = function(b1nT_address_suggestions_wrap) { 139 b1nT_address_suggestions_wrap.innerHTML = ""; 140 b1nT_suggestions_array.forEach(function(b1nT_suggestion, b1nT_index) { 141 const b1nT_place_prediction = b1nT_suggestion.placePrediction; 142 let b1nT_input_wrap = document.createElement("div"); 143 let b1nT_input = document.createElement("div"); 144 b1nT_input.style.whiteSpace = "nowrap"; 145 b1nT_input.style.borderRadius = "0px"; 146 b1nT_input.style.width = "100%"; 147 b1nT_input.style.border = "0px"; 148 b1nT_input.style.padding = "10px"; 149 b1nT_input.style.cursor = "pointer"; 150 151 let b1nT_icon = document.createElement("i"); 152 b1nT_icon.style.verticalAlign = "middle"; 153 b1nT_icon.style.fontSize = "14pt"; 154 b1nT_icon.style.marginRight = "5px"; 155 b1nT_icon.style.color = "#808080"; 156 157 b1nT_icon.setAttribute("class", "material-icons"); 158 b1nT_icon.innerHTML = "place"; 159 160 b1nT_input.appendChild(b1nT_icon); 161 b1nT_input.innerHTML += b1nT_place_prediction.text.toString(); 162 163 if(b1nT_index < b1nT_suggestions_array.length - 1) { 164 b1nT_input_wrap.style.borderBottom = "1px solid #d1cfcf"; 165 } 166 167 b1nT_input.onmouseover = function() { 168 this.style.color = "#0174ab"; 169 this.style.backgroundColor = "#dddddd"; 170 }; 171 b1nT_input.onmouseout = function() { 172 this.style.removeProperty("color"); 173 this.style.removeProperty("background-color"); 174 } 175 b1nT_input.onclick = function() { 176 clearTimeout(b1nT_address_data.blurTimeOut); 177 clearTimeout(b1nT_address_data.searchTimeOut); 178 b1nT_address_data._b1nT_fill_in_address(b1nT_place_prediction); 179 b1nT_address_data.address_suggestion_wrap.innerHTML = ""; 180 b1nT_address_data.address_suggestion_wrap.style.boxShadow = "none"; 181 } 182 183 b1nT_input_wrap.appendChild(b1nT_input); 184 b1nT_address_suggestions_wrap.appendChild(b1nT_input_wrap); 185 }); 186 }; 187 188 let b1nT_build_structure = function() { 189 let b1nT_flex_master_div = document.createElement("div"); 190 b1nT_flex_master_div.style.flexDirection = "column"; 191 b1nT_flex_master_div.style.display = "flex"; 192 193 //content 194 let b1nT_address_suggestions_wrap = document.createElement("div"); 195 b1nT_address_suggestions_wrap.setAttribute("id", "b1nT_"+b1nT_address_data.random_number+"_AddrVldtrSuggestionsContent"); 196 b1nT_address_suggestions_wrap.style.border = "1px solid #d1cfcf"; 197 b1nT_address_suggestions_wrap.style.borderBottom = "0px"; 198 b1nT_address_suggestions_wrap.style.overflowY = "auto"; 199 b1nT_address_suggestions_wrap.style.maxHeight = "300px"; 200 201 b1nT_fill_structure(b1nT_address_suggestions_wrap); 202 203 b1nT_flex_master_div.appendChild(b1nT_address_suggestions_wrap); 204 205 //logo 206 let b1nT_powered_by_wrap = document.createElement("div"); 207 b1nT_powered_by_wrap.style.border = "1px solid #d1cfcf"; 208 b1nT_powered_by_wrap.style.borderTop = "0px"; 209 210 let b1nT_powered_by = document.createElement("div"); 211 b1nT_powered_by.style.borderRadius = "0px"; 212 b1nT_powered_by.style.width = "100%"; 213 b1nT_powered_by.style.border = "0px"; 214 b1nT_powered_by.style.padding = "10px"; 215 216 b1nT_powered_by.style.color = "#808080"; 217 b1nT_powered_by.style.textAlign = "right"; 218 b1nT_powered_by.style.fontWeight = "bold"; 219 b1nT_powered_by.style.pointerEvents = "none"; 220 b1nT_powered_by.innerHTML = "powered by"; 221 222 let b1nT_icon = document.createElement("img"); 223 b1nT_icon.setAttribute("src", b1nT_address_data.config.imageUrl+"/Google_logo.png"); 224 225 b1nT_icon.style.height = "18px"; 226 b1nT_icon.style.verticalAlign = "middle"; 227 b1nT_icon.style.marginLeft = "5px"; 228 229 b1nT_powered_by.appendChild(b1nT_icon); 230 b1nT_powered_by_wrap.appendChild(b1nT_powered_by); 231 232 b1nT_flex_master_div.appendChild(b1nT_powered_by_wrap); 233 234 //put it together 235 b1nT_address_data.address_suggestion_wrap.appendChild(b1nT_flex_master_div); 236 }; 237 238 let b1nT_address_suggestions_wrap = document.getElementById("b1nT_"+b1nT_address_data.random_number+"_AddrVldtrSuggestionsContent"); 239 240 if(!b1nT_address_suggestions_wrap) { 241 b1nT_build_structure(); 242 } else { 243 b1nT_fill_structure(b1nT_address_suggestions_wrap); 244 } 203 245 }; 204 246 … … 265 307 //check if the address is rooftop 266 308 let b1nT_verified = 0; 267 if(b1nT_place.types.includes('premise') || b1nT_place.location _type == 'ROOFTOP' || b1nT_postal_suffix.shortText.length) {309 if(b1nT_place.types.includes('premise') || b1nT_place.location.location_type == 'ROOFTOP' || b1nT_postal_suffix.shortText.length) { 268 310 //TODO:: 269 311 b1nT_verified = 1; … … 273 315 let b1nT_pattern = new RegExp("^-?[1-9]\\d{1,2}($|\.\\d+$)"); 274 316 275 if(!b1nT_place.location) { return 0; }276 317 if(!b1nT_place.location) { return 0; } 277 318 -
bin-tracker-online/tags/1.3.4/javascript/front-house-script.js
r3284223 r3318918 468 468 "validateCtrl" : $('span[name=b1nT_google_status]')[0], 469 469 "errorShield" : $('#b1nT_google_search_error_shield')[0], 470 "errorDialog" : $('#b1nT_google_search_error_dialog')[0] 470 "errorDialog" : $('#b1nT_google_search_error_dialog')[0], 471 "imageUrl": b1nT_config.image_url 471 472 }); 472 473 } -
bin-tracker-online/tags/1.3.4/readme.txt
r3316516 r3318918 4 4 Requires PHP: 5.6.4 5 5 Tested up to: 6.8 6 Stable tag: 1.3. 36 Stable tag: 1.3.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
bin-tracker-online/trunk/bin-tracker-online.php
r3316516 r3318918 8 8 Plugin URI: https://www.bintracker.software/api/word-press-plugin.html 9 9 Description: The plug in provides integration with a private web application for Bin their Dump That, a franchisor in the waste hauling industry 10 Version: 1.3. 310 Version: 1.3.4 11 11 Author: Cairn Applications Inc 12 12 Author URI: https://www.cloud-computing.rocks/ -
bin-tracker-online/trunk/includes/base/enqueue.php
r3310697 r3318918 30 30 wp_enqueue_style('b1nT-dialog-box-style', $this->b1nT_plugin_url.'styles/dialog-box-styles.css', '', '', 'all'); 31 31 wp_enqueue_style('b1nT-front-house-style', $this->b1nT_plugin_url.'styles/front-house-styles.css', '', '', 'all'); 32 wp_enqueue_style('b1nT-google-maps-icon-style', "https://fonts.googleapis.com/icon?family=Material+Icons", '', '', 'all'); 32 33 33 34 //inclided css locally; word press does not seem to load the jquery date picker supporting css … … 57 58 $b1nT_config = array( 58 59 'ajax_url' => $this->b1nT_admin_url."admin-ajax.php", 60 'image_url' => $this->b1nT_plugin_url.'images/', 59 61 'ajax_nonce' => wp_create_nonce('_check__ajax_100')); 60 62 -
bin-tracker-online/trunk/javascript/address-validation-script.js
r3316516 r3318918 2 2 var b1nT_address_data = this; 3 3 b1nT_address_data.config = b1nT_arg_config; 4 b1nT_address_data.random_number = Math.floor(Math.random() * 1000000); 4 5 5 6 this._b1nT_init = async function() { … … 38 39 39 40 let b1nT_address_suggestion_wrap = document.createElement("div"); 40 b1nT_address_suggestion_wrap.style.maxHeight = "300px";41 b1nT_address_suggestion_wrap.style.overflowY = "auto";42 41 b1nT_address_suggestion_wrap.style.position = "absolute"; 43 42 b1nT_address_suggestion_wrap.style.marginTop = "1px"; … … 45 44 b1nT_address_suggestion_wrap.style.backgroundColor = "#ffffff"; 46 45 b1nT_address_suggestion_wrap.style.zIndex = 1; 47 b1nT_address_suggestion_wrap.style.width = b1nT_address_data.config.searchCtrl.offsetWidth+"px"; 46 47 b1nT_address_suggestion_wrap.setAttribute("class", "b1nT_address_suggestion_wrap"); 48 48 49 b1nT_address_data.address_suggestion_wrap = b1nT_address_suggestion_wrap; 49 50 b1nT_address_data.config.searchCtrl.after(b1nT_address_suggestion_wrap); 50 51 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(b1nT_address_data.resizeTimeout);55 b1nT_address_data.resizeTimeout = setTimeout(function(){56 b1nT_address_suggestion_wrap.style.width = b1nT_address_data.config.searchCtrl.offsetWidth+"px";57 }, 500);58 });59 60 b0xT_resize_observer.observe(b1nT_address_data.config.searchCtrl);61 52 62 53 //setup event listensers on fields … … 145 136 const b1nT_suggestions_array = b1nT_suggestions.suggestions; 146 137 147 b1nT_address_data.address_suggestion_wrap.innerHTML = ""; 148 let b1nT_address_suggestion_wrap = document.createElement("div"); 149 b1nT_address_suggestion_wrap.style.border = "1px solid #d1cfcf"; 150 151 b1nT_suggestions_array.forEach(function(b1nT_suggestion, b1nT_index) { 152 const b1nT_place_prediction = b1nT_suggestion.placePrediction; 153 let b1nT_input_wrap = document.createElement("div"); 154 let b1nT_input = document.createElement("input"); 155 b1nT_input.setAttribute("type", "text"); 156 b1nT_input.style.width = "100%"; 157 b1nT_input.style.border = "0px"; 158 b1nT_input.style.padding = "10px"; 159 b1nT_input.style.cursor = "pointer"; 160 161 if(b1nT_index < b1nT_suggestions_array.length - 1) { 162 b1nT_input.style.borderBottom = "1px solid #d1cfcf"; 163 } 164 165 b1nT_input.readOnly = true; 166 b1nT_input.value = b1nT_place_prediction.text.toString(); 167 168 b1nT_input.onmouseover = function() { 169 this.style.color = "#0174ab"; 170 this.style.backgroundColor = "#dddddd"; 171 }; 172 b1nT_input.onmouseout = function() { 173 this.style.removeProperty("color"); 174 this.style.removeProperty("background-color"); 175 } 176 b1nT_input.onclick = function() { 177 clearTimeout(b1nT_address_data.blurTimeOut); 178 clearTimeout(b1nT_address_data.searchTimeOut); 179 b1nT_address_data._b1nT_fill_in_address(b1nT_place_prediction); 180 b1nT_address_data.address_suggestion_wrap.innerHTML = ""; 181 b1nT_address_data.address_suggestion_wrap.style.boxShadow = "none"; 182 } 183 184 b1nT_input_wrap.appendChild(b1nT_input); 185 b1nT_address_suggestion_wrap.appendChild(b1nT_input_wrap); 186 }); 187 188 let b1nT_powered_by_wrap = document.createElement("div"); 189 let b1nT_powered_by = document.createElement("input"); 190 b1nT_powered_by.setAttribute("type", "text"); 191 b1nT_powered_by.style.border = "0px"; 192 b1nT_powered_by.style.padding = "5px"; 193 b1nT_powered_by.style.width = "100%"; 194 b1nT_powered_by.style.textAlign = "right"; 195 b1nT_powered_by.style.fontWeight = "bold"; 196 b1nT_powered_by.style.color = "#000000"; 197 b1nT_powered_by.style.pointerEvents = "none"; 198 b1nT_powered_by.value = "powered by Google"; 199 200 b1nT_powered_by_wrap.appendChild(b1nT_powered_by); 201 b1nT_address_suggestion_wrap.appendChild(b1nT_powered_by_wrap); 202 b1nT_address_data.address_suggestion_wrap.appendChild(b1nT_address_suggestion_wrap); 138 let b1nT_fill_structure = function(b1nT_address_suggestions_wrap) { 139 b1nT_address_suggestions_wrap.innerHTML = ""; 140 b1nT_suggestions_array.forEach(function(b1nT_suggestion, b1nT_index) { 141 const b1nT_place_prediction = b1nT_suggestion.placePrediction; 142 let b1nT_input_wrap = document.createElement("div"); 143 let b1nT_input = document.createElement("div"); 144 b1nT_input.style.whiteSpace = "nowrap"; 145 b1nT_input.style.borderRadius = "0px"; 146 b1nT_input.style.width = "100%"; 147 b1nT_input.style.border = "0px"; 148 b1nT_input.style.padding = "10px"; 149 b1nT_input.style.cursor = "pointer"; 150 151 let b1nT_icon = document.createElement("i"); 152 b1nT_icon.style.verticalAlign = "middle"; 153 b1nT_icon.style.fontSize = "14pt"; 154 b1nT_icon.style.marginRight = "5px"; 155 b1nT_icon.style.color = "#808080"; 156 157 b1nT_icon.setAttribute("class", "material-icons"); 158 b1nT_icon.innerHTML = "place"; 159 160 b1nT_input.appendChild(b1nT_icon); 161 b1nT_input.innerHTML += b1nT_place_prediction.text.toString(); 162 163 if(b1nT_index < b1nT_suggestions_array.length - 1) { 164 b1nT_input_wrap.style.borderBottom = "1px solid #d1cfcf"; 165 } 166 167 b1nT_input.onmouseover = function() { 168 this.style.color = "#0174ab"; 169 this.style.backgroundColor = "#dddddd"; 170 }; 171 b1nT_input.onmouseout = function() { 172 this.style.removeProperty("color"); 173 this.style.removeProperty("background-color"); 174 } 175 b1nT_input.onclick = function() { 176 clearTimeout(b1nT_address_data.blurTimeOut); 177 clearTimeout(b1nT_address_data.searchTimeOut); 178 b1nT_address_data._b1nT_fill_in_address(b1nT_place_prediction); 179 b1nT_address_data.address_suggestion_wrap.innerHTML = ""; 180 b1nT_address_data.address_suggestion_wrap.style.boxShadow = "none"; 181 } 182 183 b1nT_input_wrap.appendChild(b1nT_input); 184 b1nT_address_suggestions_wrap.appendChild(b1nT_input_wrap); 185 }); 186 }; 187 188 let b1nT_build_structure = function() { 189 let b1nT_flex_master_div = document.createElement("div"); 190 b1nT_flex_master_div.style.flexDirection = "column"; 191 b1nT_flex_master_div.style.display = "flex"; 192 193 //content 194 let b1nT_address_suggestions_wrap = document.createElement("div"); 195 b1nT_address_suggestions_wrap.setAttribute("id", "b1nT_"+b1nT_address_data.random_number+"_AddrVldtrSuggestionsContent"); 196 b1nT_address_suggestions_wrap.style.border = "1px solid #d1cfcf"; 197 b1nT_address_suggestions_wrap.style.borderBottom = "0px"; 198 b1nT_address_suggestions_wrap.style.overflowY = "auto"; 199 b1nT_address_suggestions_wrap.style.maxHeight = "300px"; 200 201 b1nT_fill_structure(b1nT_address_suggestions_wrap); 202 203 b1nT_flex_master_div.appendChild(b1nT_address_suggestions_wrap); 204 205 //logo 206 let b1nT_powered_by_wrap = document.createElement("div"); 207 b1nT_powered_by_wrap.style.border = "1px solid #d1cfcf"; 208 b1nT_powered_by_wrap.style.borderTop = "0px"; 209 210 let b1nT_powered_by = document.createElement("div"); 211 b1nT_powered_by.style.borderRadius = "0px"; 212 b1nT_powered_by.style.width = "100%"; 213 b1nT_powered_by.style.border = "0px"; 214 b1nT_powered_by.style.padding = "10px"; 215 216 b1nT_powered_by.style.color = "#808080"; 217 b1nT_powered_by.style.textAlign = "right"; 218 b1nT_powered_by.style.fontWeight = "bold"; 219 b1nT_powered_by.style.pointerEvents = "none"; 220 b1nT_powered_by.innerHTML = "powered by"; 221 222 let b1nT_icon = document.createElement("img"); 223 b1nT_icon.setAttribute("src", b1nT_address_data.config.imageUrl+"/Google_logo.png"); 224 225 b1nT_icon.style.height = "18px"; 226 b1nT_icon.style.verticalAlign = "middle"; 227 b1nT_icon.style.marginLeft = "5px"; 228 229 b1nT_powered_by.appendChild(b1nT_icon); 230 b1nT_powered_by_wrap.appendChild(b1nT_powered_by); 231 232 b1nT_flex_master_div.appendChild(b1nT_powered_by_wrap); 233 234 //put it together 235 b1nT_address_data.address_suggestion_wrap.appendChild(b1nT_flex_master_div); 236 }; 237 238 let b1nT_address_suggestions_wrap = document.getElementById("b1nT_"+b1nT_address_data.random_number+"_AddrVldtrSuggestionsContent"); 239 240 if(!b1nT_address_suggestions_wrap) { 241 b1nT_build_structure(); 242 } else { 243 b1nT_fill_structure(b1nT_address_suggestions_wrap); 244 } 203 245 }; 204 246 … … 265 307 //check if the address is rooftop 266 308 let b1nT_verified = 0; 267 if(b1nT_place.types.includes('premise') || b1nT_place.location _type == 'ROOFTOP' || b1nT_postal_suffix.shortText.length) {309 if(b1nT_place.types.includes('premise') || b1nT_place.location.location_type == 'ROOFTOP' || b1nT_postal_suffix.shortText.length) { 268 310 //TODO:: 269 311 b1nT_verified = 1; … … 273 315 let b1nT_pattern = new RegExp("^-?[1-9]\\d{1,2}($|\.\\d+$)"); 274 316 275 if(!b1nT_place.location) { return 0; }276 317 if(!b1nT_place.location) { return 0; } 277 318 -
bin-tracker-online/trunk/javascript/front-house-script.js
r3284223 r3318918 468 468 "validateCtrl" : $('span[name=b1nT_google_status]')[0], 469 469 "errorShield" : $('#b1nT_google_search_error_shield')[0], 470 "errorDialog" : $('#b1nT_google_search_error_dialog')[0] 470 "errorDialog" : $('#b1nT_google_search_error_dialog')[0], 471 "imageUrl": b1nT_config.image_url 471 472 }); 472 473 } -
bin-tracker-online/trunk/readme.txt
r3316516 r3318918 4 4 Requires PHP: 5.6.4 5 5 Tested up to: 6.8 6 Stable tag: 1.3. 36 Stable tag: 1.3.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.