Plugin Directory

Changeset 3318918


Ignore:
Timestamp:
06/27/2025 05:15:19 PM (9 months ago)
Author:
jrmoser
Message:

1.3.4

Location:
bin-tracker-online
Files:
2 added
5 edited
13 copied

Legend:

Unmodified
Added
Removed
  • bin-tracker-online/tags/1.3.4/bin-tracker-online.php

    r3316516 r3318918  
    88Plugin URI: https://www.bintracker.software/api/word-press-plugin.html
    99Description: 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.3
     10Version: 1.3.4
    1111Author: Cairn Applications Inc
    1212Author URI: https://www.cloud-computing.rocks/
  • bin-tracker-online/tags/1.3.4/includes/base/enqueue.php

    r3310697 r3318918  
    3030            wp_enqueue_style('b1nT-dialog-box-style',  $this->b1nT_plugin_url.'styles/dialog-box-styles.css', '', '', 'all');
    3131            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');
    3233
    3334            //inclided css locally; word press does not seem to load the jquery date picker supporting css
     
    5758            $b1nT_config = array(
    5859                 'ajax_url'   => $this->b1nT_admin_url."admin-ajax.php",
     60                 'image_url'  => $this->b1nT_plugin_url.'images/',
    5961                 'ajax_nonce' => wp_create_nonce('_check__ajax_100'));
    6062
  • bin-tracker-online/tags/1.3.4/javascript/address-validation-script.js

    r3316516 r3318918  
    22     var b1nT_address_data = this;
    33     b1nT_address_data.config = b1nT_arg_config;
     4     b1nT_address_data.random_number = Math.floor(Math.random() * 1000000);
    45
    56     this._b1nT_init = async function() {
     
    3839
    3940          let b1nT_address_suggestion_wrap                   = document.createElement("div");
    40           b1nT_address_suggestion_wrap.style.maxHeight       = "300px";
    41           b1nT_address_suggestion_wrap.style.overflowY       = "auto";
    4241          b1nT_address_suggestion_wrap.style.position        = "absolute";
    4342          b1nT_address_suggestion_wrap.style.marginTop       = "1px";
     
    4544          b1nT_address_suggestion_wrap.style.backgroundColor = "#ffffff";
    4645          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
    4849          b1nT_address_data.address_suggestion_wrap          = b1nT_address_suggestion_wrap;
    4950          b1nT_address_data.config.searchCtrl.after(b1nT_address_suggestion_wrap);
    5051
    51           //lets add an observer to the actual input, we are going
    52           //to make sure that the dropdown wrapper follows it in width
    53           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);
    6152     
    6253          //setup event listensers on fields
     
    145136          const b1nT_suggestions_array = b1nT_suggestions.suggestions;
    146137
    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          }
    203245     };
    204246
     
    265307          //check if the address is rooftop
    266308          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) {
    268310               //TODO::
    269311               b1nT_verified = 1;
     
    273315                    let b1nT_pattern = new RegExp("^-?[1-9]\\d{1,2}($|\.\\d+$)");
    274316
    275                     if(!b1nT_place.location) { return 0; }
    276317                    if(!b1nT_place.location) { return 0; }
    277318
  • bin-tracker-online/tags/1.3.4/javascript/front-house-script.js

    r3284223 r3318918  
    468468                "validateCtrl" : $('span[name=b1nT_google_status]')[0],
    469469                "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
    471472            });
    472473        }       
  • bin-tracker-online/tags/1.3.4/readme.txt

    r3316516 r3318918  
    44Requires PHP: 5.6.4
    55Tested up to: 6.8
    6 Stable tag: 1.3.3
     6Stable tag: 1.3.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • bin-tracker-online/trunk/bin-tracker-online.php

    r3316516 r3318918  
    88Plugin URI: https://www.bintracker.software/api/word-press-plugin.html
    99Description: 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.3
     10Version: 1.3.4
    1111Author: Cairn Applications Inc
    1212Author URI: https://www.cloud-computing.rocks/
  • bin-tracker-online/trunk/includes/base/enqueue.php

    r3310697 r3318918  
    3030            wp_enqueue_style('b1nT-dialog-box-style',  $this->b1nT_plugin_url.'styles/dialog-box-styles.css', '', '', 'all');
    3131            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');
    3233
    3334            //inclided css locally; word press does not seem to load the jquery date picker supporting css
     
    5758            $b1nT_config = array(
    5859                 'ajax_url'   => $this->b1nT_admin_url."admin-ajax.php",
     60                 'image_url'  => $this->b1nT_plugin_url.'images/',
    5961                 'ajax_nonce' => wp_create_nonce('_check__ajax_100'));
    6062
  • bin-tracker-online/trunk/javascript/address-validation-script.js

    r3316516 r3318918  
    22     var b1nT_address_data = this;
    33     b1nT_address_data.config = b1nT_arg_config;
     4     b1nT_address_data.random_number = Math.floor(Math.random() * 1000000);
    45
    56     this._b1nT_init = async function() {
     
    3839
    3940          let b1nT_address_suggestion_wrap                   = document.createElement("div");
    40           b1nT_address_suggestion_wrap.style.maxHeight       = "300px";
    41           b1nT_address_suggestion_wrap.style.overflowY       = "auto";
    4241          b1nT_address_suggestion_wrap.style.position        = "absolute";
    4342          b1nT_address_suggestion_wrap.style.marginTop       = "1px";
     
    4544          b1nT_address_suggestion_wrap.style.backgroundColor = "#ffffff";
    4645          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
    4849          b1nT_address_data.address_suggestion_wrap          = b1nT_address_suggestion_wrap;
    4950          b1nT_address_data.config.searchCtrl.after(b1nT_address_suggestion_wrap);
    5051
    51           //lets add an observer to the actual input, we are going
    52           //to make sure that the dropdown wrapper follows it in width
    53           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);
    6152     
    6253          //setup event listensers on fields
     
    145136          const b1nT_suggestions_array = b1nT_suggestions.suggestions;
    146137
    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          }
    203245     };
    204246
     
    265307          //check if the address is rooftop
    266308          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) {
    268310               //TODO::
    269311               b1nT_verified = 1;
     
    273315                    let b1nT_pattern = new RegExp("^-?[1-9]\\d{1,2}($|\.\\d+$)");
    274316
    275                     if(!b1nT_place.location) { return 0; }
    276317                    if(!b1nT_place.location) { return 0; }
    277318
  • bin-tracker-online/trunk/javascript/front-house-script.js

    r3284223 r3318918  
    468468                "validateCtrl" : $('span[name=b1nT_google_status]')[0],
    469469                "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
    471472            });
    472473        }       
  • bin-tracker-online/trunk/readme.txt

    r3316516 r3318918  
    44Requires PHP: 5.6.4
    55Tested up to: 6.8
    6 Stable tag: 1.3.3
     6Stable tag: 1.3.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.