Created
April 2, 2014 13:58
-
-
Save mfernea/9934669 to your computer and use it in GitHub Desktop.
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
#navbar { | |
background-color: #f2f2f2; | |
} |
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> | |
<head> | |
<meta name="description" content="Bootstrap bug report template" /> | |
<meta charset=utf-8> | |
<title>Bootstrap Bug Report</title> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="http://getbootstrap.com/dist/css/bootstrap.min.css"> | |
</head> | |
<body> | |
<div id="navbar">test</div> | |
<!-- Follow these instructions, please! --> | |
<div class="container"> | |
<h1>Bootstrap bug report?</h1> | |
<p class="lead">Have a bug report to share with us? No problem! Use this template to reproduce an isolated test case so we can more easily identify the problem and hopefully find a fix. Be sure to read the bug report guidelines for maximum effectiveness.</p> | |
<p class="lead"> | |
<a href="https://github.com/necolas/issue-guidelines" class="btn btn-lg btn-primary">Read bug report guidelines</a> | |
</p> | |
<p class="lead">Once you're set, replace the contents of this page and share the link with us in a <a href="https://github.com/twbs/bootstrap/issues/new">new issue</a>.</p> | |
<p class="lead">Thanks! <3</p> | |
</div> | |
<!-- jQuery and Bootstrap JS --> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> | |
<script src="http://getbootstrap.com/dist/js/bootstrap.min.js"></script> | |
</body> | |
</html> |
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
$(document).ready(function(){ | |
$('#navbar').affix({ | |
offset: { | |
top: 50 | |
} | |
}) | |
$('#navbar').on('affix.bs.affix', function() { | |
alert('test'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment