Skip to content

Commit 1bcc510

Browse files
tmp
1 parent 0b9db42 commit 1bcc510

File tree

5 files changed

+30
-5
lines changed

5 files changed

+30
-5
lines changed

lib_jq.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
;void function(){
2+
/**
3+
* 取当前脚本标签的 src路径
4+
* @author scuehs@btbtd.org 2013-05-23
5+
* @return {string} 脚本所在目录的完整路径
6+
*/
7+
function scriptPath(){
8+
var _sc = document.getElementsByTagName('script'), _sc = _sc[ _sc.length - 1 ], _path = _sc.getAttribute('src');
9+
if( /\//.test( _path ) ){ _path = _path.split('/'); _path.pop(); _path = _path.join('/') + '/'; }
10+
else if( /\\/.test( _path ) ){ _path = _path.split('\\'); _path.pop(); _path = _path.join('\\') + '/'; }
11+
return _path;
12+
}
13+
var _path = scriptPath();
14+
document.write( '<script src="'+_path+'require.js" ><\/script>' );
15+
document.write( '<script src="'+_path+'jquery.js" ><\/script>' );
16+
}();

nginx_config.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,14 @@ var _configMap = {
101101
, '?'
102102
].join('')
103103

104+
, 'PluginsAlg': [
105+
, '??'
106+
, 'plugins/Base64/0.1/Base64.js'
107+
, ',plugins/md5/0.1/md5.js'
108+
, ',plugins/Aes/0.1/Aes.js'
109+
, '?'
110+
].join('')
111+
104112
, 'tpl': [
105113
, '??'
106114
, '?'
@@ -245,9 +253,9 @@ requirejs.config( {
245253
, 'plugins.JSON2': 'modules/JSON/2/JSON'
246254
, 'plugins.json2': 'modules/JSON/2/JSON'
247255

248-
, 'plugins.Aes': 'plugins/Aes/0.1/Aes'
249-
, 'plugins.Base64': 'plugins/Base64/0.1/Base64'
250-
, 'plugins.md5': 'plugins/md5/0.1/md5'
256+
, 'plugins.Aes': _configMap[ 'PluginsAlg' ]
257+
, 'plugins.Base64': _configMap[ 'PluginsAlg' ]
258+
, 'plugins.md5': _configMap[ 'PluginsAlg' ]
251259

252260
, 'plugins.requirejs.domReady': 'plugins/requirejs.domReady/2.0.1/domReady'
253261

plugins/Aes/0.1/Aes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,5 +460,6 @@
460460
return strUni;
461461
}
462462

463+
typeof define=="function"&&define.amd && define( 'plugins.Aes', function(){return Aes});
463464
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
464465
}());

plugins/Base64/0.1/Base64.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/md5/0.1/md5.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)