PageSourceSearch

https://www.e29-matsumura.com/cmn/js/mt.js

js e29-matsumura.com collected 2026-10-05 03:40:48 UTC 3,710 bytes, 118 lines download raw bytes

1function hideDocumentElement(id) {
2    var el = document.getElementById(id);
3    if (el) el.style.display = 'none';
4}
5
6function showDocumentElement(id) {
7    var el = document.getElementById(id);
8    if (el) el.style.display = 'block';
9}
10
11function showAnonymousForm() {
12    showDocumentElement('comments-form');
13
14}
15
16
17var commenter_name;
18var commenter_blog_ids;
19var is_preview;
20var mtcmtmail;
21var mtcmtauth;
22var mtcmthome;
23
24function individualArchivesOnLoad(commenter_name) {
25
26    hideDocumentElement('comments-open');
27
28
29    hideDocumentElement('trackbacks-info');
30
31
32
33    if (document.comments_form) {
34        if (!commenter_name && (document.comments_form.email != undefined) &&
35            (mtcmtmail = getCookie("mtcmtmail")))
36            document.comments_form.email.value = mtcmtmail;
37        if (!commenter_name && (document.comments_form.author != undefined) &&
38            (mtcmtauth = getCookie("mtcmtauth")))
39            document.comments_form.author.value = mtcmtauth;
40        if (document.comments_form.url != undefined &&
41            (mtcmthome = getCookie("mtcmthome")))
42            document.comments_form.url.value = mtcmthome;
43        if (document.comments_form["bakecookie"]) {
44            if (mtcmtauth || mtcmthome) {
45                document.comments_form.bakecookie.checked = true;
46            } else {
47                document.comments_form.bakecookie.checked = false;
48            }
49        }
50    }
51}
52
53function writeCommenterGreeting(commenter_name, entry_id, blog_id, commenter_id, commenter_url) {
54
55}
56
57
58
59
60// Copyright (c) 1996-1997 Athenia Associates.
61// http://www.webreference.com/js/
62// License is granted if and only if this entire
63// copyright notice is included. By Tomer Shiran.
64
65    function setCookie (name, value, expires, path, domain, secure) {
66        var curCookie = name + "=" + escape(value) + (expires ? "; expires=" + expires.toGMTString() : "") +
67            (path ? "; path=" + path : "") + (domain ? "; domain=" + domain : "") + (secure ? "secure" : "");
68        document.cookie = curCookie;
69    }
70
71    function getCookie (name) {
72        var prefix = name + '=';
73        var c = document.cookie;
74        var nullstring = '';
75        var cookieStartIndex = c.indexOf(prefix);
76        if (cookieStartIndex == -1)
77            return nullstring;
78        var cookieEndIndex = c.indexOf(";", cookieStartIndex + prefix.length);
79        if (cookieEndIndex == -1)
80            cookieEndIndex = c.length;
81        return unescape(c.substring(cookieStartIndex + prefix.length, cookieEndIndex));
82    }
83
84    function deleteCookie (name, path, domain) {
85        if (getCookie(name))
86            document.cookie = name + "=" + ((path) ? "; path=" + path : "") +
87                ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
88    }
89
90    function fixDate (date) {
91        var base = new Date(0);
92        var skew = base.getTime();
93        if (skew > 0)
94            date.setTime(date.getTime() - skew);
95    }
96
97    function rememberMe (f) {
98        var now = new Date();
99        fixDate(now);
100        now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000);
101        now = now.toGMTString();
102        if (f.author != undefined)
103           setCookie('mtcmtauth', f.author.value, now, '/', '', '');
104        if (f.email != undefined)
105           setCookie('mtcmtmail', f.email.value, now, '/', '', '');
106        if (f.url != undefined)
107           setCookie('mtcmthome', f.url.value, now, '/', '', '');
108    }
109
110    function forgetMe (f) {
111        deleteCookie('mtcmtmail', '/', '');
112        deleteCookie('mtcmthome', '/', '');
113        deleteCookie('mtcmtauth', '/', '');
114        f.email.value = '';
115        f.author.value = '';
116        f.url.value = '';
117    }
118

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.