-
Notifications
You must be signed in to change notification settings - Fork 20
Started #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Started #12
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title>Hello World</title> | ||
| </head> | ||
| <body> | ||
| <h1>Hello, World!</h1> | ||
| </body> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title> | ||
| Hello! | ||
| </title> | ||
| </head> | ||
| <body> | ||
| World! | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title> | ||
| Images | ||
| </title> | ||
| <style> | ||
| img{ | ||
| width: 100%; | ||
| } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <img src="https://camo.githubusercontent.com/db124ea01655e46acfcd2d07a7ea244f653e4532/687474703a2f2f692e696d6775722e636f6d2f375065634b49392e706e67"/> | ||
| <p>This is a map!</p> | ||
| <img src="http://4vector.com/i/free-vector-treasure-chest_133367_Treasure_chest.jpg"/> | ||
| <p>Yea! I found the treasure!</p> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title> | ||
| Im a div! | ||
| </title> | ||
| </head> | ||
| <body> | ||
| <div class="image"> | ||
| <img src="https://camo.githubusercontent.com/db124ea01655e46acfcd2d07a7ea244f653e4532/687474703a2f2f692e696d6775722e636f6d2f375065634b49392e706e67"/> | ||
| </div> | ||
| <div id="text"> | ||
| <p>This is a treasure map!</p> | ||
| </div> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title> | ||
| Jovan's First Website - Home | ||
| </title> | ||
| <link rel="stylesheet" href="style.css"> | ||
| </head> | ||
| <body> | ||
| <p>This is the index!</p> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title> | ||
| Jovan's First Website - Page 1 | ||
| </title> | ||
| <link rel="stylesheet" href="style.css"> | ||
| </head> | ||
| <body> | ||
| <p>This is the first page!</p> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title> | ||
| Jovan's First Website - Page 2 | ||
| </title> | ||
| <link rel="stylesheet" href="style.css"> | ||
| </head> | ||
| <body> | ||
| <p>This is the second page!</p> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title> | ||
| Jovan's First Website - Page 3 | ||
| </title> | ||
| <link rel="stylesheet" href="style.css"> | ||
| </head> | ||
| <body> | ||
| This is the third page! | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| p{ | ||
| text-align: center; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title> | ||
| Jovan's Site | ||
| </title> | ||
| </head> | ||
| <body> | ||
| <img src="https://cdn3.iconfinder.com/data/icons/business-pack-3/512/12-512.png"/> | ||
| <p>Hello, World!</p> | ||
| <ul> | ||
| <li><a href="page1.html">Page 1</a></li> | ||
| <li><a href="page2.html">Page 2</a></li> | ||
| <li><a href="page3.html">Page 3</a></li> | ||
| </ul> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title> | ||
| Jovan's Site | ||
| </title> | ||
| </head> | ||
| <body> | ||
| <img src="https://cdn3.iconfinder.com/data/icons/business-pack-3/512/12-512.png"/> | ||
| <p>Page 1</p> | ||
| <ul> | ||
| <li><a href="index.html">index</a></li> | ||
| <li><a href="page2.html">Page 2</a></li> | ||
| <li><a href="page3.html">Page 3</a></li> | ||
| </ul> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title> | ||
| Jovan's Site | ||
| </title> | ||
| </head> | ||
| <body> | ||
| <img src="https://cdn3.iconfinder.com/data/icons/business-pack-3/512/12-512.png"/> | ||
| <p>Page 2</p> | ||
| <ul> | ||
| <li><a href="index.html">index</a></li> | ||
| <li><a href="page1.html">Page 1</a></li> | ||
| <li><a href="page3.html">Page 3</a></li> | ||
| </ul> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title> | ||
| Jovan's Site | ||
| </title> | ||
| </head> | ||
| <body> | ||
| <img src="https://cdn3.iconfinder.com/data/icons/business-pack-3/512/12-512.png"/> | ||
| <p>Page 3</p> | ||
| <ul> | ||
| <li><a href="index.html">Index</a></li> | ||
| <li><a href="page1.html">Page 1</a></li> | ||
| <li><a href="page2.html">Page 2</a></li> | ||
| </ul> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| function scriptEdLove(love){ | ||
| if(love){ | ||
| console.log("YAY!"); | ||
| } else { | ||
| console.log("BOO!!"); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| function icecream(favorite){ | ||
| if(favorite == "chocolate"){ | ||
| console.log("Boo! Chocolate") | ||
| } else if(favorite == "vanilla"){ | ||
| console.log("YAY! Vanilla"); | ||
| } else { | ||
| console.log("Huh?"); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| function Grade(grade){ | ||
| if(grade == 9){ | ||
| console.log("You are a Freshman!"); | ||
| } else if(grade == 10){ | ||
| console.log("You are a Sophomore!"); | ||
| } else if(grade == 11){ | ||
| console.log("You are a Junior!"); | ||
| } else if(grade == 12){ | ||
| console.log("You are a Senior"); | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| function grade(grade){ | ||
| if(grade >= 100 && grade >= 90){ | ||
|
|
||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title></title> | ||
| </head> | ||
| <body> | ||
| <script src="hello.js"></script> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| console.log("Hello, World!"); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title></title> | ||
| </head> | ||
| <body> | ||
| <script src="helloName.js"></script> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd suggest putting your script tags in the |
||
| </body> | ||
| </html> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| var name = prompt("Hello. What is your name!"); | ||
| console.log("Hello, " + name + "!"); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. great! |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| var name = prompt("Hello, what is your name?"); | ||
| var age = prompt("Hello " + name +", how old are you?"); | ||
| alert(name + ", you are " + age + " years old."); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title></title> | ||
| </head> | ||
| <body> | ||
| <script src="age.js"></script> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| var teachName = prompt("Hey Teach, What is your name?"); | ||
| var teachAge = prompt(teachName + " how old are you?"); | ||
| var teachName2 = prompt("Hey Teach #2, What is your name?"); | ||
| var teachAge2 = prompt("Hey " + teachName2 + ", how old are you?"); | ||
| var teachName3 = prompt("Hey Teach #3, What's cha name"); | ||
| var teachAge3 = prompt("Hey " + teachName + ", how old are you?"); | ||
|
|
||
| alert("Correct me if I got this wrong, but..."); | ||
| alert(teachName + " is " + teachAge + " years old!"); | ||
| alert(teachName2 + " is " + teachAge2 + " years old!"); | ||
| alert(teachName3 + " is " + teachAge3 + " years old!"); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title></title> | ||
| </head> | ||
| <body> | ||
| <script src="hello3ages.js"></script> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| function avg(num1, num2){ | ||
| console.log((num1 + num2)/2); | ||
| } | ||
| avg(5,10); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title></title> | ||
| </head> | ||
| <body> | ||
| <script src="avg.js"></script> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| var msPotato = "I'm packing your angry eyes!"; | ||
| console.log(msPotato); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| function nose(str){ | ||
| var newStr = str.replace("shoes", "nose"); | ||
| console.log(newStr); | ||
| } | ||
| nose("Hello everyone, look at my new shoes"); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title></title> | ||
| </head> | ||
| <body> | ||
| <script src="roman.js"></script> | ||
| </body> | ||
| </html> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| function convert(num){ | ||
| //I = 1, V = 5, X = 10, L = 50, C = 100, D = 500, M = 1,000 | ||
| var convertedNum = ""; | ||
| while(num > 0){ | ||
| if(num >= 1000){ | ||
| num -= 1000; | ||
| convertedNum += "M"; | ||
| } else if(num == 999){ | ||
| num -= 999; | ||
| convertedNum += "CMXCIX"; | ||
| }else if(num >= 500){ | ||
| num -= 500; | ||
| convertedNum += "D"; | ||
| } else if( num == 499){ | ||
| num -= 499; | ||
| convertedNum += "CDXCIX"; | ||
| }else if(num >= 100){ | ||
| num -= 100; | ||
| convertedNum += "C"; | ||
| } else if(num == 99){ | ||
| num -= 99; | ||
| convertedNum += "XCIX"; | ||
| }else if(num >= 50){ | ||
| num -= 50; | ||
| convertedNum += "L"; | ||
| } else if(num == 49){ | ||
| num -= 49; | ||
| convertedNum += "XLIX"; | ||
| }else if(num >= 10){ | ||
| num -= 10; | ||
| convertedNum += "X"; | ||
| } else if(num == 9){ | ||
| num -= 9; | ||
| convertedNum += "IX"; | ||
| } else if(num >= 5){ | ||
| num -= 5; | ||
| convertedNum += "V"; | ||
| } else if(num == 4){ | ||
| num -= 4; | ||
| convertedNum += "IV"; | ||
| }else if(num >= 1){ | ||
| num -= 1; | ||
| convertedNum += "I"; | ||
| } | ||
| } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you're in the right direction, keep it going! |
||
| console.log(convertedNum); | ||
| }; | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!