Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
84930370
Commit
84930370
authored
Jun 11, 2012
by
Timo Tijhof
Committed by
Dave Methvin
Jun 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test: Remove unused file "include_js.php", closes gh-820.
parent
87e709cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
106 deletions
+0
-106
include_js.php
test/data/include_js.php
+0
-106
No files found.
test/data/include_js.php
deleted
100644 → 0
View file @
87e709cf
/*
<?php
// if php is available, close the comment so PHP can echo the appropriate JS
echo
"*"
.
"/"
;
// initialize vars
$output
=
""
;
$version
=
""
;
// extract vars from referrer to determine version
if
(
isset
(
$_SERVER
[
'HTTP_REFERER'
])){
$referrer
=
$_SERVER
[
'HTTP_REFERER'
];
$referrer_query_string
=
parse_url
(
$_SERVER
[
'HTTP_REFERER'
],
PHP_URL_QUERY
);
parse_str
(
$referrer_query_string
,
$referrer_params
);
if
(
isset
(
$referrer_params
[
'jquery'
])){
$version
=
$referrer_params
[
'jquery'
];
}
}
// load up built versions of jquery
if
(
$version
===
"min"
)
{
$output
=
@
file_get_contents
(
"../../dist/jquery.min.js"
);
}
elseif
(
$version
===
"dist"
)
{
$output
=
@
file_get_contents
(
"../../dist/jquery.js"
);
}
elseif
(
ctype_digit
(
substr
(
$version
,
0
,
1
))
||
$version
===
"git"
)
{
$output
=
"document.write('<script src=
\"
http://code.jquery.com/jquery-"
.
$version
.
".js
\"
><'+'/script>');"
;
}
// the concatenated version of the the src files is both the default and the fallback
// because it does not require you to "make" jquery for it to update
if
(
$output
===
""
)
{
$files
=
array
(
"intro"
,
"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"
,
"outro"
);
foreach
(
$files
as
$file
)
{
$output
.=
file_get_contents
(
"../../src/"
.
$file
.
".js"
);
}
$output
=
str_replace
(
"(function( jQuery ) {"
,
""
,
$output
);
$output
=
str_replace
(
"})( jQuery );"
,
""
,
$output
);
}
echo
$output
;
die
();
?>
*/
hasPHP = false;
// javascript fallback using src files in case this is not run on a PHP server!
// please note that this fallback is for convenience only, and is not fully supported
// i.e. don't expect all of the tests to work properly
var baseURL = document.location.href.replace( /\/test\/.+/, "/"),
files = [
"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"
],
len = files.length,
i = 0;
for ( ; i
<
len
;
i
++
)
{
document
.
write
("<
script
src=
\""
+
baseURL
+
"
src
/"
+
files
[
i
]
+
".
js
\"
><
"+"/
script
>
");
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment