Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
<?php session_start();?>
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="manifest" href="site.webmanifest">
<link rel="apple-touch-icon" href="icon.png">
<!-- Place favicon.ico in the root directory -->
<link href="https://fonts.googleapis.com/css?family=Lora" rel="stylesheet">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<link href="https://fonts.googleapis.com/css?family=Cutive+Mono|Lobster|Raleway+Dots" rel="stylesheet">
<meta name="theme-color" content="#fafafa">
<style type="text/css">
#container {
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
}
body {
background-image:url(
img/bg.png);
background-size: 100%;
font-family: 'Lora';
}
h2 {
font-family: 'Lora';
font-size: 36px;
text-align: center;
display: block;
margin-top: 110px;
}
#takequiz{
width: 20%;
display: block;
align-self: center;
font-family: 'Lora';
}
button {
align-self: center;
width: 100%;
border-radius: 4px;
padding: 8px;
margin-top: 315px;
background-color: #e5b9b9;
}
.btn {
font-family: 'Lora';
}
</style>
</head>
<body>
<!--[if IE]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
<![endif]-->
<!-- Add your site or application content here -->
<nav>
<ul>
<li id="login">
<a id="login-trigger" href="#">
Log in <span></span>
</a>
<div id="login-content">
<?php if(isset($_SESSION['username'])): ?>
Logged in as <?php echo $_SESSION['username'] ?>. Not you? <a href="logout.php">Log out</a>
<style type="text/css">
.form-group {
display:none;
}
</style>
<div id="idk">
<?php echo $_SESSION ['username'] . "'s quizzes:" ?><br>
<a href="index.php">what's your font?</a>
</div>
<?php else: ?>
<style type="text/css">
.form-group {
display:block;
}
</style>
<?php endif; ?>
<form action="login.php" method="post" class="needs-validation" novalidate>
<div class="form-group <?php echo (!empty($username_err)) ? 'has-error' : ''; ?>">
<label>Username</label><br>
<input type="text" name="username" class="form-control" value="<?php echo $username; ?>">
<span class="help-block"><?php echo $username_err; ?></span>
</div>
<div class="form-group <?php echo (!empty($password_err)) ? 'has-error' : ''; ?>">
<label>Password</label><br>
<input type="password" name="password" class="form-control">
<span class="help-block"><?php echo $password_err; ?></span>
</div>
<div class="form-group" class="btn-bg">
<input type="submit" class="btn btn-primary" value="login">
</div>
<div class="form-group">
<span class="reg">No account? <a href="#"> Register here. </a></span>
</div>
</form>
</div>
</li>
</ul>
</nav>
<div id="container">
<h2>what's your type?</h2>
<div id="takequiz"> <a href="index.php"><button class="btn">take the quiz</button></a></div
</div>
<script src="js/vendor/jquery.js"></script>
<script src="js/vendor/demo.js"></script>
<script src="js/foundation.min.js"></script>
<script src="js/vendor/modernizr-3.7.1.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-3.3.1.min.js"><\/script>')</script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<script>
// $(document).foundation();
</script>
</body>
</html>