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
Binary file added lab-01/.DS_Store
Binary file not shown.
Binary file added lab-01/Benito Mussolini.docx
Binary file not shown.
1 change: 1 addition & 0 deletions lab-01/MD201-01
Submodule MD201-01 added at 5f3dbd
Empty file added lab-01/backgroundInformation.gs
Empty file.
15 changes: 15 additions & 0 deletions lab-01/backgroundInformation.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
<script src="main.js"></script>
</head>
<body>
<p id="here-link">Click <ins><strong><a href ="backgroundInformation.html">here</a></strong></ins> to start</p>

</body>
</html>
12 changes: 12 additions & 0 deletions lab-01/backgroundInformation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
let backgroundInformation = function(){
let placeOfBirth = prompt("Where is your place of birth?", "Country");
let college = prompt("Which college did you attend?");
let fieldOfStudy = prompt("What is your field of study?");
let profession = prompt("What is your profession?");

console.log(placeOfBirth)
console.log(college)
console.log(fieldOfStudy)
console.log(profession)
}
backgroundInformation();
Empty file added lab-01/index 2.html
Empty file.
90 changes: 90 additions & 0 deletions lab-01/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<style type="text/css">
body{
background-color: rgb(0, 0, 0);
}
#Famous-Dictator {
background-color: rgb(184, 69, 69)
}
h1 {
font-family: arial ;
font-size: 40px;
font-weight: bold;
text-align: center;
color:rgb(236, 235, 235)
}



body {
background-color: rgb(233, 231, 231)

}

p{
text-align: center;
font-size: 30px;
}
#Name-of-the-candidate {
font-size: 30px;
text-align: center;
}

#Age-of-the-candidate {
font-size: 30px;
text-align: center;
}

h2 {
font-family: arial ;
font-size: 30px;
font-weight: bold;
text-align: left;
}


ol{
text-align: left;
font-size: 30px;
}


li{
text-align: left;
font-size: 30px;
}

</style>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />

</head>
<body>
<h1 id = "Famous-Dictator">Which Famous Dictator Am I?</h1>

<p>This game allows you to find out which famous dictator had the same character traits<br />
as you. The bad guy you would had been if you were born in the same historical context.</p>

<p id="Name-of-the-candidate">firstName</p>

<p id = "Age-of-the-candidate">age</p>

<h2>Top five of favorite movies: </h2>

<ol>
<li>Fight Club</li>
<li>In the mood for love</li>
<li>Amour</li>
<li>Beyond the hills</li>
<li>Hunger</li>
</ol>


</body>
<script src="main.js"></script>
</html>
Empty file added lab-01/main 2.css
Empty file.
Empty file added lab-01/main 2.js
Empty file.
Empty file added lab-01/main.css
Empty file.
79 changes: 79 additions & 0 deletions lab-01/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@

let firstName = prompt("Enter your first name", "First Name");

let lastName = prompt("Enter your last name", "Last Name");

let sex = prompt("Enter your sex");
let mSex = "Male";
let fSex = "Female";

let age = prompt("Enter your age", "Year");


console.log(firstName);
console.log(lastName);
console.log(age);

if (sex === "Male"){
let nextStepMale = confirm("Welcome Mr. " + firstName);
console.log(nextStepMale);
} else {
let nextStepFemale = confirm("Welcome Ms. " + firstName);
console.log(nextStepFemale)
};

if(firstName){
document.getElementById('Name-of-the-candidate').innerText = "Welcome "+ firstName
}

if(age){
document.getElementById('Age-of-the-candidate').innerText = firstName + " was born in " + age
}

let game = confirm("Do you want to play a game?");

alert("Which Famous Dictator I am?");
console.log ("Which Famous Dictator I am");

alert("This game allows you to find out which famous dictator had the same character traits as you. The bad guy you would had been if you were born in the same historical context");

let backgroundInformation = function(){
let placeOfBirth = prompt("Where is your place of birth?", "Country");
let college = prompt("Which college did you attend?");
let fieldOfStudy = prompt("What is your field of study?");
let profession = prompt("What is your profession?");

console.log(placeOfBirth)
console.log(college)
console.log(fieldOfStudy)
console.log(profession)
}
backgroundInformation();

alert ("Congratulations, " + firstName + ", you successfully passed the first step of the game: 1/2")

let secondStep = confirm("Do you want to continue? ")
console.log (secondStep)

let characterTraits = function(){
let lovePeople = confirm("Do you love people? ")
let leader = confirm("Do you consider yourself to be a leader? ")
let analyticalThinker = confirm ("Are you an analytical thinker?")
let loveArt = confirm ("Do you love Art? ")

console.log (lovePeople)
console.log (leader)
console.log (analyticalThinker)
console.log (loveArt)

}

characterTraits();

if (characterTraits === true){
alert("You have the some character traits as these famous dictators: 'Hitler', 'Mussolini', 'Stalin', 'Mao', 'Pinochet'")
} else{
alert("You have the some character traits as these famous dictators: ''Hitler', 'Mussolini', 'Stalin', 'Hussein', 'Mao', 'Pinochet'")
}

alert ("Thank you, " + firstName + "! ")