- Download this application skeleton.
- Convert the app to use AJAX.
- Add any files you changed to your gist and submit your code.
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
class BoggleBoard | |
def initialize(board) | |
@board=board | |
end | |
def create_word(*coords) | |
coords.map { |coord| @board[coord.first][coord.last]}.join("") | |
end | |
def get_row(row) |
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
//------------------------------------------------------------------------------------------------------------------ | |
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here. | |
//------------------------------------------------------------------------------------------------------------------ | |
Zoo = { | |
init: function(animals) { | |
this.animals = animals; | |
}, | |
bipeds: 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
$(function() { | |
$("form[name='sign_up']").submit(function(event) { | |
event.preventDefault(); | |
$("#errors").empty() | |
var email = validateEmail($("input[name='email']")); | |
var password = validatePassword($("input[name='password']")); | |
if (email == true) { | |
if (password == true) { | |
$("#errors").append("<ui>Success</ui>"); | |
} else { |
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
// Shorthand for $(document).ready(); | |
$(function() { | |
$("#previous_frame").click(function() { | |
$(".frames").animate({ | |
left: '+=360' | |
}, 500) | |
}) | |
$("#next_frame").click(function() { |
This is a very trivial example of using mirage with Ember Twiddle.