Skip to content

Commit

Permalink
Updating URLs in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
finnsson committed Feb 19, 2013
1 parent 5d92897 commit 8252c97
Show file tree
Hide file tree
Showing 12 changed files with 674 additions and 640 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -946,7 +946,7 @@ Fork this repo. Install all dependencies (node.js, grunt, phnatomjs). Run all te

pager.js is under MIT license.

Copyright (c) 2012 Oscar Finnsson
Copyright (c) 2013 Oscar Finnsson

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
Expand Down
5 changes: 0 additions & 5 deletions pagerjs.com/demo/demo.css
Expand Up @@ -7,11 +7,6 @@ body > .container > .row > .span9 > div {
font-weight: normal;
background-color: transparent;
border: none;
cursor: pointer;
}

.code-large:hover {
text-decoration: underline;
}

.p {
Expand Down
12 changes: 9 additions & 3 deletions pagerjs.com/demo/demo.js
Expand Up @@ -99,12 +99,18 @@ requirejs(['jquery', 'knockout', 'underscore', 'pager', 'bootstrap', 'hashchange
$(page.element).fadeIn(1000, callback);
},
hideFry:function (page, callback) {
$(page.element).fadeOut(1000, function () {
$(page.element).hide();
var $e = $(page.element);
if (!page.pageHiddenOnce) {
page.pageHiddenOnce = true;
$e.hide();
} else {
$e.fadeOut(1000, function () {
$e.hide();
});
if (callback) {
callback();
}
});
}
},
textLoader:function (page, element) {
var loader = {};
Expand Down
12 changes: 11 additions & 1 deletion pagerjs.com/demo/index.html
Expand Up @@ -62,21 +62,25 @@

<div class="span3" style="padding-top: 20px;">
<ul data-bind="foreach: $__page__.children" class="nav nav-pills nav-stacked">
<!-- ko if: ($data.getId() !== '?') -->
<li data-bind="css: {active: isVisible}">
<a class="lead" data-bind="page-href: $data">
<span data-bind="text: val('title')"></span>
</a>
<ul data-bind="foreach: children" class="nav nav-tabs nav-stacked">
<!-- ko if: ($data.getId() !== '?') -->
<li data-bind="css: {active: isVisible}">
<a data-bind="page-href: $data">
<span data-bind="text: val('title')"></span>
<!-- ko if val('desc') -->
<!-- ko: if: val('desc') -->
<span class="muted" data-bind="text: val('desc')"></span>
<!-- -->
</a>
</li>
<!-- /ko -->
</ul>
</li>
<!-- /ko -->
</ul>
</div>

Expand All @@ -98,6 +102,7 @@
<div data-bind="page: {id: 'custom_js_when_navigating', title: 'Custom JS when Navigating', desc: 'reacting to navigation', scrollToTop: true, sourceCache: true, sourceOnShow: 'page/custom_js_when_navigating.html'}"></div>
<div data-bind="page: {id: 'failed_navigation', title: 'Failed Navigation', scrollToTop: true, sourceCache: true, sourceOnShow: 'page/failed_navigation.html'}"></div>
<div data-bind="page: {id: 'guards', title: 'Guards', desc: 'conditions when navigating to a page is ok', scrollToTop: true, sourceCache: true, sourceOnShow: 'page/guards.html'}"></div>
<div data-bind="page: {id: '?', title: '404 - Single Page Not Found', scrollToTop: true, sourceCache: true, sourceOnShow: 'page/404.html'}"></div>
</div>

<div data-bind="page: {id: 'model', title: 'Model', desc: 'Model'}">
Expand All @@ -108,6 +113,7 @@
<div data-bind="page: {id: 'binding_wildcard_to_observable', title: 'Binding Wildcard to observable', sourceOnShow: 'page/binding_wildcard_to_observable.html', scrollToTop: true, sourceCache: true, desc: 'set a name on the ?'}"></div>
<div data-bind="page: {id: 'vars', title: 'Custom observables', sourceOnShow: 'page/vars.html', scrollToTop: true, sourceCache: true, desc: 'pure local view-observables'}"></div>
<div data-bind="page: {id: 'binding_error', title: 'Binding Error', sourceOnShow: 'page/binding_error.html', scrollToTop: true, sourceCache: true, desc: 'trigger event'}"></div>
<div data-bind="page: {id: '?', title: '404 - Single Page Not Found', scrollToTop: true, sourceCache: true, sourceOnShow: 'page/404.html'}"></div>
</div>

<div data-bind="page: {id: 'view', title: 'View', desc: 'View'}">
Expand All @@ -125,18 +131,22 @@
<div data-bind="page: {id: 'url_toggle_show', title: 'Pages that only toggle on', sourceOnShow: 'page/url_toggle_show.html', scrollToTop: true, sourceCache: true, desc: 'pages that does not automatically hide'}"></div>
<div data-bind="page: {id: 'source_error', title: 'Source Error', sourceOnShow: 'page/source_error.html', scrollToTop: true, sourceCache: true, desc: 'trigger event'}"></div>
<div data-bind="page: {id: 'fx', title: 'FX', sourceOnShow: 'fx.html', scrollToTop: true, sourceCache: true, desc: 'effects between page transitions'}"></div>
<div data-bind="page: {id: '?', title: '404 - Single Page Not Found', scrollToTop: true, sourceCache: true, sourceOnShow: 'page/404.html'}"></div>
</div>

<div data-bind="page: {id: 'widgets', title: 'Widgets', desc: 'Widgets'}">
<div data-bind="page: {id: 'tabpanel', title: 'Tab Panel', desc: 'roll your own tab panel', scrollToTop: true, sourceCache: true, sourceOnShow: 'page/tabpanel.html', role: 'start'}"></div>
<div data-bind="page: {id: 'custom_widgets', title: 'Custom Widgets', desc: 'subclassing the page-binding', scrollToTop: true, sourceCache: true, sourceOnShow: 'page/custom_widgets.html'}"></div>
<div data-bind="page: {id: 'custom_navigation_binding', title: 'Custom Navigation Binding', sourceOnShow: 'page/custom_navigation_binding.html', scrollToTop: true, sourceCache: true, desc: 'developing a page-step: binding'}"></div>
<div data-bind="page: {id: '?', title: '404 - Single Page Not Found', scrollToTop: true, sourceCache: true, sourceOnShow: 'page/404.html'}"></div>
</div>

<div data-bind="page: {id: 'misc', title: 'Misc', desc: 'Misc'}">
<div data-bind="page: {id: 'crawling', title: 'Crawling', scrollToTop: true, sourceCache: true, sourceOnShow: 'page/crawling.html', desc: 'making sure the site can be crawled', role: 'start'}"></div>
<div data-bind="page: {id: '?', title: '404 - Single Page Not Found', scrollToTop: true, sourceCache: true, sourceOnShow: 'page/404.html'}"></div>
</div>

<div data-bind="page: {id: '?', title: '404 - Single Page Not Found', scrollToTop: true, sourceCache: true, sourceOnShow: 'page/404.html'}"></div>

</div>
</div>
Expand Down
9 changes: 9 additions & 0 deletions pagerjs.com/demo/page/404.html
@@ -0,0 +1,9 @@
<header class="jumbotron subhead">
<h1>404</h1>

<p class="lead">
Single Page Not Found.
</p>
</header>

<iframe width="560" height="315" src="http://www.youtube.com/embed/mpDOscUDQ_0" frameborder="0" allowfullscreen></iframe>

0 comments on commit 8252c97

Please sign in to comment.