diff --git a/.markdownlint.json b/.markdownlint.json new file mode 100644 index 0000000..7eb9a29 --- /dev/null +++ b/.markdownlint.json @@ -0,0 +1,14 @@ +{ + "line-length": false, + "no-trailing-punctuation": false, + "no-inline-html": { + "allowed_elements": [ + "dl", + "dt", + "dd", + "summary", + "detail", + "img" + ] + } +} diff --git a/README.md b/README.md index e9263ed..9ba7ada 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 201-class-02 -# Class 201 Lab02 +## Class 201 Lab02 ### Author: Tim Maupin diff --git a/about.html b/about.html index deeaf9b..40066c6 100644 --- a/about.html +++ b/about.html @@ -1,44 +1,43 @@ - - - - + + + About Me - - - - - + + + + + - +
- +
-

Get to Know Me

-

- Hello, my name is Tim Maupin and welcome to my webpage! I graduated from Saint mary's College of California - with a bachelor's degree in Sociology. I have had a few jobs in my life from working with Red Bull in - college as a campus rep to being a woodshop worker. However, I spent the most of the last six yuears playing - professional rugby both in Ireland and here in the United States. I am hoping that with the knowledge and - understanding that I gain from this course I am able to gind a job that will be able to provide myself and - hopefully one day a family with a good standard of living. It would be a plus to find something that I - really enjoy in an industry, but I have already lived out my dream job so I can't really ask for more than - that. - - -

- +

Get to Know Me

+

+ Hello, my name is Tim Maupin and welcome to my webpage! I graduated from + Saint mary's College of California with a bachelor's degree in + Sociology. I have had a few jobs in my life from working with Red Bull + in college as a campus rep to being a woodshop worker. However, I spent + the most of the last six yuears playing professional rugby both in + Ireland and here in the United States. I am hoping that with the + knowledge and understanding that I gain from this course I am able to + gind a job that will be able to provide myself and hopefully one day a + family with a good standard of living. It would be a plus to find + something that I really enjoy in an industry, but I have already lived + out my dream job so I can't really ask for more than that. +

- - - - \ No newline at end of file + + diff --git a/css/style.css b/css/style.css index a3f19aa..66f1b92 100644 --- a/css/style.css +++ b/css/style.css @@ -5,4 +5,11 @@ body { font-size: 30px; } -h2{} \ No newline at end of file +h2 { + +} + + +#about-body { + background-color: aquamarine; +} \ No newline at end of file diff --git a/index.html b/index.html index 7e03239..e348795 100644 --- a/index.html +++ b/index.html @@ -1,31 +1,31 @@ - - - - + + + Class 2 - - - - - + + + + + - +
-

About me

- +

About me

+
- - + - - - \ No newline at end of file + + diff --git a/js/app.js b/js/app.js index 9f55ed9..7f8dfc4 100644 --- a/js/app.js +++ b/js/app.js @@ -1,14 +1,13 @@ 'use strict'; console.log('app file is connected!'); - +// method() let userName = prompt('What is your name?'); -console.log('user name is: ', userName); -let videoGames = prompt('Do I sometimes play video games in my free time? Please answer yes or no!'); -console.log('🚀 ~ file: app.js:16 ~ userAnswer:', videoGames); +let videoGames = prompt( + 'Do I sometimes play video games in my free time? Please answer yes or no!' +); let gamelowerCase = videoGames.toLowerCase(); -console.log('🚀 ~ file: app.js:20 ~ lowerCaseInput:', gamelowerCase); if (gamelowerCase === 'yes' || gamelowerCase === 'y') { alert('Your right! Video games help me relax!'); @@ -16,23 +15,23 @@ if (gamelowerCase === 'yes' || gamelowerCase === 'y') { alert('Wrong answer! I do play video games in my spare time'); } -let sportsAnswer = prompt('Did I play sports in College? Please answer yes or no!'); -console.log('🚀 ~ file: app.js:16 ~ userAnswer:', sportsAnswer); +let sportsAnswer = prompt( + 'Did I play sports in College? Please answer yes or no!' +); let sportlowerCase = sportsAnswer.toLowerCase(); -console.log('🚀 ~ file: app.js:20 ~ lowerCaseInput:', sportlowerCase); - +//if(conditions) if (sportlowerCase === 'yes' || sportlowerCase === 'y') { alert('Correct! Played Rugby at SMC!'); } else { alert('Incorrect! Sports was a vital part of my college experience'); } -let countryAnswer = prompt('Have I lived outside the U.S.A? Please answer yes or no!'); -console.log('🚀 ~ file: app.js:16 ~ userAnswer:', countryAnswer); +let countryAnswer = prompt( + 'Have I lived outside the U.S.A? Please answer yes or no!' +); let irelandlowerCase = countryAnswer.toLowerCase(); -console.log('🚀 ~ file: app.js:20 ~ lowerCaseInput:', irelandlowerCase); if (irelandlowerCase === 'yes' || irelandlowerCase === 'y') { alert('Your right! I lived in Ireland for 4 years!'); @@ -40,26 +39,31 @@ if (irelandlowerCase === 'yes' || irelandlowerCase === 'y') { alert('Sorry, you are wrong!'); } -let dessertAnswer = prompt('Is Cake my favorite dessert? Please answer yes or no!'); -console.log('🚀 ~ file: app.js:16 ~ userAnswer:', dessertAnswer); +let dessertAnswer = prompt( + 'Is Cake my favorite dessert? Please answer yes or no!' +); let dessertlowerCase = dessertAnswer.toLowerCase(); -console.log('🚀 ~ file: app.js:20 ~ lowerCaseInput:', dessertlowerCase); if (dessertlowerCase === 'yes' || dessertlowerCase === 'y') { alert('You are unfortunately Wrong! Cookies would be number 1!'); } else { - alert('Right answer! Homemade Cookies are my favorite, but cant is a close second!'); + alert( + 'Right answer! Homemade Cookies are my favorite, but cant is a close second!' + ); } -let favSports = prompt('Is Football my favorite Sport? Please answer yes or no!'); -console.log('🚀 ~ file: app.js:16 ~ userAnswer:', favSports); +let favSports = prompt( + 'Is Football my favorite Sport? Please answer yes or no!' +); let favlowerCase = favSports.toLowerCase(); -console.log('🚀 ~ file: app.js:20 ~ lowerCaseInput:', favlowerCase); if (favlowerCase === 'yes' || favlowerCase === 'y') { alert('Nope! That would be Rugby, I played it!'); } else { alert('You are right! Rugby to be is the most entertaining sport!'); } + + +alert('Thanks for playing the game ' + userName);