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
<span class="imdbRatingPlugin" data-user="ur21937501" data-title="tt3125798" data-style="p1"> | |
<a href="http://www.imdb.com/title/tt3125798/?ref_=plg_rt_1"> | |
<img src="http://g-ecx.images-amazon.com/images/G/01/imdb/plugins/rating/images/imdb_46x22.png" alt=" Shawshank Redemption | |
(2013) on IMDb" /> | |
</a> | |
</span> | |
<script>(function(d,s,id){var js,stags=d.getElementsByTagName(s)[0];if(d.getElementById(id)){return;}js=d.createElement(s);js.id=id;js.src="http://g-ec2.images-amazon.com/images/G/01/imdb/plugins/rating/js/rating.min.js";stags.parentNode.insertBefore(js,stags);})(document,'script','imdb-rating-api');</script> |
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
var | |
sidebarEl = $('.nav-sidebar'), | |
categoryContainer = sidebarEl.find('.main-nav'); | |
$.get(RELATIVE_PATH + '/api/').success(function(returnData) { | |
templates.parse('partials/menu', returnData, function(html) { | |
console.log(returnData)}); | |
}); |
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
var getCategories = function() { | |
var categoryContainer = $('.nav-sidebar .categories'), | |
titleEl = $('.nav-sidebar h2'); | |
titleEl.text('Categories'); | |
$.get(RELATIVE_PATH + '/api/').success(function(returnData) { | |
templates.parse('partials/menu', returnData, function(html) { | |
categoryContainer.append(html); | |
}); |
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
$.get(RELATIVE_PATH + '/api/').success(function(returnData) { | |
templates.parse('partials/sidebar/sidebar_home', returnData, function(html) { | |
categoryContainer.append(html); | |
}); | |
}); | |
}; |
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
<div class="top-right-menu" id="logged-in-menu"> | |
<li> | |
<a id="reconnect" class="hide loading" title="Connection to {title} has been lost, attempting to reconnect..."><i class="fa fa-check fa-2x"></i></a> | |
</li> | |
<li id="user_label" class="menu-dropdown menu"> | |
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-fw fa-bars fa-2x" data-content="0" title="Menu"></i></a> | |
<ul class="dropdown-menu dropdown-list"> | |
<li> |