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
14 changes: 14 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"line-length": false,
"no-trailing-punctuation": false,
"no-inline-html": {
"allowed_elements": [
"dl",
"dt",
"dd",
"summary",
"detail",
"img"
]
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 201-class-02

# Class 201 Lab02
## Class 201 Lab02

### Author: Tim Maupin

Expand Down
65 changes: 32 additions & 33 deletions about.html
Original file line number Diff line number Diff line change
@@ -1,44 +1,43 @@
<!DOCTYPE html>

<html>

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>About Me</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/style.css">
</head>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="css/reset.css" />
<link rel="stylesheet" href="css/style.css" />
</head>

<body>
<body id="about-body">
<header>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
</ul>
</nav>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="about.html">About</a></li>
</ul>
</nav>
</header>
<main>
<h1>Get to Know Me</h1>
<p>
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.


</p>

<h1>Get to Know Me</h1>
<p>
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.
</p>
</main>


<script src="" async defer></script>
</body>

</html>
</body>
</html>
9 changes: 8 additions & 1 deletion css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,11 @@ body {
font-size: 30px;
}

h2{}
h2 {

}


#about-body {
background-color: aquamarine;
}
46 changes: 23 additions & 23 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
<!DOCTYPE html>

<html>

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Class 2</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/style.css">
</head>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="css/reset.css" />
<link rel="stylesheet" href="css/style.css" />
</head>

<body>
<body>
<header>
<h1>About me</h1>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="about.html">About</a></li>
</ul>
</nav>
<h1>About me</h1>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="about.html">About</a></li>
</ul>
</nav>
</header>


<!-- <main>
2 lists favorites shows work experience.
</main>
<footer></footer> -->
<script src="js/app.js"></script>
</body>

</html>
</body>
</html>
42 changes: 23 additions & 19 deletions js/app.js
Original file line number Diff line number Diff line change
@@ -1,65 +1,69 @@
'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!');
} else {
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!');
} else {
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);