PageSourceSearch

https://www.geftwap.org/login.js

js geftwap.org collected 2026-10-02 07:59:14 UTC 3,370 bytes, 87 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opens = _____WB$wombat$assign$function_____("opens");
10// Functions used by login pages
11
12function cookiesEnabled() {
13  // Test whether cookies are enabled by attempting to set a cookie and then change its value
14  // set test cookie
15  var c = "areYourCookiesEnabled=0";
16  document.cookie = c;
17  var dc = document.cookie;
18  // cookie not set?  fail
19  if (dc.indexOf(c) === -1) { return 0; }
20  // change test cookie
21  c = "areYourCookiesEnabled=1";
22  document.cookie = c;
23  dc = document.cookie;
24  // cookie not changed?  fail
25  if (dc.indexOf(c) === -1) { return 0; }
26  // delete cookie
27  document.cookie = "areYourCookiesEnabled=; expires=Thu, 01-Jan-70 00:00:01 GMT";
28  return 1;
29}
30
31function setLoginVars(user_name_id, alt_user_name_id, password_id, empty_password_id, js_enabled_
31id, cookies_enabled_id) {
32  // Indicate that javascript is enabled, set cookie status, copy username and password length info to 
33  // alternative variables since these vars are removed from the request by zope's authentication mechanism.
34  var el, user_name, alt_user_name, password, empty_password;
35  if (js_enabled_id) {
36    el = document.getElementById(js_enabled_id);
37    if (el) { el.value = 1; }
38  }
39  if (cookies_enabled_id) {
40    el = document.getElementById(cookies_enabled_id);
41    // Do a fresh cookies enabled test every time we press the login button
42    //   so that we are up to date in case the user enables cookies after seeing
43    //   the cookies message.
44    if (el) { el.value = cookiesEnabled(); } 
45  }
46  if (user_name_id && alt_user_name_id) {
47    user_name = document.getElementById(user_name_id);
48    alt_user_name = document.getElementById(alt_user_name_id);
49    if (user_name && alt_user_name) {
50       alt_user_name.value = user_name.value;
51    } 
52  }
53  if (password_id && empty_password_id) {
54    password = document.getElementById(password_id);
55    empty_password = document.getElementById(empty_password_id);
56    if (password && empty_password) {
57       if (password.value.length === 0) {
58          empty_password.value = '1';
59       } else {
60          empty_password.value = '0';
61       }
62    }
63  }
64  return 1;
65}
66
67function showCookieMessage(msg_id) {
68  // Show the element with the given id if cookies are not enabled
69  var msg = document.getElementById(msg_id);
70  if (msg) {
71     if (cookiesEnabled()) {
72        msg.style.display = 'none';
73     } else {
74        msg.style.display = 'block';
75     }
76  }
77}
78
79function showEnableCookiesMessage() {
80  // Show the element with the id 'enable_cookies_message' if cookies are not enabled
81  showCookieMessage('enable_cookies_message');
82}
83// Call showEnableCookiesMessage after the page loads
84window.registerPloneFunction(showEnableCookiesMessage);
85
86
87}

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.