This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head></head> | |
<body> | |
<!-- cover, copyright, dedication, TOC, Foreword page divs --> | |
<!-- | |
The ONLY child tags under <body> should be page divs: | |
<div data-role="page" id="unique-name">...</div> | |
The ONLY child tags under each page div should be content and footer, in that order: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- BEGIN CURRENT VERSION --> | |
<!-- FIX: this id should be "toc" --> | |
<div data-role="page" id="chapter_0" data-url="chapter_0" tabindex="0" class="ui-page ui-body-c ui-page-active" style="min-height: 571px; "> | |
<div data-role="content" class="ui-content" role="main"> | |
<h2 class="chapterhead"> | |
0. <a id="x1-1000" class="ui-link"></a>Contents | |
</h2> | |
<!-- FIX: this page div and content div should not be here --> | |
<div data-role="page" id="toc" data-url="toc"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- BEGIN CURRENT VERSION --> | |
<div class="screencast"> | |
Screencast: | |
<a class="screencast-url" href="https://github.com/armandofox/saasbook/blob/master/ch%CB%99arch/mov/cookies.mp4?raw=true">Cookies</a> | |
<div class="screencastsummary"> | |
<!-- summary stays here --> | |
</div> | |
</div> | |
<!-- END CURRENT VERSION --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Syntax highlighter 3.0.83 --> | |
<script src="js/XRegExp.js" type="text/javascript" charset="utf-8"></script> | |
<script src="js/shCore.js" type="text/javascript" charset="utf-8"></script> | |
<script src="js/shBrushRuby.js" type="text/javascript" charset="utf-8"></script> | |
<link rel="stylesheet" href="css/shCore.css"> | |
<link rel="stylesheet" href="css/shThemeDefault.css"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a class="pastebin" href="http://pastebin.com/9NeF3LQf"> | |
http://pastebin.com/9NeF3LQf | |
</a> | |
<pre class="code"> | |
<!-- actual example code --> | |
</pre> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<!-- START cover image page --> | |
<div data-role="page" id="cover"> | |
<div data-role="content"> | |
<img id="cover-landscape" src="cover/cover-landscape.jpg" width="1024"> | |
<img id="cover-portrait" src="cover/cover-portrait.jpg" width="768"> | |
</div> | |
<div data-role="footer" data-id="global-nav" data-position="fixed" class="ui-bar"> | |
<!-- footer content --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div data-role="page" id="toc"> | |
<div data-role="content"> | |
<h2 class="likechapterhead">Contents</h2> | |
<!-- FOREWORD CHAPTER (i.e. everything between #toc and #chapter_1) --> | |
<div class="chapter_contents"> | |
<h2> | |
<a class="chapter_title" href="#chapter_0"> | |
Foreword | |
</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var url = "http://localhost:3000"; | |
var params = { | |
foo: 'bar', | |
stuff: [1,2,3] | |
}; | |
var xhr = Ti.Network.createHTTPClient({ | |
onload: function() { | |
alert("load!"); | |
}, | |
onerror: function() { |