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>ASWM - Starter Template</title> | |
<!-- stylesheets here --> | |
</head> | |
<body> | |
<!-- javascripts go 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
;(function() { | |
'use strict'; | |
// get a reference to the element with the id 'mountain-image' | |
var mountain_image = document.querySelector('#mountain-image'); | |
// get a reference to the element with the id 'mountain' | |
// TODO 1 | |
// add a click event listener to the mountain_image element |
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>Jokes...jokes</title> | |
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.4.2/base-min.css"> | |
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.4.2/buttons-min.css"> | |
<style type="text/css"> | |
html, body { | |
background: #ccc; |
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($) { | |
'use strict'; | |
var $body = $('body'); | |
var $theme_list = $('#theme-list'); | |
var $theme_bar = $('#theme-bar'); | |
var themes = ['risky', 'rooftop', 'specter']; | |
var current_theme = themes[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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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> | |
<meta charset="utf-8"> | |
<title>Underscore Template Demo</title> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/pure/0.4.2/pure-min.css"> | |
<style type="text/css"> | |
#todo-list { | |
margin-right: 40px; | |
} |
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
// make/get a reference to our namespace | |
var MyApp = window.MyApp || {}; | |
// create our VideoGame model with defaults | |
MyApp.VideoGame = Backbone.Model.extend({ | |
defaults: { | |
title: 'Coming soon...', | |
publisher: '', | |
release_year: '', | |
box_art: 'placeholder.jpg', |
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> | |
<meta charset="utf-8"> | |
<title>Basic Backbone Todo List</title> | |
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/pure/0.4.2/pure-min.css"> | |
<style type="text/css"> | |
#app-title { | |
text-align: center; | |
border-bottom: 3px solid #000; |
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> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>NY Times API Demo</title> | |
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/pure/0.4.2/pure-min.css"> | |
<style type="text/css"> | |
html, body { | |
background: #94bbd4; |
OlderNewer