Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
523e02f7
Commit
523e02f7
authored
Oct 19, 2011
by
Jacob Thornton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix scrollspy simplify stuff more - break everything.
parent
5ab84f94
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
78 additions
and
57 deletions
+78
-57
docs/index.html
docs/index.html
+34
-31
js/bootstrap-accordion.js
js/bootstrap-accordion.js
+1
-1
js/bootstrap-alerts.js
js/bootstrap-alerts.js
+1
-1
js/bootstrap-dropdown.js
js/bootstrap-dropdown.js
+3
-2
js/bootstrap-modal.js
js/bootstrap-modal.js
+1
-1
js/bootstrap-popover.js
js/bootstrap-popover.js
+1
-1
js/bootstrap-scrollspy.js
js/bootstrap-scrollspy.js
+20
-13
js/bootstrap-tabs.js
js/bootstrap-tabs.js
+15
-6
js/bootstrap-twipsy.js
js/bootstrap-twipsy.js
+1
-1
js/tests/index.html
js/tests/index.html
+1
-0
No files found.
docs/index.html
View file @
523e02f7
...
...
@@ -53,8 +53,8 @@
<li
class=
"dropdown"
>
<a
href=
"#"
class=
"dropdown-toggle"
data-dropdown=
"true"
>
Patterns
</a>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"#navigation"
>
Navigation
</a></li>
<li><a
href=
"#media"
>
Media
</a></li>
<li><a
href=
"#navigation"
>
Navigation
</a></li>
<li><a
href=
"#alerts"
>
Alerts
</a></li>
<li><a
href=
"#popovers"
>
Popovers
</a></li>
<li><a
href=
"#autocomplete"
>
Autocomplete
</a></li>
...
...
@@ -147,6 +147,7 @@
<!-- About Bootstrap
================================================== -->
<section
id=
"about"
>
<div
class=
"row"
>
<div
class=
"span4"
>
<h2>
Built for and by nerds
</h2>
...
...
@@ -177,6 +178,7 @@
</ul>
</div>
</div>
<!-- /row -->
</section>
<h3>
Quick-start examples
</h3>
<p>
Need some quick templates? Check out these basic examples we've put together:
</p>
...
...
@@ -2162,6 +2164,7 @@ Lorem ipsum dolar sit amet illo error <a href="#" title="below">ipsum</a> verita
<script
src=
"http://autobahn.tablesorter.com/jquery.tablesorter.min.js"
></script>
<script
src=
"assets/js/google-code-prettify/prettify.js"
></script>
<script>
$
(
function
()
{
prettyPrint
()
})
</script>
<script
src=
"../js/bootstrap-transitions.js"
></script>
<script
src=
"../js/bootstrap-dropdown.js"
></script>
<script
src=
"../js/bootstrap-twipsy.js"
></script>
<script
src=
"../js/bootstrap-scrollspy.js"
></script>
...
...
js/bootstrap-accordion.js
View file @
523e02f7
/* =============================================================
* bootstrap-accordion.js v
1.3
.0
* bootstrap-accordion.js v
2.0
.0
* http://twitter.github.com/bootstrap/javascript.html#accordion
* =============================================================
* Copyright 2011 Twitter, Inc.
...
...
js/bootstrap-alerts.js
View file @
523e02f7
/* ==========================================================
* bootstrap-alerts.js v
1.3
.0
* bootstrap-alerts.js v
2.0
.0
* http://twitter.github.com/bootstrap/javascript.html#alerts
* ==========================================================
* Copyright 2011 Twitter, Inc.
...
...
js/bootstrap-dropdown.js
View file @
523e02f7
/* ============================================================
* bootstrap-dropdown.js v
1.3
.0
* bootstrap-dropdown.js v
2.0
.0
* http://twitter.github.com/bootstrap/javascript.html#dropdown
* ============================================================
* Copyright 2011 Twitter, Inc.
...
...
@@ -22,6 +22,7 @@
/* APPLY TO STANDARD DROPDOWN ELEMENTS
* =================================== */
var
selector
=
'
[data-dropdown]
'
function
clearMenus
()
{
$
(
selector
).
parent
(
'
li
'
).
removeClass
(
'
open
'
)
...
...
@@ -29,7 +30,7 @@
$
(
function
()
{
$
(
'
html
'
).
bind
(
"
click
"
,
clearMenus
)
$
(
'
body
'
).
delegate
(
'
[data-dropdown]
'
,
'
click
'
,
function
(
e
)
{
$
(
'
body
'
).
delegate
(
selector
,
'
click
'
,
function
(
e
)
{
var
li
=
$
(
this
).
parent
(
'
li
'
)
,
isActive
=
li
.
hasClass
(
'
open
'
)
clearMenus
()
...
...
js/bootstrap-modal.js
View file @
523e02f7
/* =========================================================
* bootstrap-modal.js v
1.3
.0
* bootstrap-modal.js v
2.0
.0
* http://twitter.github.com/bootstrap/javascript.html#modal
* =========================================================
* Copyright 2011 Twitter, Inc.
...
...
js/bootstrap-popover.js
View file @
523e02f7
/* ===========================================================
* bootstrap-popover.js v
1.3
.0
* bootstrap-popover.js v
2.0
.0
* http://twitter.github.com/bootstrap/javascript.html#popover
* ===========================================================
* Copyright 2011 Twitter, Inc.
...
...
js/bootstrap-scrollspy.js
View file @
523e02f7
/* =============================================================
* bootstrap-scrollspy.js v
1.3
.0
* bootstrap-scrollspy.js v
2.0
.0
* http://twitter.github.com/bootstrap/javascript.html#scrollspy
* =============================================================
* Copyright 2011 Twitter, Inc.
...
...
@@ -22,14 +22,14 @@
var
$window
=
$
(
window
)
function
ScrollSpy
(
topbar
,
selector
)
{
var
process
Scroll
=
$
.
proxy
(
this
.
processScroll
,
this
)
this
.
$topbar
=
$
(
topbar
)
this
.
selector
=
selector
||
'
li > a
'
function
ScrollSpy
()
{
var
process
=
$
.
proxy
(
this
.
process
,
this
)
this
.
$topbar
=
$
(
'
body
'
)
this
.
selector
=
'
[data-scrollspy]
li > a
'
this
.
refresh
()
this
.
$topbar
.
delegate
(
this
.
selector
,
'
click
'
,
process
Scroll
)
$window
.
scroll
(
process
Scroll
)
this
.
process
Scroll
()
this
.
$topbar
.
delegate
(
this
.
selector
,
'
click
'
,
process
)
$window
.
scroll
(
process
)
this
.
process
()
}
ScrollSpy
.
prototype
=
{
...
...
@@ -45,7 +45,7 @@
})
}
,
process
Scroll
:
function
()
{
,
process
:
function
()
{
var
scrollTop
=
$window
.
scrollTop
()
+
10
,
offsets
=
this
.
offsets
,
targets
=
this
.
targets
...
...
@@ -56,27 +56,34 @@
activeTarget
!=
targets
[
i
]
&&
scrollTop
>=
offsets
[
i
]
&&
(
!
offsets
[
i
+
1
]
||
scrollTop
<=
offsets
[
i
+
1
])
&&
this
.
activate
Button
(
targets
[
i
]
)
&&
this
.
activate
(
targets
[
i
]
)
}
}
,
activateButton
:
function
(
target
)
{
,
activate
:
function
(
target
)
{
var
active
this
.
activeTarget
=
target
this
.
$topbar
.
find
(
this
.
selector
).
parent
(
'
.active
'
)
.
removeClass
(
'
active
'
)
this
.
$topbar
active
=
this
.
$topbar
.
find
(
this
.
selector
+
'
[href="
'
+
target
+
'
"]
'
)
.
parent
(
'
li
'
)
.
addClass
(
'
active
'
)
if
(
active
.
parent
(
'
.dropdown-menu
'
)
)
{
active
.
closest
(
'
li.dropdown
'
).
addClass
(
'
active
'
)
}
}
}
$
(
function
()
{
$
(
'
body
'
).
scrollSpy
(
'
[data-scrollspy] li > a
'
)
new
ScrollSpy
(
)
})
}(
window
.
jQuery
||
window
.
ender
)
\ No newline at end of file
js/bootstrap-tabs.js
View file @
523e02f7
/* ========================================================
* bootstrap-tabs.js v
1.3
.0
* bootstrap-tabs.js v
2.0
.0
* http://twitter.github.com/bootstrap/javascript.html#tabs
* ========================================================
* Copyright 2011 Twitter, Inc.
...
...
@@ -21,24 +21,33 @@
!
function
(
$
){
function
activate
(
element
,
container
)
{
container
.
find
(
'
> .active
'
).
removeClass
(
'
active
'
)
container
.
find
(
'
> .active
'
)
.
removeClass
(
'
active
'
)
.
find
(
'
> .dropdown-menu > .active
'
)
.
removeClass
(
'
active
'
)
element
.
addClass
(
'
active
'
)
if
(
element
.
parent
(
'
.dropdown-menu
'
)
)
{
element
.
closest
(
'
li.dropdown
'
).
addClass
(
'
active
'
)
}
}
function
tab
(
e
)
{
var
$this
=
$
(
this
)
,
$ul
=
$this
.
closest
(
'
ul
'
)
,
$ul
=
$this
.
closest
(
'
ul
:not(.dropdown-menu)
'
)
,
href
=
$this
.
attr
(
'
href
'
)
,
previous
if
(
/^#
\w
+/
.
test
(
href
)
)
{
if
(
/^#
\w
+/
.
test
(
href
)
)
{
e
.
preventDefault
()
if
(
$this
.
parent
(
'
li
'
).
hasClass
(
'
active
'
)
)
{
if
(
$this
.
parent
(
'
li
'
).
hasClass
(
'
active
'
)
)
{
return
}
previous
=
$ul
.
find
(
'
.active a
'
)[
0
]
previous
=
$ul
.
find
(
'
.active a
'
)
.
last
()
[
0
]
$href
=
$
(
href
)
activate
(
$this
.
parent
(
'
li
'
),
$ul
)
...
...
js/bootstrap-twipsy.js
View file @
523e02f7
/* ==========================================================
* bootstrap-twipsy.js v
1.3
.0
* bootstrap-twipsy.js v
2.0
.0
* http://twitter.github.com/bootstrap/javascript.html#twipsy
* Adapted from the original jQuery.tipsy by Jason Frame
* ==========================================================
...
...
js/tests/index.html
View file @
523e02f7
...
...
@@ -11,6 +11,7 @@
<script
src=
"vendor/qunit.js"
></script>
<!-- plugin sources -->
<script
src=
"../../js/bootstrap-transitions.js"
></script>
<script
src=
"../../js/bootstrap-alerts.js"
></script>
<script
src=
"../../js/bootstrap-dropdown.js"
></script>
<script
src=
"../../js/bootstrap-modal.js"
></script>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment