PageSourceSearch

https://assets.suara.com/suara/desktop/js/onetap-new10.js

js suara.com collected 2026-10-02 02:22:14 UTC 1,190 bytes, 43 lines download raw bytes

1const handleOneTap = (oneTapClientID) => {
2  const URL_LOGIN_ARKADIA = 'https://www.arkadia.me/popup';
3
4  const showPopupLogin = (url) => {
5    //document.getElementById("myModal").style.display = "block";
6    document.getElementById('iframe_popup_login').src = url;
7    localStorage.removeItem("sso_refresh");
8  }
9
10  const getCookie = (cname) => {
11    let name = cname + "=";
12    let decodedCookie = decodeURIComponent(document.cookie);
13    let ca = decodedCookie.split(';');
14
15    for(let i = 0; i <ca.length; i++) {
16      let c = ca[i];
17
18      while (c.charAt(0) == ' ') {
19        c = c.substring(1);
20      }
21
22      if (c.indexOf(name) == 0) {
23        return c.substring(name.length, c.length);
24      }
25    }
26
27    return null;
28  }
29
30  if(getCookie('sso_data') == null){
31    google.accounts.id.initialize({
32      client_id: oneTapClientID,
33      callback: function(response){
34        console.log(URL_LOGIN_ARKADIA + '?credential=' + response.credential + '&ref=suara');
35        showPopupLogin(URL_LOGIN_ARKADIA + '?credential=' + response.credential + '&ref=suara');
36      }
37    });
38
39    google.accounts.id.prompt();
40  }
41
42  //NOTE : Kalau cari script autorefreshnya ada di file js/sso2.js
43}

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.