Skip to content

Instantly share code, notes, and snippets.

@mfernea
Created April 2, 2014 13:58
Show Gist options
  • Save mfernea/9934669 to your computer and use it in GitHub Desktop.
Save mfernea/9934669 to your computer and use it in GitHub Desktop.
#navbar {
background-color: #f2f2f2;
}
<!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! &lt3</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>
$(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