PageSourceSearch

https://www.okuma.co.jp/js/import.js

js okuma.co.jp collected 2026-09-24 18:22:57 UTC 2,014 bytes, 70 lines download raw bytes

1/*----------------------------------------------
2 JavaScript ( jQuery ) Template
3
4 jQuery1.7+
5----------------------------------------------*/
6
7/*----------------------------------------------
8 サイト内で使用するObjectの作成
9 defObj.param	: 関数間で共通して使用するパラメーター
10 defObj.func	: 関数
11----------------------------------------------*/
12var defObj			= {};
13defObj.param		= {};
14defObj.func			= {};
15
16defObj.param	= {
17
18	/*
19		今後必要になるかもしれないものは残してあります。
20		必要になればコメントアウトを外し使用
21	*/
22
23	//import js
24	arrJs	: [
25		'jquery.linkbox.js',
26		//'jquery.smooth-scroll.js',
27		'jquery.megamenu.js',
28		'jquery.matchHeight-min.js'
29	]
30};
31
32/*----------------------------------------------
33 このファイルが読み込まれたタイミングで実行される関数
34----------------------------------------------*/
35importJs ( defObj.param.arrJs );
36
37/*----------------------------------------------
38 関数一覧
39------------------------------------------------
40 1. 基本的にdefObj.func Objectにメソッドを追加
41 2. メソッドと同名の関数を代入
42 3. メソッド間での使用が求められない関数は
43	メッソド内で関数定義
44 4. default値を設定する場合は、$.extendを使用
45----------------------------------------------*/
46
47/*----------------------------------------------
48 @disc	: 引数の配列に記述されたjsを書き出す
49 @param	: -
50 @ret	: -
51----------------------------------------------*/
52defObj.func.importJs	= importJs;
53
54function importJs ( param ) {
55
56	var jsfiles		= param;
57
58	function lastof ( pa ) {
59		return pa[pa.length - 1];
60	}
61
62	function dirname ( path ) {
63		return path.substring( 0, path.lastIndexOf('/') );
64	}
65
66	var prefix	= dirname ( lastof( document.getElementsByTagName('script') ).src );
67	for( var i = 0; i < jsfiles.length; i ++ ) {
68		document.write('<script type="text/javascript" src="' + prefix + '/' + jsfiles[i] + '"></script>');
69	}
70}

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.