PageSourceSearch

https://ehawaiistatic.ehawaii.gov/cs/hiChat.js

js ehawaii.gov collected 2026-09-24 08:25:36 UTC 1,270 bytes, 67 lines download raw bytes

1/**
2 * ZENDESK
3 */
4 
5hiChat = {
6  initialize: function(props) {
7    if(!props) {
8      props = {};
9    }
10    
11    const script = document.createElement('script');
12    script.id = 'ze-snippet';
13    script.src = 'https://static.zdassets.com/ekr/snippet.js?key=0355fac8-9c8c-4034-a38d-6eacf83f235a';
14    script.onload = function() {
15      buttonControl();
16    }
17    document.head.appendChild(script);
18    
19    function buttonControl() {
20      let showButton = true;
21      
22      if(props.config?.headerProperty?.hideChatButton) {
23        showButton = false;
24      }
25      
26      if(props.hideChatButton) {
27        showButton = false;
28      }
29      
30      if(!showButton) {
31        zE('messenger', 'open');
32        
33        zE('messenger', 'hide');
34        
35        zE("messenger:on", "close", function () {
36          zE('messenger', 'hide');
37        })
38      }
39      
40      zE('messenger', 'close');
41    }
42  },
43  open: function() {
44    zE('messenger', 'open');
45    
46    zE('messenger', 'show');
47    
48    event.preventDefault();
49  },
50  close: function() {
51    zE('messenger', 'close');
52    
53    event.preventDefault();
54  },
55  setUser: function() {
56    
57  },
58  getUser: function() {
59    
60  },
61  clearUser: function() {
62    
63  },
64  isOpen: function() {
65    return false;
66  }
67}

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.