Permalink
Cannot retrieve contributors at this time
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?
html-refresher/html-refresher.html
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
96 lines (78 sloc)
2.77 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<title>Moes</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous"> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script> | |
<link rel="stylesheet" href="html-refresher.css"> | |
<script> | |
$(function() { | |
$('a[href*=#]:not([href=#])').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { | |
$('html,body').animate({ | |
scrollTop: target.offset().top | |
}, 1000); | |
return false; | |
} | |
} | |
}); | |
}); | |
</script> | |
</head> | |
<body> | |
<div id="wrapper"> | |
<nav class="navbar navbar-inverse"> | |
<div class="container-fluid"> | |
<!-- Logo --> | |
<div class="navbar-header"> | |
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#mainNavBar"> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</button> | |
<a href="#" class="navbar-brand">Moes</a> | |
</div> | |
<!-- Menu Items --> | |
<div class="collapse navbar-collapse" id="mainNavBar"> | |
<ul class="nav navbar-nav"> | |
<li class="active"><a href="#">Home</a></li> | |
<li><a href="#">Locations</a></li> | |
<li><a href="#">Order Here</a></li> | |
</ul> | |
</div> | |
</div> | |
</nav> | |
<!-- Page Content --> | |
<div id="page-content-wrapper"> | |
<div class="container"> | |
<div id="row-1"> | |
<div class="col-lg-12"> | |
<a href="#"> | |
<img id="moes" src="moes.jpg" class="img-responsive"></a> | |
</div> | |
</div> | |
<div id="row-2"> | |
<div class="col-lg-12"> | |
<p> | |
<button type="button" class="btn btn-success btn-lg">Order Now</button> | |
</p> | |
</div> | |
</div> | |
</div> | |
</div> | |
<!-- Menu Toggle Script --> | |
<script> | |
$("#menu-toggle").click( function (e){ | |
e.preventDefault(); | |
$("#wrapper").toggleClass("menuDisplayed"); | |
}); | |
</script> | |
</body> | |
</html> |