-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moving templates to external files, refactoring, cleanup
- Loading branch information
1 parent
d9eb981
commit 24552ff
Showing
9 changed files
with
67 additions
and
75 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
|
||
A complete Backbone mobile application demonstrating searching for images using the Flickr API with full support for pagination, bookmarking and more. | ||
A complete Backbone.js mobile application demonstrating searching for images using the Flickr API with full support for pagination, bookmarking and more. | ||
|
||
**Uses:** | ||
- Backbone.js for MVC | ||
- Underscore.js for Micro-templating and utilities | ||
- jQuery Mobile | ||
- LABjs for script loading | ||
- Flickr API for data | ||
|
||
|
||
**Current status:** | ||
Being heavily refactored and re-written. | ||
<ul> | ||
<li>Backbone.js to aid application structure, routing</li> | ||
<li>Underscore.js for micro-templating and utilities</li> | ||
<li>Require.js and AMD for modular separation of components</li> | ||
<li>Require.js text plugin to enable external templates</li> | ||
<li>jQuery Mobile + jQuery for DOM manipulation, mobile helpers</li> | ||
<li>Flickr API for data</li> | ||
</ul> |
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,8 @@ | ||
<% _.each( results, function( item, i ){ %> | ||
<li> | ||
<a class='ui-result' title='<%= item.get("title") %>' data-ajax="false" href="#photo/<%= item.get("id") %>"> | ||
<img title="<%= item.get("title") %>" src="<%= 'http://farm' + item.get("farm") + '.static.flickr.com/' + item.get("server") + '/' + item.get("id") + '_' + item.get("secret") + '_s.jpg' %>"/> | ||
<h3><%= item.get("title") %></h3> | ||
</a> | ||
</li> | ||
<% }); %> |
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,19 @@ | ||
<% _.each( results, function( item, i ){ %> | ||
|
||
<img alt="<%= item.get("title")._content %>" title="<%= item.get("title")._content %>" src="<%= 'http://farm' + item.get("farm") + '.static.flickr.com/' + item.get("server") + '/' + item.get("id") + '_' + item.get("secret") + '_m.jpg' %>"/> | ||
|
||
<ul data-role="listview" data-inset="true"> | ||
<li><span class="key">Title:</span> <%= item.get("title")._content %></li> | ||
<li><span class="key">Description:</span> <%= item.get("description")._content %></li> | ||
<li><span class="key">Views:</span> <%= item.get("views") %></li> | ||
<li><span class="key">Location:</span> <%= item.get("owner").location %></li> | ||
<li><span class="key">Taken by:</span> <%= item.get("owner").realname %></li> | ||
<li><span class="key">Date taken:</span> <%= item.get("dates").taken %></li> | ||
<li><span class="key">Date uploaded:</span> <%= new Date( item.get("dateuploaded") * 1000).toDateString() %></li> | ||
<li class="ext"><iframe src="http://www.facebook.com/plugins/like.php?href=<%= item.get("urls").url[0]._content %>&send=false&layout=standard&width=450&show_faces=true&action=like&colorscheme=light&font&height=80&appId=160332214053450" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe></li> | ||
<li class="ext"><a class="external_link" href="<%= item.get("urls").url[0]._content %>">View Original On Flickr.com</a></li> | ||
|
||
|
||
</ul> | ||
|
||
<% }); %> |
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
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