Skip to content

Instantly share code, notes, and snippets.

View docluv's full-sized avatar
🏠
Working from home

Chris Love docluv

🏠
Working from home
View GitHub Profile
<div id="heart" ></div>
<span class="logo-text" >Love2Dev</ span>
#heart {
position: relative ;
margin: 20px 0 0 0 ;
height: 60px ;
color: #fff ;
@media ( max-width:600px) {
.main-content {
top: 60px ;
}
.logo {
<script id="movie-list-template" type="text/x-handlebars-template">
{{each}}
<div>
<h1>{{title}}</h1>
<img src="{{poster}}" alt="{{title}}"/>
</div>
{{/each}}
</script>
$.ajax({
cache: false,
type: "GET",
dataType: "json",
url: "[supply the target URL here]",
success: function (d) {
//do something here
}
});
function swap(newView, oldView) {
var newView = document.getElementById(newView),
oldView = document.getElementById(oldView),
viewWrapper = document.getElementById("viewWrapper");
oldView.classList.remove("current-view");
newView.classList.add("current-view");
viewWrapper.appendChild(newView);
}
currentView.classList.remove("current-view");
newView.classList.add("current-view");
.app-view {
display: none;
}
.current-view {
display: block;
}
<section id="articleview" class="content-pane" role="article" data-title=""
data-transition="flip"
data-callback="l2d.loadArticleView"
data-path="article\:slug">
{article structure goes here}
</section>