-
Notifications
You must be signed in to change notification settings - Fork 18
Getting started
ranbena edited this page Sep 12, 2011
·
27 revisions
- Download the project files: zip, tar or fork it.
- Browse to
index.html
from your desktop and mobile. - Edit the file to your liking and make it your own.
If you got a server that runs php, start with index.php
so you could enjoy TouchPHP. It enables you to embed assets into the page (potentially speeding up load time).
There's a whole lot you can do with the Touchy projects. Full documentation can be found in TouchyJS and TouchyPHP.
Before starting, make sure touchy.js
is loaded into the page.
Here's a few quick ones:
Your HTML structure should look like this:
<html>
<head>
<style>
.touchy-js{display: none}; /* To avoid a flash of content */
</style>
</head>
<body>
<!-- header -->
<div class="touchyjs-header">
...
</div>
<!-- content page #1 -->
<div class="touchyjs-content" id="page1">
...
</div>
<!-- content page #2 -->
<div class="touchyjs-header" id="page2">
...
</div>
</body>
</html>
Reload the page. Now only the first "page" is displayed.
Now, let's move between them!