forked from tapquo/Lungo.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c6faae3
commit 3438d83
Showing
4 changed files
with
47 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
$$("#themeroller li").tap(function() { | ||
var link = $$("#theme-stylesheet"); | ||
var url = link.attr("href"); | ||
var new_url = url.split("/").slice(0, -1); | ||
new_url.push($$(this).attr("data-theme")); | ||
link.attr('href', new_url.join("/")); | ||
}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<section id="themeroller" data-transition="slide"> | ||
<header data-title="Theme roller"> | ||
<nav class="box"> | ||
<a href="#back" data-router="section" data-label="back"></a> | ||
</nav> | ||
</header> | ||
|
||
<article class="active list indented"> | ||
<ul> | ||
<li class="dark" data-icon="help" data-theme="theme.lungo.css"> | ||
<strong>First theme</strong> | ||
<small>This element has an associated event</small> | ||
</li> | ||
<li class="dark" data-icon="help" data-theme="theme2.lungo.css"> | ||
<strong>Second theme</strong> | ||
<small>This element has an associated event</small> | ||
</li> | ||
<li class="dark" data-icon="help" data-theme="theme3.lungo.css"> | ||
<strong>Third theme</strong> | ||
<small>This element has an associated event</small> | ||
</li> | ||
</ul> | ||
|
||
</article> | ||
|
||
</section> |
This file contains 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