- 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 App extends React.Component { | |
constructor() { | |
super(); | |
this.state = { | |
xMax: window.innerWidth, | |
yMax: window.innerHeight, | |
xVelocity: 0, | |
hideControls: false | |
}; |
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 id="app"></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
GIT | |
remote: git://github.com/spree-contrib/spree_tax_cloud.git | |
revision: 34f027976ec5014161bdbf0a0900bec5a1c19348 | |
branch: 3-0-stable | |
specs: | |
spree_tax_cloud (3.0.0) | |
savon (~> 2.5.1) | |
spree_backend (~> 3.0.0) | |
spree_core (~> 3.0.0) | |
tax_cloud (~> 0.3.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
//Expected behaviour from synchrous function. | |
function output(value) { return value; } | |
var sync = output("jambalaya"); | |
console.log('sync === "jambalaya"'); | |
console.log(sync === "jambalaya"); //true | |
//Difficulty in capturing value from asynchronous call. | |
var async = setTimeout(function () { | |
console.log("Stay Great"); |
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
// On document load execute code for directions to business. | |
$(document).on('ready page:load', function() { | |
// Create new map with infowindow and marker. // | |
// New map with a map_canvas ( width, height ) and options. | |
var map_canvas = document.getElementById('map_canvas'); | |
// Latlng for buisiness hardcoded. | |
var myLatlng = new google.maps.LatLng(38.197255, -85.767465); | |
var map_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
// Shorthand for $(document).ready(); | |
$(function(){ | |
// Your code goes 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
// shorthand for $(document).ready(); | |
$(function(){ | |
//Your code... | |
$("form").on("submit", function(event){ | |
event.preventDefault(); | |
var email = $('form input[name="email"]').val() | |
var password = $('form input[name="password"]').val() | |
var email_format = /.+@.+\..+/ | |
var one_digit = /\d+/ | |
var one_cap = /[A-Z]+/ |
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. | |
//------------------------------------------------------------------------------------------------------------------ | |
//------------------------------------------------------------------------------------------------------------------ | |
// DRIVER CODE: Do **NOT** change anything below this point. Your task is to implement code above to make this work. | |
//------------------------------------------------------------------------------------------------------------------ |