2012-03-07 08:54:25 +00:00
|
|
|
(function() {
|
|
|
|
|
2012-03-07 10:58:18 +00:00
|
|
|
window.hasPHP = false /* <?php echo "*" . "/ || true /*"; ?> */;
|
2012-03-07 08:54:25 +00:00
|
|
|
|
|
|
|
if ( !window.top.jQueryIncludes ) {
|
|
|
|
|
|
|
|
window.top.jQueryIncludes = (function() {
|
|
|
|
|
|
|
|
var location = window.top.document.location.href,
|
2012-03-07 10:58:18 +00:00
|
|
|
baseURL = location.replace( /\/test\/.*/, "/"),
|
2012-03-07 08:54:25 +00:00
|
|
|
version = /(?:&|\?)jquery=([^&]+?)(?:$|&)/.exec( location ),
|
|
|
|
includes, i;
|
|
|
|
|
|
|
|
if ( version ) {
|
|
|
|
version = version[ 1 ];
|
|
|
|
if( version === "min" ) {
|
|
|
|
includes = [ baseURL + "dist/jquery.min.js" ];
|
|
|
|
} else if( version === "dist" ) {
|
|
|
|
includes = [ baseURL + "dist/jquery.js" ];
|
|
|
|
} else {
|
|
|
|
includes = [ "http://code.jquery.com/jquery-" + version + ".js" ];
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
includes = [
|
|
|
|
"core",
|
|
|
|
"callbacks",
|
|
|
|
"deferred",
|
|
|
|
"support",
|
|
|
|
"data",
|
|
|
|
"queue",
|
|
|
|
"attributes",
|
|
|
|
"event",
|
|
|
|
"sizzle/sizzle",
|
|
|
|
"sizzle-jquery",
|
|
|
|
"traversing",
|
|
|
|
"manipulation",
|
|
|
|
"css",
|
|
|
|
"ajax",
|
|
|
|
"ajax/jsonp",
|
|
|
|
"ajax/script",
|
|
|
|
"ajax/xhr",
|
|
|
|
"effects",
|
|
|
|
"offset",
|
|
|
|
"dimensions",
|
|
|
|
"exports"
|
|
|
|
];
|
|
|
|
for ( i = includes.length; i--; ) {
|
|
|
|
includes[ i ] = baseURL + "src/" + includes[ i ] + ".js";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
for ( i = includes.length; i--; ) {
|
|
|
|
includes[ i ] = "<script src='" + includes[ i ] + "'><" + "/script>";
|
|
|
|
}
|
|
|
|
|
|
|
|
return includes.join( "\n" );
|
|
|
|
})();
|
2012-01-12 02:35:13 +00:00
|
|
|
}
|
|
|
|
|
2012-03-07 08:54:25 +00:00
|
|
|
document.write( window.top.jQueryIncludes );
|
2012-01-12 02:35:13 +00:00
|
|
|
|
2012-03-07 08:54:25 +00:00
|
|
|
})();
|