Skip to content

Commit

Permalink
Tweaked page styles, changed projects to xml files.
Browse files Browse the repository at this point in the history
  • Loading branch information
zentner-kyle committed Nov 6, 2013
1 parent 6cf45cc commit e9243bd
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 11 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
<div style='float:left; padding-left: 30px; padding-top: 25px; font-size: 50px; color: white'>Hour of Code</div>

<div id='buttons' style='float:left; margin-top: 40px; margin-left: 100px; font-size: 30px' class='btn-group'>
<button onclick="load('marwahaha', 'tutorial1');" style='padding-left:20px; padding-right:20px; font-size: 30px' class='btn btn-default'>#1</button>
<button onclick="load('marwahaha', 'tutorial2');" style='padding-left:20px; padding-right:20px; font-size: 30px' class='btn btn-default'>#2</button>
<button onclick="load('Dan Garcia', 'Mole Mash');" style='padding-left:20px; padding-right:20px; font-size: 30px' class='btn btn-default'>#3</button>
<button onclick="load_project_xml('tutorial_01.xml');" style='padding-left:20px; padding-right:20px; font-size: 30px' class='btn btn-default'>#1</button>
<button onclick="load_project_xml('tutorial_02.xml');" style='padding-left:20px; padding-right:20px; font-size: 30px' class='btn btn-default'>#2</button>
<button onclick="load_project_xml('molemash.xml');" style='padding-left:20px; padding-right:20px; font-size: 30px' class='btn btn-default'>#3</button>
</div>

<a href='http://code.org/congrats?i=' target='_blank'><div style='float:right; padding-right: 30px; padding-top: 20px; color: white'><button style='font-size: 30px;' class='btn btn-success'>I'm done!</button></div></a>
Expand Down Expand Up @@ -61,7 +61,7 @@ <h2>Part 1</h2>
</div>
<div id="right">
<div id='iframes'>
<iframe id='snap' width=100% height=100% src="snap.html"></iframe>
<iframe id='snap' width=100% height=90% src="snap.html"></iframe>
</div>
</div>
</body>
Expand Down
1 change: 1 addition & 0 deletions molemash.xml

Large diffs are not rendered by default.

13 changes: 9 additions & 4 deletions runme.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
$(document).ready(function() {

var snap_url = "http://snap.berkeley.edu/snapsource/snap.html";
//var snap_url = "snap.html";

load('Dan Garcia', 'Mole Mash');

});
$(document).ready(function() {


//load('Dan Garcia', 'Mole Mash');
});

function load_project_xml(uri) {
document.getElementById('snap').contentWindow.load_project_xml(uri);
}

function load(user, proj) {
document.getElementById('snap').src = 'http://snap.berkeley.edu/snapsource/snap.html#present:Username=' + user + '&ProjectName=' + proj;
document.getElementById('snap').src = snap_url + '#present:Username=' + user + '&ProjectName=' + proj;
$('#iframes').html($('#iframes').children().clone());
}
19 changes: 18 additions & 1 deletion snap.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,27 @@
<script type="text/javascript" src="sha512.js"></script>
<script type="text/javascript">
var world;
var ide;

function load_project_xml(uri) {
var request = new XMLHttpRequest ();
request.onload = function () {
console.log('ide =', ide);
console.log('window.ide =', window.ide);
window.ide.droppedText(this.responseText);
};
request.open("get", uri, true);
request.send();
}

window.load_project_xml = load_project_xml;

window.onload = function () {
world = new WorldMorph(document.getElementById('world'));
new IDE_Morph().openIn(world);
ide = new IDE_Morph();
ide.openIn(world);
setInterval(loop, 1);
load_project_xml("molemash.xml");
};
function loop() {
world.doOneCycle();
Expand Down
4 changes: 2 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ body {
#left {
width: 30%;
height: 80%;
overflow: scroll;
overflow: auto;
float: left;
margin-bottom: 50px;
}

#right {
height: 700px;
height: 90%;
overflow: hidden;
}

