Skip to content

Commit

Permalink
$1
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Turnquest authored and Scott Turnquest committed May 16, 2011
1 parent 09bb244 commit 1be188c
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 8 deletions.
56 changes: 49 additions & 7 deletions www/issue_20110507.html
Expand Up @@ -28,7 +28,7 @@
<a class="home-button" href="index.html" data-transition="slide" data-direction="reverse" rel="external"><img
src="images/home_icon.png"></a>

<div class="contents-title">Contents</div>
<div class="header-title">Contents</div>

<div class="edition">
<span class="edition-title">The Week</span>
Expand Down Expand Up @@ -63,6 +63,12 @@
<!-- /content -->

<div class="footer footer-contents">
<div class="contents-bookmark">
<a href="#" id="contents-bookmark">
<img src="images/bookmark.png"/>
</a>
</div>

<div class="copyright">
&#169; Dennis Publishing Limited
</div>
Expand All @@ -78,7 +84,13 @@
<a class="home-button" href="#contents" data-transition="slide" data-direction="reverse"><img
src="images/home_icon.png"></a>

<h1>The Main Stories</h1>
<div class="header-title">The Main Stories</div>

<div class="page-bookmark">
<a href="#">
<img src="images/bookmark.png"/>
</a>
</div>
</div>
<!-- /header -->

Expand Down Expand Up @@ -143,7 +155,13 @@ <h2>What the editorials said</h2>
<a class="home-button" href="#contents" data-transition="slide" data-direction="reverse"><img
src="images/home_icon.png"></a>

<h1>The Main Stories</h1>
<div class="header-title">The Main Stories</div>

<div class="page-bookmark">
<a href="#">
<img src="images/bookmark.png"/>
</a>
</div>
</div>
<!-- /header -->

Expand Down Expand Up @@ -202,7 +220,13 @@ <h2>What next?</h2>
<a class="home-button" href="#contents" data-transition="slide" data-direction="reverse"><img
src="images/home_icon.png"></a>

<h1>Politics</h1>
<div class="header-title">Politics</div>

<div class="page-bookmark">
<a href="#">
<img src="images/bookmark.png"/>
</a>
</div>
</div>
<!-- /header -->

Expand Down Expand Up @@ -267,7 +291,13 @@ <h2>What the editorials said</h2>
<a class="home-button" href="#contents" data-transition="slide" data-direction="reverse"><img
src="images/home_icon.png"></a>

<h1>Politics</h1>
<div class="header-title">Politics</div>

<div class="page-bookmark">
<a href="#">
<img src="images/bookmark.png"/>
</a>
</div>
</div>
<!-- /header -->

Expand Down Expand Up @@ -334,7 +364,13 @@ <h2>What the commentators said</h2>
<a class="home-button" href="#contents" data-transition="slide" data-direction="reverse"><img
src="images/home_icon.png"></a>

<h1>Politics</h1>
<div class="header-title">Politics</div>

<div class="page-bookmark">
<a href="#">
<img src="images/bookmark.png"/>
</a>
</div>
</div>
<!-- /header -->

Expand Down Expand Up @@ -371,7 +407,13 @@ <h2>What next?</h2>
<a class="home-button" href="#contents" data-transition="slide" data-direction="reverse"><img
src="images/home_icon.png"></a>

<h1>Sport</h1>
<div class="header-title">Sport</div>

<div class="page-bookmark">
<a href="#">
<img src="images/bookmark.png"/>
</a>
</div>
</div>
<!-- /header -->

Expand Down
18 changes: 18 additions & 0 deletions www/javascripts/the_week.js
Expand Up @@ -23,4 +23,22 @@ $(function() {
e.preventDefault();
});

$('.page-bookmark a').click(function() {
alert('Bookmark page: ' + $.mobile.activePage.attr('id'));

var bookmark = $.mobile.activePage.attr('id');
var bookmarks = localStorage["bookmarks"];
if (bookmarks == null) {
bookmarks = bookmark;
} else {
bookmarks += ',' + bookmark;
}

localStorage["bookmarks"] = bookmarks;
});

$('#contents-bookmark').click(function() {
alert('Bookmarks: ' + localStorage["bookmarks"])
});

});
21 changes: 20 additions & 1 deletion www/stylesheets/ipad.css
Expand Up @@ -69,7 +69,7 @@ div.multicolumn4 {
margin-right: auto;
}

.contents-title {
.header-title {
float: left;

margin-left: 500px;
Expand Down Expand Up @@ -148,6 +148,25 @@ div.multicolumn4 {
background: #666;
}

.contents-bookmark, .page-bookmark {
padding-left: 5px;
padding-right: 5px;
padding-top: 3px;
}

.page-bookmark {
float: right;
}

.page-bookmark img, .contents-bookmark img {
width: 25px;
border: none;
}

.contents-bookmark img {
float: left;
}

.content-cover {
float: left;
}
Expand Down

0 comments on commit 1be188c

Please sign in to comment.