Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PTV and fashion homework exercise #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
9 changes: 9 additions & 0 deletions Marty_Brewster/PTV/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<script src="ptv.js"></script>
</head>
<body>
<h1>open the console</h1>
</body>
</html>
33 changes: 33 additions & 0 deletions Marty_Brewster/PTV/ptv.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
console.log("ptvmofo");

var originStation = prompt("What is you origin station?")

var destinationStation = prompt("What is your destination station?")

var alamein = ['Flinders Street', 'Richmond', 'East Richmond', 'Burnley', 'Hawthorn', 'Glenferrie']

var glenWaverly = ['Flagstaff', 'Melbourne Central', 'Parliament', 'Richmond', 'Kooyong', 'Tooronga']

var sandringham = ['Southern Cross', 'Richmond', 'South Yarra', 'Prahran', 'Windsor']

if (alamein.indexOf(originStation) >= 0 && alamein.indexOf(destinationStation) >= 0 ){
var journey = alamein.slice(alamein.indexOf(originStation),(1 + alamein.indexOf(destinationStation)));
console.log(String(journey).replace(/[ ]*,[ ]*|[ ]+/g, " -----> "));

} else if (glenWaverly.indexOf(originStation) >= 0 && glenWaverly.indexOf(destinationStation) >= 0 ){
var journey = glenWaverly.slice(glenWaverly.indexOf(originStation),(1 + glenWaverly.indexOf(destinationStation)));
console.log(String(journey));

} else {
var journey = sandringham.slice(sandringham.indexOf(originStation),(1 + sandringham.indexOf(destinationStation)));
console.log(String(journey));
}

// then need to print the new array in the desired format

//Melbourne Central -----> Parliament -----> Richmond

//2 stops total

// aString = aString.replace(/[ ]*,[ ]*|[ ]+/g, '*');

7 changes: 7 additions & 0 deletions Marty_Brewster/fashion/Fashion_blog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Fashion Blog

Choose the easy option and use the `fashion_blogg_starter_with_markup` to complete the necessary `HTML` & `CSS` to resemble the following

![Fashion Blog ](http://i.imgur.com/fRFKxZU.png)

If you like a challenge use the folder with no markup.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
82 changes: 82 additions & 0 deletions Marty_Brewster/fashion/fashion_blog_starter_with_markup/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<title>Sartre’s List</title>
<link href='https://fonts.googleapis.com/css?family=Lato:300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1><a href="index.html">Sartre’s List</a></h1>
<h2>Better-Dressed People</h2>
<nav>
<ul>
<li><a href="#">Women’s</a></li><li><a href="#">Men’s</a></li><li><a href="#">On the Street</a></li><li><a href="#">The Catwalk</a></li><li><a href="#">AdWatch</a></li><li><a href="#">About</a></li>
</ul>
</nav>
</header>
<main>
<article>
<time>11/12/13</time>
<h2><a href="#">On the Street in Brooklyn</a></h2>
<img src="http://lorempixel.com/900/300/fashion/7/" alt="fashion stuff">
<p>Cray culpa stumptown, flexitarian ex Odd Future do fugiat Wes Anderson proident 3 wolf moon officia bitters small batch. Et consequat do, nulla you probably haven’t heard of them High Life scenester. Vinyl fugiat High Life, kogi do VHS in aliqua lo-fi leggings gentrify Neutra tumblr. Odio vegan PBR, Marfa forage blue bottle try-hard readymade meggings retro delectus Echo Park. Ugh consectetur farm-to-table forage, laboris blue bottle McSweeney’s tattooed excepteur yr. Magna ut Schlitz flexitarian, vinyl craft beer proident yr forage 8-bit ethical sustainable placeat retro. Officia pickled beard, adipisicing gluten-free sint craft beer quis thundercats id 3 wolf moon fashion axe.</p>
<p><a href="#">Continues...</a></p>
</article>
<article>
<time>11/11/13</time>
<h2><a href="#">Vintage in Vogue</a></h2>
<img src="http://lorempixel.com/900/300/fashion/3/" alt="fashion stuff">
<p>Selfies sunt Tumblr, delectus small batch DIY umami sint. Polaroid chambray selfies McSweeney's Cosby sweater, Pitchfork tattooed assumenda Wes Anderson Blue Bottle twee Carles ennui. Nisi locavore fugiat sapiente salvia aliqua. Shoreditch kogi exercitation fashion axe. Wolf semiotics Pinterest, laboris quis master cleanse tousled small batch street art bespoke fingerstache dreamcatcher ethical labore. Dreamcatcher iPhone typewriter, tote bag four loko fanny pack master cleanse organic PBR reprehenderit actually. Craft beer drinking vinegar wayfarers, pork belly narwhal pariatur polaroid cupidatat in 8-bit distillery anim literally.</p>
<p><a href="#">Continues...</a></p>
</article>
</main>

<aside>
<section>
<h4>About Us</h4>
<p>Sartre’s List is u salvia, fixie mumblecore ex aesthetic qui minim blog cliche. Retro disrupt keytar PBR, delectus consectetur flexitarian fingerstache selfies nostrud Schlitz. Tempor Wes Anderson banh mi bicycle rights. Eu occaecat Williamsburg yr letterpress, biodiesel plaid tote bag cliche messenger bag lomo bespoke sapiente next level.</p>
<p><a href="#">More&hellip;</a></p>
</section>
<section>
<img src="http://placehold.it/300x250&text=Ad" alt="ad stuff">
</section>
<section>
<h4>Popular Posts</h4>
<ul>
<li><a href="#">10 Things Not to Wear on the Red Carpet</a></li>
<li><a href="#">Valhalla at The Met Gala</a></li>
<li><a href="#">Jeans: To Fray or Not to Fray</a></li>
<li><a href="#">“Trashion” is in This Season</a></li>
<li><a href="#">Back to School in Pencil Skirts</a></li>
<li><a href="#">Fall Season Preview</a></li>
<li><a href="#">Even More Ways to Wrap a Sari!</a></li>
<li><a href="#">Is Steam Punk Here to Stay?</a></li>
<li><a href="#">Neighborhoodie Watch</a></li>
<li><a href="#">Hair Styles of the Damned</a></li>
</ul>
</section>
</aside>
<footer>
<a href="index.html">Home</a>
|
<a href="#">Women’s</a>
|
<a href="#">Men’s</a>
|
<a href="#">On the Street</a>
|
<a href="#">The Catwalk</a>
|
<a href="#">AdWatch</a>
|
<a href="#">About</a>
|
<a href="#">Tips</a>
<p>
<small>&copy; 2013 Valet Industries, Inc.</small>
</p>
</footer>
</body>
</html>
57 changes: 57 additions & 0 deletions Marty_Brewster/fashion/fashion_blog_starter_with_markup/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
* {
font-family: "lato", sans-serif;
box-sizing: border-box;
text-decoration: none;
}

main {
display: inline-block;
width: 60%;
margin-right: 10px;
}

header h1 {
display: inline-block;
margin: 0 20px 0 0;
}

header h1 a {
color: #E65E5D;
}

header h2 {
display: inline-block;
color: #929292;
margin: 0;
font-size: 14px;
}

nav ul {
padding: 0;
margin: 5px 0 5px 0;
}

nav li {
display: inline-block;
border: 1px solid black;
padding: 10px;
background-color: black;
width: 16.5%;
text-align: center;
border-right-color: gray;
}

nav a {
color:white;
}

aside {
display: inline-block;
width:20%;
margin-left: 10px;
}

img {
width: 100%;
}