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
1 change: 0 additions & 1 deletion solutions/01_hello_html/hello.html

This file was deleted.

9 changes: 9 additions & 0 deletions solutions/Html_Css/01_hello_html/hello.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>Hello World</title>
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!

</head>
<body>
<h1>Hello, World!</h1>
</body>
</html>
11 changes: 11 additions & 0 deletions solutions/Html_Css/02_headBody_html/headBody.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>
19 changes: 19 additions & 0 deletions solutions/Html_Css/03_img_html/img.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>
16 changes: 16 additions & 0 deletions solutions/Html_Css/04_div_html/div.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>
12 changes: 12 additions & 0 deletions solutions/Html_Css/05_My_First_Website/index.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>
12 changes: 12 additions & 0 deletions solutions/Html_Css/05_My_First_Website/page1.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>
12 changes: 12 additions & 0 deletions solutions/Html_Css/05_My_First_Website/page2.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>
12 changes: 12 additions & 0 deletions solutions/Html_Css/05_My_First_Website/page3.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>
3 changes: 3 additions & 0 deletions solutions/Html_Css/05_My_First_Website/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
p{
text-align: center;
}
17 changes: 17 additions & 0 deletions solutions/Html_Css/06_My_Site/index.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>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>
17 changes: 17 additions & 0 deletions solutions/Html_Css/06_My_Site/page1.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>
17 changes: 17 additions & 0 deletions solutions/Html_Css/06_My_Site/page2.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>
17 changes: 17 additions & 0 deletions solutions/Html_Css/06_My_Site/page3.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!!");
}
}
9 changes: 9 additions & 0 deletions solutions/Javascript_Conditionals/02_ice_cream/icecream.js
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?");
}
}
11 changes: 11 additions & 0 deletions solutions/Javascript_Conditionals/03_class/class.js
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");
}
}
5 changes: 5 additions & 0 deletions solutions/Javascript_Conditionals/04_grade/grade.js
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>
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.

I'd suggest putting your script tags in the head section of the html document (only in rare cases it'd be wiser to put in the body, but not this one -- ask me for more info if you're curious 😉 )

</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 + "!");
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.

great!

3 changes: 3 additions & 0 deletions solutions/Javascript_Variables_and_Strings/03_Age/age.js
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.");
9 changes: 9 additions & 0 deletions solutions/Javascript_Variables_and_Strings/03_Age/index.html
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>
4 changes: 4 additions & 0 deletions solutions/Javascript_Variables_and_Strings/05_avg/avg.js
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);
9 changes: 9 additions & 0 deletions solutions/Javascript_Variables_and_Strings/05_avg/index.html
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);
5 changes: 5 additions & 0 deletions solutions/Javascript_Variables_and_Strings/09b_nose/nose.js
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>
47 changes: 47 additions & 0 deletions solutions/Javascript_Variables_and_Strings/10_Roman/roman.js
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";
}
}
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.

you're in the right direction, keep it going!

console.log(convertedNum);
};