Skip to content

Commit

Permalink
Syncing fork
Browse files Browse the repository at this point in the history
  • Loading branch information
thuangy committed Jun 8, 2015
1 parent b644d39 commit 77793b1
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 1 deletion.
Binary file removed .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@

#DS_Store
.DS_Store

.DS_Store
3 changes: 3 additions & 0 deletions AG-snap.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#ag_feedback {
background-color: #CCFFCC;
}
52 changes: 52 additions & 0 deletions AG-snap.html
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>
2 changes: 1 addition & 1 deletion indexCustRep.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@
</div>

</body>
</html>
</html>

0 comments on commit 77793b1

Please sign in to comment.