Skip to content

Commit

Permalink
Merged in Kunal's changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
zentner-kyle committed Nov 6, 2013
2 parents a27014d + 2e505d0 commit 6cf45cc
Show file tree
Hide file tree
Showing 32 changed files with 9,845 additions and 23 deletions.
459 changes: 459 additions & 0 deletions bootstrap/css/bootstrap-theme.css

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions bootstrap/css/bootstrap-theme.min.css

Large diffs are not rendered by default.

7,059 changes: 7,059 additions & 0 deletions bootstrap/css/bootstrap.css

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions bootstrap/css/bootstrap.min.css

Large diffs are not rendered by default.

Binary file added bootstrap/fonts/glyphicons-halflings-regular.eot
Binary file not shown.
229 changes: 229 additions & 0 deletions bootstrap/fonts/glyphicons-halflings-regular.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bootstrap/fonts/glyphicons-halflings-regular.ttf
Binary file not shown.
Binary file added bootstrap/fonts/glyphicons-halflings-regular.woff
Binary file not shown.
2,002 changes: 2,002 additions & 0 deletions bootstrap/js/bootstrap.js

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions bootstrap/js/bootstrap.min.js

Large diffs are not rendered by default.

Binary file added images/TreeOfLife.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bjc200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image00.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image01.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image09.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image10.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image14.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image16.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 33 additions & 14 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,33 +1,52 @@
<html lang="en">
<head>
<html>
<meta charset="utf-8"></meta>
<title>Oh Snap!</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800,300' rel='stylesheet' type='text/css'>

<head>
<title>Snap: Hour of Code</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800,300' rel='stylesheet' type='text/css'>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<link href='bootstrap/css/bootstrap.min.css' rel="stylesheet" type='text/css'>
<script src="bootstrap/js/bootstrap.min.js"></script>

<script src='runme.js'></script>
</head>
<body>

<div id="top">
<div id="top">
<a id='bjclogo' href='http://bjc.berkeley.edu' target='_blank'><img style='float:left; width:120px; padding-top: 25px; padding-left:30px' src="images/bjc200.png"></a>
<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>
</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>

<h1>Snap yo fingers</h1>

</div>



<br>
<div id="left">

<div id="page1" class="lab_page">

<h2> Part 1 </h2>
<h2>Part 1</h2>

<img src="images/image12.png">

<p>
Have you wondered how animators create scenes like the ones above?
Well, its no surprise that converting this art to animation takes lots and lots of programming skill that is developed over time through countless trials and iterations.
Lets see if we can break down this scene into smaller components and try our hand at building some graphics.
Well, it's no surprise that converting this art to animation takes lots and lots of programming skill that is developed over time through countless trials and iterations.
Let's see if we can break down this scene into smaller components and try our hand at building some graphics.
</p>

<p>
Lets focus specifically on the tree.If you look closely at the picture, the tree itself is made up of a pattern of similar strokes. In this hour of code, we will teach you how to break down these patterns to have you code a tree of you own. You will be equipped with the basic framework, earning a technique from animators toolbox.
Let's focus specifically on the tree.If you look closely at the picture, the tree itself is made up of a pattern of similar strokes. In this hour of code, we will teach you how to break down these patterns to have you code a tree of you own. You will be equipped with the basic framework, earning a technique from animators' toolbox.
</p>

<p>
Expand All @@ -41,9 +60,9 @@ <h2> Part 1 </h2>

</div>
<div id="right">

<iframe width=100% height=80% src="snap.html"></iframe>

<div id='iframes'>
<iframe id='snap' width=100% height=100% src="snap.html"></iframe>
</div>
</div>
</body>
</html>
14 changes: 14 additions & 0 deletions runme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
$(document).ready(function() {


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

});




function load(user, proj) {
document.getElementById('snap').src = 'http://snap.berkeley.edu/snapsource/snap.html#present:Username=' + user + '&ProjectName=' + proj;
$('#iframes').html($('#iframes').children().clone());
}
31 changes: 22 additions & 9 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,35 +1,48 @@
html, body {
html {
height: 100%;
overflow: hidden;
background-color:rgb(0, 173, 188);

}

body {
height: 100%;
width: 100%;
margin-left: 0px;
overflow: hidden;
font-family: 'Open Sans', sans-serif;
background-color:rgb(255, 255, 255);

}

#top {
width: 100%;
text-align: center;
background-color:rgb(0, 173, 188);
height: 150px;
}


#left {
width: 30%;
height: 80%;
width: 20%;
overflow: auto;
overflow: scroll;
float: left;
border-top: 2px gray solid;
margin-bottom: 50px;
}

#right {
width: 80%;
float: right;
height: 700px;
overflow: hidden;
}

#snap {

}


img {
width: 100%;
}

.lab_page {
padding: 10px;
}
}

0 comments on commit 6cf45cc

Please sign in to comment.