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
<body> | |
<canvas id="mainCanvas" width="600" height="400"></canvas> | |
</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 lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Flash to Canvas Animation Example</title> | |
<script src="easel.js"></script> | |
<script> | |
var stage; |
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 lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Flash to Canvas Animation Example</title> | |
<script src="easel.js"></script> | |
<script> | |
var stage; |
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
BoundsNode.prototype.clear = function() | |
{ | |
this._stuckCount = 0; | |
//array | |
this.children.length = 0; | |
var len = this.nodes.length; | |
if(!len) |
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
Circle.prototype._collidingCacheCanvas = null; | |
Circle.prototype._normalCacheCanvas = null; | |
Circle.prototype._draw = function() | |
{ | |
if(this.isColliding) | |
{ | |
if(this._collidingCacheCanvas) | |
{ | |
this.cacheCanvas = this._collidingCacheCanvas; | |
return; |
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
//check version of data to see if we need to update it | |
//have to think about if we exceed storage quota, so we would need to check for how much space | |
//we need before we write, and then, if we need more, request more from the user before we write. | |
//of course, that is async, so somehow we have to save the state while we wait for the user to respond | |
;(function(){ | |
"use strict"; | |
function SpectralKitten() |
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 Foo() | |
{ | |
var _a = "hello"; | |
if(!Foo.prototype.bar) | |
{ | |
Foo.prototype.bar = function() | |
{ | |
console.log("hi " + _a); | |
}; | |
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="view1" class="viewcontainer"> | |
<div class="list" id="set_list" > | |
<ul> | |
<li>Item 1</li> | |
<li>Item 2</li> | |
<li>Item 2</li> | |
<li>Item 2</li> | |
<li>Item 2</li> | |
<li>Item 2</li> | |
<li>Item 2</li> |
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
.test { | |
color:#FF0000; | |
} |
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 _normalizeKeyDescriptorString(origDescriptor) { | |
var hasCtrl = false, | |
hasAlt = false, | |
hasShift = false, | |
key = ""; | |
function _isModifier(left, right, previouslyFound) { | |
if (!left || !right) { | |
return false; | |
} |
OlderNewer