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
describe("Calculator", function () { | |
beforeEach(function () { | |
Calculator.current = 0; | |
}); | |
describe("When adding numbers", function () { | |
it("should store the current value at all times", function () { | |
expect(Calculator.current).toBeDefined(); | |
}); |
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
@-ms-viewport { | |
width: device-width; | |
} | |
@import "reset"; | |
@import "smallest"; | |
@media print { | |
@import "print"; | |
} |
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
<!doctype html> | |
<html> | |
<head> | |
<style> | |
/* container which maintains the ratio */ | |
/* padding-bottom is the magic rule to set the aspect ration */ | |
.container { | |
position: relative; | |
height: 0; |
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
Grab mustache.js from https://github.com/janl/mustache.js/ | |
Link to: <script type="text/javascript" src="../mustache.js"></script> | |
(Simple Template) | |
<script type="text/template" id="templateID"> | |
<div class="contentWrapper"> | |
<div>{{field1}}</div> | |
<div>{{field1}}</div> | |
<div>{{field1}}</div> | |
</div> |
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
/* jshint undef: true, unused: true, strict: true, curly: true, eqeqeq: true, futurehostile: true, latedef: true, shadow: outer */ | |
/* globals $, document */ |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>JSON Carousel</title> | |
<link href='http://fonts.googleapis.com/css?family=Wendy+One|Libre+Baskerville' rel='stylesheet' type='text/css'> | |
<link rel="stylesheet" href="mystyle.css" /> | |
</head> | |
<body> |
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
{ | |
"full_name" : "Ray Villalobos", | |
"title" : "Staff Author", | |
"links" : [ | |
{ "blog" : "http://iviewsource.com" }, | |
{ "facebook" : "http://facebook.com/iviewsource" }, | |
{ "podcast" : "http://feeds.feedburner.com/authoredcontent" }, | |
{ "twitter" : "http://twitter.com/planetoftheweb" }, | |
{ "youtube" : "http://www.youtube.com/planetoftheweb" } | |
] |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>JavaScript And JSON</title> | |
</head> | |
<body> | |
<h2>Links</h2> | |
<ol id="links"> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>JavaScript And JSON</title> | |
</head> | |
<body> | |
<h2>Links</h2> | |
<ul id="links"> | |
</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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<div id="mainContent"> | |
<h1>Prototype Example</h1> | |
</div> | |
NewerOlder