Expand Down
1 change: 1 addition & 0 deletions tutorial_01.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<project name="tutorial1" app="Snap! 4.0, http://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAKe0lEQVR4Xu2dC0xUVx7GP4aB4SVgFWyXZZGo6GrRqKsutaaIiWa7K6xJWRNdDfXVEAMhaxNJt3ZForW6Whdc0ehuiQ+IaWN0sxY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J+791Ftb+wZc7SeO9CUCNT5A9e+2dfegfGERXTz86uwfAkHzWaUWz9Auabc+sqLzfjsfP+tDc2oOKunZY+wakvgNgT9jv6h1Ad28/eqSjFmAmAHUIoCct28Lc3Tsog93e1YeHbT14+LhXhrm9sx/1D7vxfUOHDL0tzL3WoX+7CjMB6MnZNPhYDGa2GndIANvC/FhalZuk1bmi7pm0Cg/KT/eq+6ELQRYTSv+ir2dDD0/x/wCA5/fVB6t+jgAAAABJRU5ErkJggg==</thumbnail><stage name="Stage" costume="0" tempo="60" threadsafe="false" codify="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAOhUlEQVR4Xu3VwQkAAAjEMN1/abewn7jAQRC64wgQIECAAIF3gX1fNEiAAAECBAiMAHsCAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAEC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cIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQIHLFxAWmhEwHPAAAAAElFTkSuQmCC</pentrails><costumes><list id="2"></list></costumes><sounds><list id="3"></list></sounds><variables></variables><blocks></blocks><scripts></scripts><sprites><sprite name="Speaker" idx="2" x="-170" y="69" heading="90" scale="1" rotation="1" draggable="true" costume="0" color="80,80,80" pen="tip" id="8"><costumes><list id="9"></list></costumes><sounds><list id="10"></list></sounds><variables></variables><blocks></blocks><scripts><script x="25" y="29"><block s="receiveKey"><l><option>space</option></l></block><block s="doBroadcast"><l>reset the pink sprite</l></block><block s="doSayFor"><l>Welcome to Snap! We&apos;re so glad you&apos;re here. Here&apos;s a tutorial!</l><l>2</l></block><block s="doSayFor"><l>Can you get the pink sprite to the square?</l><l>2</l></block><block s="doThinkFor"><l>Hmm...Use the blocks.</l><l>8</l></block><block s="doThink"><l>Click the block with the green flag to run your code. </l></block></script></scripts></sprite><sprite name="Pink" idx="1" x="-150" y="-100" heading="90" scale="1" rotation="1" draggable="true" costume="0" color="247.35,0,222.6150000000001" pen="tip" id="29"><costumes><list id="30"></list></costumes><sounds><list id="31"></list></sounds><variables></variables><blocks><block-definition s="Drag your code below this block." type="command" category="control"><header></header><code></code><inputs></inputs><script><block s="doBroadcast"><l>done!</l></block></script></block-definition></blocks><scripts><script x="198" y="22"><block s="receiveGo"></block><custom-block s="Drag your code below this block." scope="Pink"></custom-block></script><script x="241.99999999999977" y="394.9999999999999"><block s="receiveMessage"><l>reset the pink sprite</l></block><block s="setHeading"><l>90</l></block><block s="doGlide"><l>1</l><l>-150</l><l>-100</l></block></script><script x="25" y="174"><block s="turnLeft"><l>90</l></block></script><script x="28" y="125"><block s="forward"><l>100</l></block></script><script x="28" y="67"><block s="turn"><l>90</l></block></script></scripts></sprite><sprite name="Wall" idx="3" x="33.00000000000023" y="19" heading="277" scale="1" rotation="1" draggable="true" costume="1" color="0,181.04999999999998,115.87200000000001" pen="tip" id="55"><costumes><list id="56"><item><costume name="Untitled" center-x="113" center-y="-6" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAABrCAYAAABtwUKXAAAA0ElEQVRoQ+2YQQ6AIAwE8WX6M/Fn+DNL1MQocWtQDmZMuLVUhm0pdCGEaKO38cU3d1uA8YvZbc6peYDJoqbK1QzmvxO5rCAHyHtS82V/AtwSBJEUGIhARC1aCVBNqaayGoAIRJQKoQGqqUwSEIGIxovGS2YBiEDEe1HWwPHIjOdHwbcREaCYduyBrEYgAhGdHW2LzIK/IeLI5Mh0iL5g8q/HEPKAPKjPA1SEilCR9Ujc9Esy4JYpk+MWUZLuPoNhM7vI1Ofut2oTYF+O/78eWC66D2iQytAjsAAAAABJRU5ErkJggg==" id="57"/></item><item><ref id="57"></ref></item></list></costumes><sounds><list id="58"></list></sounds><variables></variables><blocks></blocks><scripts><script x="179.000001" y="236.83333433333337"><block s="doIf"><block s="reportTouchingObject"><l>Pink</l></block><script><block s="doBroadcast"><l>reset the pink sprite</l></block><block s="doSayFor"><l>Oops! Try to turn around the wall.</l><l>2</l></block></script></block></script></scripts></sprite><sprite name="Square" idx="4" x="40" y="-105.99999999999994" heading="93" scale="1" rotation="1" draggable="true" costume="1" color="0,232.05,232.05" pen="tip" id="73"><costumes><list id="74"><item><costume name="Untitled" center-x="94" center-y="90" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJ8AAACgCAYAAAASN76YAAAC3klEQVR4Xu3SQQ2AQBAEwT1d8MApIhCANAgq+kGNgUk6tWY/jzEFggJrtusJfl0qMPBBkBWAL0vvGD4GsgLwZekdw8dAVgC+LL1j+BjICsCXpXcMHwNZAfiy9I7hYyArAF+W3jF8DGQF4MvSO4aPgawAfFl6x/AxkBWAL0vvGD4GsgLwZekdw8dAVgC+LL1j+BjICsCXpXcMHwNZAfiy9I7hYyArAF+W3jF8DGQF4MvSO4aPgawAfFl6x/AxkBWAL0vvGD4GsgLwZekdw8dAVgC+LL1j+BjICsCXpXcMHwNZAfiy9I7hYyArAF+W3jF8DGQF4MvSO4aPgawAfFl6x/AxkBWAL0vvGD4GsgLwZekdw8dAVgC+LL1j+BjICsCXpXcMHwNZAfiy9I7hYyArAF+W3jF8DGQF4MvSO4aPgawAfFl6x/AxkBWAL0vvGD4GsgLwZekdw8dAVgC+LL1j+BjICsCXpXcMHwNZAfiy9I7hYyArAF+W3jF8DGQF4MvSO4aPgawAfFl6x/AxkBWAL0vvGD4GsgLwZekdw8dAVgC+LL1j+BjICsCXpXcMHwNZAfiy9I7hYyArAF+W3jF8DGQF4MvSO4aPgawAfFl6x/AxkBWAL0vvGD4GsgLwZekdw8dAVgC+LL1j+BjICsCXpXcMHwNZAfiy9I7hYyArAF+W3jF8DGQF4MvSO4aPgawAfFl6x/AxkBWAL0vvGD4GsgLwZekdw8dAVgC+LL1j+BjICsCXpXcMHwNZAfiy9I7hYyArAF+W3jF8DGQF4MvSO4aPgawAfFl6x/AxkBWAL0vvGD4GsgLwZekdw8dAVgC+LL1j+BjICsCXpXcMHwNZAfiy9I7hYyArAF+W3jF8DGQF4MvSO4aPgawAfFl6x/AxkBWAL0vvGD4GsgLwZekdw8dAVgC+LL1j+BjICsCXpXcMHwNZAfiy9I7hYyArAF+W3jF8DGQFPnx39u741wVeCA0zvnJAOu8AAAAASUVORK5CYII=" id="75"/></item><item><ref id="75"></ref></item></list></costumes><sounds><list id="76"></list></sounds><variables></variables><blocks></blocks><scripts><script x="28" y="41"><block s="receiveMessage"><l>done!</l></block><block s="doIfElse"><block s="reportTouchingObject"><l>Pink</l></block><script><block s="doSayFor"><l>Congrats! You did it!</l><l>1.5</l></block><block s="doSayFor"><l>Ready for the next lesson?</l><l>2</l></block></script><script><block s="doSayFor"><l>Oops! Try again.</l><l>2</l></block><block s="doBroadcast"><l>reset the pink sprite</l></block></script></block></script></scripts></sprite></sprites></stage><hidden></hidden><headers></headers><code></code><blocks></blocks><variables></variables></project>
Loading

0 comments on commit e9243bd

Please sign in to comment.