Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (44 sloc) 2.14 KB
<!DOCTYPE html>
<title>ViewKit Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script src="demo/phantomlimb.js"></script>
<script src="demo/zepto.min.js"></script>
<script src="demo/zepto-touch.js"></script>
<script src="build/vk.js"></script>
<script src="demo/iscroll.js"></script>
<script src="demo/jScroll.js"></script>
<link rel="stylesheet" href="build/vk.css">
<link rel="stylesheet" href="build/sprite.css">
<div class="ui-content">
<div class="nav"></div>
<div class="items"></div>
<div class="footer"></div>
<script type="text/javascript">
var container = vk.container('.ui-content')
var nav = vk.navBar('.nav', 'topNav')
var button = vk.actionButton({href: "#/submit!", id: "start", text: "Save"})
nav.add(button, "right")
var button2 = vk.actionButton({"data-view": "list", href: "#/list", id: "list-button", text: "", className: "sprite-list-off"})
nav.add(button2, "left")
var button3 = vk.actionButton({"data-view": "map", href: "#/map", id: "map-button", text: "", className: "sprite-map-off"})
nav.add(button3, "left")
var list = vk.list('.items')
list.add("hello this is a test of many many many many many many many many many many many many rows of data".split(' ').map(function(word) {
return vk.item({'title': word})
var footer = vk.navBar('.footer', 'bottomNav')
var readButton = vk.navButton({href: "#/read", id: "read-button", text: "Read"})
footer.add(readButton, 'left')
var unreadButton = vk.navButton({href: "#/unread", id: "unread-button", text: "Unread"})
footer.add(unreadButton, 'left')
var refreshButton = vk.actionButton({href: "#/refresh!", linkClass: "refreshButton", text: "", className: "sprite-icon-refresh-white sprite"})
footer.add(refreshButton, 'right')
Jump to Line
Something went wrong with that request. Please try again.