<?php
if( count($_POST) ){ // second call
$includes = array();
foreach( $_POST as $lib=>$ver ){
if( !$ver )
continue;
$include = "<script type='text/javascript' src='otherlibs/$lib/$ver/$lib.js'></script>\n";
if( $lib == 'prototype' ) // prototype must be included first
array_unshift( $includes, $include );
else
array_push( $includes, $include );
}
$includes = implode( "\n", $includes );
$suite = file_get_contents('index.html');
echo str_replace( '<!-- Includes -->', $includes, $suite );
exit;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery Test Suite</title>
<link rel="Stylesheet" media="screen" href="qunit/testsuite.css" />
<link rel="Stylesheet" media="screen" href="data/otherlibs.css" />
<style type="text/css">
form.otherlibs{
margin: 20px 0 0 30px;
}
form.otherlibs label{
display:block;
margin: 5px 0 5px 30px;
}
form.otherlibs input.submit{
margin:30px 0 0 0;
}
</style>
</head>
<body id="body">
<h1 id="header">jQuery Test Suite</h1>
<h2 id="banner" class="fail"></h2>
<h2 id="userAgent">Choose other libraries to include</h2>
<form class="otherlibs" action="" method="post">
<?php
$libs = scandir('otherlibs');
foreach( $libs as $lib ){
if( $lib[0] == '.' )
continue;
echo "<h3>$lib</h3>";
$vers = scandir( "otherlibs/$lib");
foreach( $vers as $ver ){
if( $ver[0] != '.' )
echo "<label><input type='checkbox' name='$lib' value='$ver'>$ver</label>";
}
}
?>
<input type="submit" value="Run" class="submit" />
</form>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
JQuery1.3正式版--JQuery最新版
共61个文件
js:36个
html:14个
php:8个
需积分: 18 235 下载量 92 浏览量
2009-01-18
12:22:46
上传
评论
收藏 300KB ZIP 举报
温馨提示
JQuery1.3正式版--JQuery最新版
资源详情
资源评论
资源推荐
收起资源包目录
jquery-1.3-release.zip (61个子文件)
test
polluted.php 2KB
offset.html 1008B
unit
dimensions.js 3KB
data.js 5KB
core.js 77KB
ajax.js 22KB
offset.js 8KB
event.js 19KB
fx.js 11KB
selector.js 14KB
otherlibs
prototype
1.6.0.2
prototype.js 123KB
mootools
1.11
mootools.js 40KB
jquery
1.2.3
jquery.js 29KB
1.2.1
jquery.js 27KB
scriptaculous
1.8.1
slider.js 10KB
controls.js 34KB
dragdrop.js 31KB
sound.js 2KB
builder.js 5KB
effects.js 38KB
scriptaculous.js 3KB
unittest.js 20KB
1.7.0
slider.js 10KB
controls.js 28KB
dragdrop.js 30KB
builder.js 5KB
effects.js 37KB
scriptaculous.js 2KB
unittest.js 20KB
test.js 1KB
index.html 9KB
data
test.html 204B
test2.html 122B
cow.jpg 2KB
text.php 299B
name.php 650B
json_assigned_obj.js 43B
name.html 81B
dashboard.xml 278B
iframe.html 117B
with_fries.xml 734B
jsonp.php 274B
test.php 247B
test3.html 123B
test.js 77B
json.php 208B
echoQuery.php 39B
testrunner.js 75B
json_obj.js 41B
params_html.php 213B
offset
fixed.html 1KB
table.html 1KB
body.html 747B
relative.html 1KB
absolute.html 2KB
scroll.html 1KB
static.html 1KB
dist
jquery.pack.js 37KB
jquery.lite.js 114KB
jquery.js 114KB
jquery.min.js 54KB
共 61 条
- 1
xb520hh
- 粉丝: 35
- 资源: 31
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0