content tests

This commit is contained in:
Adam Bradley
2013-09-27 09:54:47 -05:00
parent 7420c9b845
commit 72bae87ca7

View File

@ -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>