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
<meta charset="utf-8" /> | |
<title>Love 2 Dev - Chris Love's Modern Web Development Blog</title> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"><!-- make sure you render in the latest IE engine --> | |
<meta content="Chris Love's Blog where he writes about modern web development, JavaScript, HTML5, CSS3 and the Mobile Web" name="description"> | |
<meta content="Chris Love" name="author"> | |
<link href="favicon.ico" rel="shortcut icon"> |
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
<body role="application"> | |
<header class="site-header" role="banner"> | |
<a href="#!" title="Love 2 Dev - Chris Love's Modern Web Development Blog" class="no-decor logo"> | |
<div id="heart"></div> | |
<span class="logo-text">Love2Dev</span> | |
</a> | |
<nav class="main-nav" role="navigation"> | |
<!-- navigation anchor tags here --> | |
</nav> |
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
<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> |
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
.app-view { | |
display: none; | |
} | |
.current-view { | |
display: block; | |
} |
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
currentView.classList.remove("current-view"); | |
newView.classList.add("current-view"); |
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
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); | |
} |
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
$.ajax({ | |
cache: false, | |
type: "GET", | |
dataType: "json", | |
url: "[supply the target URL here]", | |
success: function (d) { | |
//do something here | |
} | |
}); |
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
<script id="movie-list-template" type="text/x-handlebars-template"> | |
{{each}} | |
<div> | |
<h1>{{title}}</h1> | |
<img src="{{poster}}" alt="{{title}}"/> | |
</div> | |
{{/each}} | |
</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
@if (Request. Browser.Type == "IE8" || Request.Browser .Type == "IE7" ){ | |
<img src="~/img/h/apple-touch-icon.png" alt="Love2Dev - Chris Love's Web Development Blog" /> | |
}else{ | |
<div id="heart" ></div> | |
<span class="logo-text" >Love2Dev</ span> | |
} |
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
@media ( max-width:600px) { | |
.main-content { | |
top: 60px ; | |
} | |
.logo { |