Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 18 additions & 21 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
# Scavenger Hunt - Instructions
,-----.,--. ,--. ,---. ,--.,------. ,------.
' .--./| | ,---. ,--.,--. ,-| || o \ | || .-. \ | .---'
| | | || .-. || || |' .-. |`..' | | || | \ :| `--,
' '--'\| |' '-' '' '' '\ `-' | .' / | || '--' /| `---.
`-----'`--' `---' `----' `---' `--' `--'`-------' `------'
-----------------------------------------------------------------

1. Fork this repository on GitHub
2. Clone it to your Cloud9 VM:

```Bash
$ git clone <your repo's address>
```
Hi there! Welcome to Cloud9 IDE!

3. Solve
[clues](https://github.com/ScriptEdcurriculum/curriculum2015/blob/master/unitsYear2/1-JShunt/clues/README.md)
and save under `solutions` directory (separate directory for each clue)
4. Commit your changes:
To get you started, we included a small hello world application.

```Bash
$ git add . # to stage all your changes
$ git commit -am 'commit message here' # to commit
```
1) Open the hello-world.html file

4. Push to your repository on GitHub:
2) Click on the Preview button to open a live preview pane

```Bash
$ git push origin master
```
3) Make some changes to the file, save, watch the preview, and have fun!

5. Open a Pull Request (PR) to the original fork (TpTScriptEd's)
6. Submit a link to your PR
[here](https://docs.google.com/forms/d/1KbaHfDjgmVDn1446ow7tUjssfNKlrqC9RBnTznNqZgE/viewform)
Happy coding!
The Cloud9 IDE team


## Support & Documentation

Visit http://docs.c9.io for documentation, or http://support.c9.io for support.
To watch some training videos, visit http://www.youtube.com/user/c9ide
62 changes: 62 additions & 0 deletions hello-world.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!DOCTYPE html>
<!-- HTML5 Hello world by kirupa - http://www.kirupa.com/html5/getting_your_feet_wet_html5_pg1.htm -->
<html lang="en-us">

<head>
<meta charset="utf-8">
<title>Hello...</title>
<style type="text/css">
#mainContent {
font-family: Arial, Helvetica, sans-serif;
font-size: xx-large;
font-weight: bold;
background-color: #E3F0FB;
border-radius: 4px;
padding: 10px;
text-align: center;
}
.buttonStyle {
border-radius: 4px;
border: thin solid #F0E020;
padding: 5px;
background-color: #F8F094;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
font-weight: bold;
color: #663300;
width: 75px;
}

.buttonStyle:hover {
border: thin solid #FFCC00;
background-color: #FCF9D6;
color: #996633;
cursor: pointer;
}
.buttonStyle:active {
border: thin solid #99CC00;
background-color: #F5FFD2;
color: #669900;
cursor: pointer;
}

</style>
</head>

<body>
<div id="mainContent">
<p id="helloText">?</p>
<button id="clickButton" class="buttonStyle">click me</button>
</div>
<script>
var myButton = document.getElementById("clickButton");
var myText = document.getElementById("helloText");

myButton.addEventListener('click', doSomething, false)

function doSomething() {
myText.textContent = "hello, world!";
}
</script>

</body>
</html>
27 changes: 27 additions & 0 deletions roman.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@





function roman(num) {
var romans = {
M: 1000;
D: 500;
C: 100;
L: 50;
X: 10;
V: 5;
I: 1;
};

num = 26;
var str = '';
var dummy = Math.floor(num/10)
if(dummy > 0){
str += letter * dummy
num = num - 2 * 10
}



}
5 changes: 5 additions & 0 deletions scripted-scavengerhunt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@





11 changes: 11 additions & 0 deletions solutions/01_hello_html/headBody.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>

<title>Hello!</title>

<body>
<p>World!</p>

</body>

</html>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

13 changes: 13 additions & 0 deletions solutions/01_hello_html/hello-html.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont forget your <head> section

<body>

<p>
Hello,World
</p>

</body>

</html>


62 changes: 62 additions & 0 deletions solutions/01_hello_html/hello-world.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<!DOCTYPE html>
<!-- HTML5 Hello world by kirupa - http://www.kirupa.com/html5/getting_your_feet_wet_html5_pg1.htm -->
<html lang="en-us">

<head>
<meta charset="utf-8">
<title>Hello...</title>
<style type="text/css">
#mainContent {
font-family: Arial, Helvetica, sans-serif;
font-size: xx-large;
font-weight: bold;
background-color: #E3F0FB;
border-radius: 4px;
padding: 10px;
text-align: center;
}
.buttonStyle {
border-radius: 4px;
border: thin solid #F0E020;
padding: 5px;
background-color: #F8F094;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
font-weight: bold;
color: #663300;
width: 75px;
}

.buttonStyle:hover {
border: thin solid #FFCC00;
background-color: #FCF9D6;
color: #996633;
cursor: pointer;
}
.buttonStyle:active {
border: thin solid #99CC00;
background-color: #F5FFD2;
color: #669900;
cursor: pointer;
}

</style>
</head>

<body>
<div id="mainContent">
<p id="helloText">?</p>
<button id="clickButton" class="buttonStyle">click me</button>
</div>
<script>
var myButton = document.getElementById("clickButton");
var myText = document.getElementById("helloText");

myButton.addEventListener('click', doSomething, false)

function doSomething() {
myText.textContent = "hello, world!";
}
</script>

</body>
</html>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to remove all those extra files cloud9 initially generated.

13 changes: 13 additions & 0 deletions solutions/01_hello_html/img.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<body>

<img src = "http://weknowyourdreams.com/image.php?pic=/images/dog/dog-07.jpg">
<p>It's a dawg</p>

<img src = "http://bebusinessed.com/wp-content/uploads/2014/03/734899052_13956580111.jpg">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice! just make sure src="..." doesnt have extra spaces before/after the equals (=) sign

<p>It's another dawg</p>

</body>

</html>