PageSourceSearch

https://www.polycor.com/wp-content/plugins/if-blocks-styles-pol/in…/store-locator-maps-init.js?ver=1686863953

js polycor.com collected 2026-10-02 08:11:25 UTC 1,106 bytes, 39 lines download raw bytes

1(function(){
2  function initButtonLinks() {
3    if (document.readyState !== 'complete') {
4      setTimeout(initButtonLinks, 100)
5      return
6    }
7    addLinkButtonClass()
8
9  }
10  initButtonLinks()
11})()
12function addLinkButtonClass() {
13  let directions_links = document.querySelectorAll('.wpsl-direction-wrap')
14  // console.log('in addLinkButtonClass direction links = ')
15  // console.log(directions_links)
16  if(!directions_links.length >= 1 ) {
17    // console.log('running setTimeout')
18    setTimeout(addLinkButtonClass, 100)
19    return
20  }
21
22  let langCookie = document.cookie.split('; ').find((row) => row.startsWith('wp-wpml_current_language='))?.split('=')[1]
23  console.log('langCookie = ', langCookie)
24  let buttonText = 'Visit Here'
25  if(langCookie === 'fr-ca' || langCookie === 'fr') {
26    buttonText = 'Visite ici'
27  }
28  directions_links.forEach(function(elem) {
29    elem.childNodes[0].textContent = ''
30    elem.children[0].classList.add('wp-block-button__link')
31    elem.children[0].innerText = buttonText
32  })
33}
34
35function initGoogleMaps() {
36  // console.log('running function initGoogleMaps')
37}
38
39

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.