diff --git a/lab-01/.DS_Store b/lab-01/.DS_Store new file mode 100644 index 0000000..e923e1f Binary files /dev/null and b/lab-01/.DS_Store differ diff --git a/lab-01/Benito Mussolini.docx b/lab-01/Benito Mussolini.docx new file mode 100644 index 0000000..2baae92 Binary files /dev/null and b/lab-01/Benito Mussolini.docx differ diff --git a/lab-01/MD201-01 b/lab-01/MD201-01 new file mode 160000 index 0000000..5f3dbd6 --- /dev/null +++ b/lab-01/MD201-01 @@ -0,0 +1 @@ +Subproject commit 5f3dbd6c63ed7fd7d22ecf14c78027f05c53e266 diff --git a/lab-01/backgroundInformation.gs b/lab-01/backgroundInformation.gs new file mode 100644 index 0000000..e69de29 diff --git a/lab-01/backgroundInformation.html b/lab-01/backgroundInformation.html new file mode 100644 index 0000000..b8b70a8 --- /dev/null +++ b/lab-01/backgroundInformation.html @@ -0,0 +1,15 @@ + + + + + + Page Title + + + + + + + + + \ No newline at end of file diff --git a/lab-01/backgroundInformation.js b/lab-01/backgroundInformation.js new file mode 100644 index 0000000..8c292b0 --- /dev/null +++ b/lab-01/backgroundInformation.js @@ -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(); \ No newline at end of file diff --git a/lab-01/index 2.html b/lab-01/index 2.html new file mode 100644 index 0000000..e69de29 diff --git a/lab-01/index.html b/lab-01/index.html new file mode 100644 index 0000000..8f80cc3 --- /dev/null +++ b/lab-01/index.html @@ -0,0 +1,90 @@ + + + + + + Page Title + + + + + + +

Which Famous Dictator Am I?

+ +

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.

+ +

firstName

+ +

age

+ +

Top five of favorite movies:

+ +
    +
  1. Fight Club
  2. +
  3. In the mood for love
  4. +
  5. Amour
  6. +
  7. Beyond the hills
  8. +
  9. Hunger
  10. +
+ + + + + \ No newline at end of file diff --git a/lab-01/main 2.css b/lab-01/main 2.css new file mode 100644 index 0000000..e69de29 diff --git a/lab-01/main 2.js b/lab-01/main 2.js new file mode 100644 index 0000000..e69de29 diff --git a/lab-01/main.css b/lab-01/main.css new file mode 100644 index 0000000..e69de29 diff --git a/lab-01/main.js b/lab-01/main.js new file mode 100644 index 0000000..f559841 --- /dev/null +++ b/lab-01/main.js @@ -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 + "! ")