-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ | |
|
||
#DS_Store | ||
.DS_Store | ||
|
||
.DS_Store |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#ag_feedback { | ||
background-color: #CCFFCC; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!DOCTYPE html> | ||
<html style="height: 100%"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<title>Snap! Build Your Own Blocks. Beta</title> | ||
<link rel="shortcut icon" href="http://snap.berkeley.edu/fav3.gif" type="image/gif"> | ||
<link rel="stylesheet" type="text/css" href="AG-snap.css"> | ||
<script type="text/javascript" src="snap.js"></script> | ||
<script type="text/javascript" src="snapPLE.js"></script> | ||
|
||
|
||
<script type="text/javascript"> | ||
|
||
//recover stored save | ||
//var worldXML = localStorage.getItem("worldState"); | ||
var world; | ||
|
||
var pageXML = localStorage.getItem(id) | ||
|
||
window.onload = function () { | ||
world = new WorldMorph(document.getElementById('world')); | ||
new IDE_Morph().openIn(world); | ||
|
||
//Reduce Stage Size on initialization | ||
var ide = world.children[0]; | ||
ide.toggleStageSize(true); | ||
|
||
//If this page has already been loaded | ||
if (localStorage.getItem(id) !== null) { | ||
ide.openProjectString(pageXML); | ||
} | ||
setInterval(loop, 1); | ||
}; | ||
function loop() { | ||
world.doOneCycle(); | ||
} | ||
</script> | ||
</head> | ||
<body style="margin: 0; height: 100%;"> | ||
|
||
<canvas id="world" tabindex="1" style="position: absolute;" /> | ||
<div id="ag_menu"> | ||
<div id="ag_button"> | ||
|
||
</div> | ||
</div> | ||
<div id="ag_feedback" style="position: relative; height: 10%;"> | ||
GIANT TEXT HERE | ||
</div> | ||
</body> | ||
|
||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,4 @@ | |
</div> | ||
|
||
</body> | ||
</html> | ||
</html> |