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('Shopping List', function() { | |
before(function(done) { | |
// The below is the error returned when 'mocha' runs | |
// Shopping List | |
// 1) "before all" hook | |
// 0 passing (33ms) | |
// 1 failing |
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
blocList.factory("Auth", ["$firebaseAuth", | |
function($firebaseAuth) { | |
var ref = new Firebase("https://bloc-list.firebaseio.com"); | |
return $firebaseAuth(ref); | |
} | |
]); | |
blocList.controller('Auth.controller', ['$scope', 'Auth', function($scope, Auth) { | |
$scope.createUser = function() { | |
Auth.$createUser({ |
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> | |
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script src="//jashkenas.github.io/underscore/underscore-min.js"></script> | |
<script src="//jashkenas.github.io/backbone/backbone-min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</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
<!DOCTYPEhtml> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Marionette Contact Manager</title> | |
<link href="./assets/css/bootstrap.css" rel="stylesheet"> | |
<link href="./assets/css/application.css" rel="stylesheet"> | |
</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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>ToDo or NotToDo</title> | |
<!-- jQuery + Underscore + Backbone + Marionette --> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.2/underscore-min.js'></script> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.2/backbone-min.js'></script> | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/backbone.marionette/2.4.1/backbone.marionette.min.js'></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 TodoLists = Backbone.Collection.extend({ | |
model: TodoList | |
}); | |
var TodoList = Backbone.Model.extend({ | |
defaults: { | |
name: '' | |
}, | |
initialize: function(options) { |
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 VenuesView = Backbone.View.extend({ | |
tagName: "ul", | |
id: "venues", | |
initialize: function(options){ | |
this.bus = options.bus; | |
}, | |
render: function(){ |
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
// Before | |
var ExplanationReviewForm = Backbone.View.extend({ | |
ENDPOINTS: {}, | |
$form: null, | |
submitted: false, | |
positiveReview: false, | |
events: { | |
'click .thumbs-up': 'submitPositiveReview', |
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="written-lesson-modal hidden"> | |
<div class="modal-header"> | |
<h3>Request a Written Lesson</h3> | |
</div> | |
<div class="modal-body"> | |
<form id="new-proposal" class="proposal-form form-horizontal" method="POST" action=""> | |
{% load tags %} | |
{% csrf_token %} | |
{% if is_parent or is_tutor %} | |
<div class="control-group"> |
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
toggle: function() { | |
if (this.isExpanded()) { | |
this.minimize(); | |
if (show === true) { | |
this.isVisible = true; | |
$("#phrasebank-tooltip").tooltip("show"); | |
} else { | |
this.isVisible = false; | |
$("#phrasebank-tooltip").tooltip("hide"); |
NewerOlder