front-page new structure with module-gallery and content and footer logo-gallery
1 // NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
2 // IT'S ALL JUST JUNK FOR OUR DOCS!
3 // ++++++++++++++++++++++++++++++++++++++++++
6 * Copyright 2013 Twitter, Inc.
8 * Licensed under the Creative Commons Attribution 3.0 Unported License. For
9 * details, see http://creativecommons.org/licenses/by/3.0/.
17 // IE10 viewport hack for Surface/desktop Windows 8 bug
19 // See Getting Started docs for more information
20 if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
21 var msViewportStyle = document.createElement("style");
22 msViewportStyle.appendChild(
23 document.createTextNode(
24 "@-ms-viewport{width:auto!important}"
27 document.getElementsByTagName("head")[0].
28 appendChild(msViewportStyle);
32 var $window = $(window)
33 var $body = $(document.body)
35 var navHeight = $('.navbar').outerHeight(true) + 10
38 target: '.bs-sidebar',
42 $window.on('load', function () {
43 $body.scrollspy('refresh')
46 $('.bs-docs-container [href=#]').click(function (e) {
51 setTimeout(function () {
52 var $sideBar = $('.bs-sidebar')
57 var offsetTop = $sideBar.offset().top
58 var sideBarMargin = parseInt($sideBar.children(0).css('margin-top'), 10)
59 var navOuterHeight = $('.bs-docs-nav').height()
61 return (this.top = offsetTop - navOuterHeight - sideBarMargin)
63 , bottom: function () {
64 return (this.bottom = $('.bs-footer').outerHeight(true))
70 setTimeout(function () {
75 $('.tooltip-demo').tooltip({
76 selector: "[data-toggle=tooltip]",
80 $('.tooltip-test').tooltip()
81 $('.popover-test').popover()
83 $('.bs-docs-navbar').tooltip({
84 selector: "a[data-toggle=tooltip]",
85 container: ".bs-docs-navbar .nav"
89 $("[data-toggle=popover]")
97 setTimeout(function () {