mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 08:14:16 +03:00
[docs] Add bootstrap-collapse plugin, fixing collapsing navbar.
This commit is contained in:
parent
3306e448ef
commit
17654a8b54
|
@ -143,10 +143,11 @@ margin-top: 5px;
|
|||
<script src="{{ base_url }}/js/jquery.js"></script>
|
||||
<script src="{{ base_url }}/js/bootstrap-dropdown.js"></script>
|
||||
<script src="{{ base_url }}/js/bootstrap-scrollspy.js"></script>
|
||||
<script src="{{ base_url }}/js/bootstrap-collapse.js"></script>
|
||||
<script>
|
||||
//$('.side-nav').scrollspy()
|
||||
var shiftWindow = function() { scrollBy(0, -50) };
|
||||
if (location.hash) shiftWindow();
|
||||
window.addEventListener("hashchange", shiftWindow);
|
||||
//$('.side-nav').scrollspy()
|
||||
var shiftWindow = function() { scrollBy(0, -50) };
|
||||
if (location.hash) shiftWindow();
|
||||
window.addEventListener("hashchange", shiftWindow);
|
||||
</script>
|
||||
</body></html>
|
Loading…
Reference in New Issue
Block a user