2 Star 1 Fork 0

SIlence/jquery-mobile-datepicker-wrapper-master

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.html 1.98 KB
一键复制 编辑 原始数据 按行查看 历史
SIlence 提交于 2015-01-10 15:48 +08:00 . first commit
<!DOCTYPE html>
<html>
<head>
<title>jQuery Mobile test page</title>
<meta charset=utf-8 />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="jquery.mobile-1.4.5.min.css" />
<link rel="stylesheet" href="jquery.mobile.datepicker.css" />
<link rel="stylesheet" href="jquery.mobile.datepicker.theme.css" />
<script src="jquery-1.9.1.js"></script>
<script src="external/jquery-ui/datepicker.js"></script>
<script src="jquery.mobile-1.4.5.min.js"></script>
<!--<script src="./jquery.mobile-1.4.5.js"></script>-->
<script src="jquery.mobile.datepicker.js"></script>
<script>
$(function(){
$( ".date-input-css" ).datepicker();
})
</script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1>Mobile Datepicker</h1>
</div><!-- /header -->
<div data-role="content">
<div class="ui-grid-a">
<div class="ui-block-a">
<div class="ui-content">
<h1>Don't need autoinit? dont need data-attributes to options?</h1>
<h2>New css only option</h2>
<p>Now you can just include the 2 css files and use ui-datepicker as normal but in mobile</p>
<input type="text" class="date-input-css">
<p class="ui-li-aside">
* Note jQuery UI Datepicker is not actually a widget in that it does not use the jQuery UI Widget Factory. As such jQuery Mobile widget enhancements will not work with ui-datepicker using the css only
</p>
</div>
</div>
<div class="ui-block-b">
<div class="ui-content">
<h1>Want all the built in mobile goodness?</h1>
<h2>No problem just include the very small .js file and you can use jQuery UI datepicker just as you would any other mobile widget</h2>
<input type="text" class="date-input" data-inline="false" data-role="date">
<input type="text" class="date-input-inline" data-inline="true" data-role="date">
</div>
</div>
</div>
</div><!-- /content -->
<div data-role="footer">
<h4>Footer</h4>
</div><!-- /footer -->
</div><!-- /page -->
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/yupeng/jquery-mobile-datepicker-wrapper-master.git
git@gitee.com:yupeng/jquery-mobile-datepicker-wrapper-master.git
yupeng
jquery-mobile-datepicker-wrapper-master
jquery-mobile-datepicker-wrapper-master
master

搜索帮助