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 pong = {}; | |
// Flags | |
// Player 0, Player 1 scores :) | |
pong.score = [0, 0]; | |
// We'll use this flag to set first serve | |
pong.gameStart = false; | |
pong.currentlyServing = 0; | |
// Scoring functions |
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
<nav id="btns"> | |
<a href="#" class="next">Next</a> | |
</nav> |
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
<nav id="btns"> | |
<a href="#" class="next">Next</a> | |
</nav> |
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
<nav id="btns"> | |
<a href="#" class="next">Next</a> | |
</nav> |
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
<nav id="btns"> | |
<a href="#" class="next">Next</a> | |
</nav> |
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
<nav id="btns"> | |
<a href="#" class="next">Next</a> | |
</nav> |
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
<nav id="btns"> | |
<a href="#" class="next">Next</a> | |
</nav> |
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 Spine.Controller | |
@extend(Spine.Events) | |
constructor: -> | |
super | |
# Initialize cache object | |
App.cache = {} unless App.cache? |
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.Root extends Spine.Stack | |
controllers: | |
feeds: App.Feeds | |
routes: | |
'/feeds' : 'feeds' | |
className: 'stack root' | |
constructor: -> |
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
# Let's get all the data first | |
query_params = | |
data: {page: 1} | |
processData: true | |
new_request: true | |
App.Email.fetch(query_params) | |
App.User.fetch() | |
App.Rule.fetch() | |
App.PopAccount.fetch() |
NewerOlder