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
104 changes: 0 additions & 104 deletions .gitignore

This file was deleted.

50 changes: 50 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

<html>
<head>
<title>StrawHouse Inc.</title>
<link rel="stylesheet" href="straw.css" type="text/css" media="screen" />
<script type="text/javascript">
function validate(form){
if(form.password.value!="swordf1sh")
document.getElementById("output").innerHTML="INVALID PASSWORD! <br/> HACKER ALERT!";
else
document.location = "./welcome.html";
}
</script>
</head>
<body>
<div id="content">

<div id="side">
<h2>Customer Log-in</h2>
<form method="" id="login" action="">
<label for="username">Username: </label> <input type="text" name="username" value="" /><br/>
<label for="password">Password:</label> <input type="password" name="password" value="" /><br/>
<button type="button" onclick="validate(this.form)">Log In</button>

</form>
<span id="output"></span>
</div>
<div id="mainPane">


<h1>Welcome To StrawHouse Inc.</h1>
<p>StrawHouse Inc. have been supplying widgets to the widget
redistribution and sales industry for over 81 years.</p>
<p>This website allows our customers to place orders and update
payment details.</p>
<p>If you are an individual looking to purchase our famous
high-quality widgets, please try one of the following widget
retailers:</p>
<ul>
<li>James's Widgets, Wolverhampton</li>
<li>Terry's Chocolate Widgets, Coventry</li>
<li>Mandeep's Widget Emporium, Stoat-on-Trout</li>
<li>Nazaraf's Finest Widgets, Sodor</li>
</ul>
</div>

</div>
</body>
</html>

23 changes: 23 additions & 0 deletions straw.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
body, html{

font-family: Helvetica, sans;
}

html{background: #EEEE88; }
#mainPane {width:320px; margin-left: auto; margin-right: auto; padding:10%; background:#FFFFFF}

h1{
width: 100%;
border: 1px solid;
top: 0px;
padding: 1em;
margin-top: -2em;
margin-left: -1em;
background: #EEEE88;
}

#mainPane{float: left}

#side{ float: left; width 190px; border: 1px solid;}

#output {background: #FF8888; border: 1px solid; }
34 changes: 34 additions & 0 deletions welcome.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

<html>
<head>
<title>StrawHouse Inc.</title>
<link rel="stylesheet" href="straw.css" type="text/css" media="screen" />
</head>
<body>
<div id="content">

<div id="side" style="background: #DDFFDD;">
<h2>Welcome</h2>
<p>Welcome to the super secure area of the site.</p>
</div>
<div id="mainPane">


<h1>Welcome To StrawHouse Inc.</h1>
<p>StrawHouse Inc. have been supplying widgets to the widget
redistribution and sales industry for over 81 years.</p>
<p>This website allows our customers to place orders and update
payment details.</p>
<p>Select an option:
<ul>
<li><button onclick="">View payment information</button>
</li>
<li><button onclick="">Other stuff that we don't want the world to have access to</button>
</li>
</ul>
<p>
</div>

</div>
</body>
</html>