X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;ds=sidebyside;f=0.6.x%2Fjs%2Fimport.js;h=4b34d64c66ce0e1cd7f7c435d0d1f655e9d7d8fb;hb=eedd028ba64be2ea0828cf686f1d0ec3bb4010d5;hp=f3f0181cedf91465e9b12a7b22ec9dc10cd5ad8f;hpb=4af09151d9423828eeb093afd176068c72e9d867;p=pettanr%2FclientJs.git diff --git a/0.6.x/js/import.js b/0.6.x/js/import.js index f3f0181..4b34d64 100644 --- a/0.6.x/js/import.js +++ b/0.6.x/js/import.js @@ -1,46 +1,67 @@ +var basePath = ''; +(function(){ + var src = document.scripts[ document.scripts.length - 1 ].src; + basePath = src.split( 'js/' )[ 0 ]; +})(); + document.write( [ - '' -].join( '">