mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 15:07:13 +08:00
content tests
This commit is contained in:
@ -7,6 +7,9 @@
|
|||||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
|
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||||
<link href="../dist/ionicons.css" rel="stylesheet">
|
<link href="../dist/ionicons.css" rel="stylesheet">
|
||||||
<link href="../dist/ionic.css" rel="stylesheet">
|
<link href="../dist/ionic.css" rel="stylesheet">
|
||||||
|
<style>
|
||||||
|
.hide{display:none;}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
@ -19,77 +22,39 @@
|
|||||||
<main class="content padded has-header has-footer">
|
<main class="content padded has-header has-footer">
|
||||||
<p>Footer should always stay at the bottom of the screen, and on top of the main content.</p>
|
<p>Footer should always stay at the bottom of the screen, and on top of the main content.</p>
|
||||||
<p>Content element must have "has-footer" as a classname.</p>
|
<p>Content element must have "has-footer" as a classname.</p>
|
||||||
<ul>
|
<p><button id="btnAddMore">Dynamically Add More Content</button></p>
|
||||||
<li>asdf
|
<div id="add-more"></div>
|
||||||
<li>asdf
|
<p><button id="btnToggle">Toggle Content</button></p>
|
||||||
<li>asdf
|
<p id="toggle-content" class="hide">
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
Toggled content<br>
|
||||||
<li>asdf
|
</p>
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
<li>asdf
|
|
||||||
</ul>
|
|
||||||
<p>Bottom of the list
|
|
||||||
<p><a class="button button-secondary" href="index.html">Homepage</a></p>
|
<p><a class="button button-secondary" href="index.html">Homepage</a></p>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
@ -101,6 +66,21 @@
|
|||||||
|
|
||||||
<script src="../dist/ionic.js"></script>
|
<script src="../dist/ionic.js"></script>
|
||||||
<script src="../dist/ionic-simple.js"></script>
|
<script src="../dist/ionic-simple.js"></script>
|
||||||
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||||||
|
<script>
|
||||||
|
$("#btnAddMore").click(function(){
|
||||||
|
var moreContent = [];
|
||||||
|
moreContent.push("<ul>");
|
||||||
|
for(var x=0; x<20; x++) {
|
||||||
|
moreContent.push("<li>Dynamically added content!");
|
||||||
|
}
|
||||||
|
moreContent.push("</ul>");
|
||||||
|
$("#add-more").append( moreContent.join('') );
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
$("#btnToggle").click(function(){
|
||||||
|
$("#toggle-content").toggle("hide")
|
||||||
|
});
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user