PageSourceSearch

https://www.lens-apple.jp/js/common.js?1520499149

js lens-apple.jp collected 2026-09-24 20:11:15 UTC 3,371 bytes, 125 lines download raw bytes

1function MM_preloadImages() { //v3.0
2  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
3    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
4    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
5}
6
7function MM_swapImgRestore() { //v3.0
8  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
9}
10
11function MM_findObj(n, d) { //v4.01
12  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
13    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
14  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
15  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
16  if(!x && d.getElementById) x=d.getElementById(n); return x;
17}
18
19function MM_swapImage() { //v3.0
20  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
21   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
22}
23
24/**
25 * checkClick()が実行された時にカウントアップするカウンター(グローバル変数)
26 */
27var gjsClickCount = true;
28
29/**
30 * Window Open Function
31 *
32 * This function name is same as DreamWeaver
33 *
34 * LICENSE: Parente
35 *
36 * @copyright  2015 Parente
37 * @license    http://www.parente.jp/
38 * @version    CVS: 1.0.0
39 * @link       http://www.parente.jp/
40 * @since      File available since Release 1.0.0
41 */
42function MM_openBrWindow(theURL,winName,features) {
43    var objWin;
44    objWin = window.open(theURL,winName,features);
45    objWin.focus();
46}
47
48/**
49 * setFavorite
50 *
51 * LICENSE: Parente
52 *
53 * @copyright  2015 Parente
54 * @license    http://www.parente.jp/
55 * @version    CVS: 1.0.0
56 * @link       http://www.parente.jp/
57 * @since      File available since Release 1.0.0
58 */
59function setFavorite(url,title) {
60    if (document.all) {
61        window.external.AddFavorite(url,title);
62    } else {
63        alert('残念ながらブラウザが対応していません。');
64    }
65}
66
67/**
68 * XMLHttpRequest Object Selecter
69 *
70 * LICENSE: Parente
71 *
72 * @copyright  2015 Parente
73 * @license    http://www.parente.jp/
74 * @version    CVS: 1.0.0
75 * @link       http://www.parente.jp/
76 * @since      File available since Release 1.0.0
77 */
78function createXmlHttpRequest() {
79    var xmlhttp = false;
80    if( window.XMLHttpRequest) {
81        xmlhttp = new XMLHttpRequest();
82    } else if(window.ActiveXObject) {
83        try {
84            xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
85        } catch(e) {
86            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
87        }
88    }
89    return xmlhttp;
90}
91
92/**
93 * checkClick click control
94 *
95 * LICENSE: Parente
96 *
97 * @copyright  2015 Parente
98 * @license    http://www.parente.jp/
99 * @version    CVS: 1.0.0
100 * @link       http://www.parente.jp/
101 * @since      File available since Release 1.0.0
102 */
103function checkClick(){
104    var retValue = gjsClickCount;
105    gjsClickCount = false;
106    return retValue;
107}
108
109/**
110 * scroll smartphone address bar out
111 *
112 * LICENSE: Parente
113 *
114 * @copyright  2015 Parente
115 * @license    http://www.parente.jp/
116 * @version    CVS: 1.0.0
117 * @link       http://www.parente.jp/
118 * @since      File available since Release 1.0.0
119 */
120function scrollOutAddressBar() {
121    if (window.pageYOffset === 0) {
122        window.scrollTo(0,1);
123    }
124}
125

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.