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
312ee6cd
Commit
312ee6cd
authored
Dec 09, 2011
by
Mark Otto
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.0-wip' of github.com:twitter/bootstrap into 2.0-wip
Conflicts: bootstrap.css
parents
b12b71bf
cee2f618
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
90 additions
and
13 deletions
+90
-13
bootstrap.css
bootstrap.css
+1
-1
docs/javascript.html
docs/javascript.html
+1
-1
js/bootstrap-alert.js
js/bootstrap-alert.js
+3
-1
js/bootstrap-button.js
js/bootstrap-button.js
+3
-1
js/bootstrap-carousel.js
js/bootstrap-carousel.js
+59
-0
js/bootstrap-collapse.js
js/bootstrap-collapse.js
+3
-1
js/bootstrap-dropdown.js
js/bootstrap-dropdown.js
+3
-1
js/bootstrap-modal.js
js/bootstrap-modal.js
+3
-1
js/bootstrap-popover.js
js/bootstrap-popover.js
+3
-1
js/bootstrap-scrollspy.js
js/bootstrap-scrollspy.js
+3
-1
js/bootstrap-tab.js
js/bootstrap-tab.js
+3
-1
js/bootstrap-twipsy.js
js/bootstrap-twipsy.js
+5
-3
No files found.
bootstrap.css
View file @
312ee6cd
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Designed and built with all the love in the world @twitter by @mdo and @fat.
* Date: Fri Dec 9 11:
23:2
5 PST 2011
* Date: Fri Dec 9 11:
32:4
5 PST 2011
*/
*/
html
,
body
{
html
,
body
{
margin
:
0
;
margin
:
0
;
...
...
docs/javascript.html
View file @
312ee6cd
...
@@ -757,7 +757,7 @@ $('a[data-toggle="tab"]').bind('shown', function (e) {
...
@@ -757,7 +757,7 @@ $('a[data-toggle="tab"]').bind('shown', function (e) {
</section>
</section>
<!-- Button
<!-- Button
================================================== -->
================================================== -->
<section
id=
"button"
>
<section
id=
"button"
>
...
...
js/bootstrap-alert.js
View file @
312ee6cd
...
@@ -32,7 +32,9 @@
...
@@ -32,7 +32,9 @@
Alert
.
prototype
=
{
Alert
.
prototype
=
{
close
:
function
(
e
)
{
constructor
:
Alert
,
close
:
function
(
e
)
{
var
$element
=
$
(
this
)
var
$element
=
$
(
this
)
$element
=
$element
.
hasClass
(
'
alert-message
'
)
?
$element
:
$element
.
parent
()
$element
=
$element
.
hasClass
(
'
alert-message
'
)
?
$element
:
$element
.
parent
()
...
...
js/bootstrap-button.js
View file @
312ee6cd
...
@@ -31,7 +31,9 @@
...
@@ -31,7 +31,9 @@
Button
.
prototype
=
{
Button
.
prototype
=
{
setState
:
function
(
state
)
{
constructor
:
Button
,
setState
:
function
(
state
)
{
var
d
=
'
disabled
'
var
d
=
'
disabled
'
,
$el
=
this
.
$element
,
$el
=
this
.
$element
,
data
=
$el
.
data
()
,
data
=
$el
.
data
()
...
...
js/bootstrap-carousel.js
0 → 100644
View file @
312ee6cd
/* ==========================================================
* bootstrap-carousel.js v2.0.0
* http://twitter.github.com/bootstrap/javascript.html#alerts
* ==========================================================
* Copyright 2011 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ========================================================== */
!
function
(
$
){
"
use strict
"
/* CAROUSEL CLASS DEFINITION
* ========================= */
var
Carousel
=
function
(
el
)
{
$
(
el
).
delegate
(
dismiss
,
'
click
'
,
this
.
close
)
}
Carousel
.
prototype
=
{
}
/* CAROUSEL PLUGIN DEFINITION
* ========================== */
$
.
fn
.
carousel
=
function
(
option
)
{
return
this
.
each
(
function
()
{
var
$this
=
$
(
this
)
,
data
=
$this
.
data
(
'
alert
'
)
if
(
!
data
)
$this
.
data
(
'
alert
'
,
(
data
=
new
Alert
(
this
)))
if
(
typeof
option
==
'
string
'
)
data
[
option
].
call
(
$this
)
})
}
$
.
fn
.
carousel
.
Carousel
=
Carousel
/* CAROUSEL DATA-API
* ================= */
// $(function () {
// $('body').delegate(dismiss, 'click.alert.data-api', Alert.prototype.close)
// })
}(
window
.
jQuery
||
window
.
ender
)
\ No newline at end of file
js/bootstrap-collapse.js
View file @
312ee6cd
...
@@ -34,7 +34,9 @@
...
@@ -34,7 +34,9 @@
Collapse
.
prototype
=
{
Collapse
.
prototype
=
{
dimension
:
function
()
{
constructor
:
Collapse
,
dimension
:
function
()
{
var
hasWidth
=
this
.
$element
.
hasClass
(
'
width
'
)
var
hasWidth
=
this
.
$element
.
hasClass
(
'
width
'
)
return
hasWidth
?
'
width
'
:
'
height
'
return
hasWidth
?
'
width
'
:
'
height
'
}
}
...
...
js/bootstrap-dropdown.js
View file @
312ee6cd
...
@@ -32,7 +32,9 @@
...
@@ -32,7 +32,9 @@
Dropdown
.
prototype
=
{
Dropdown
.
prototype
=
{
toggle
:
function
(
e
)
{
constructor
:
Dropdown
,
toggle
:
function
(
e
)
{
var
li
=
$
(
this
).
parent
(
'
li
'
)
var
li
=
$
(
this
).
parent
(
'
li
'
)
,
isActive
=
li
.
hasClass
(
'
open
'
)
,
isActive
=
li
.
hasClass
(
'
open
'
)
...
...
js/bootstrap-modal.js
View file @
312ee6cd
...
@@ -34,7 +34,9 @@
...
@@ -34,7 +34,9 @@
Modal
.
prototype
=
{
Modal
.
prototype
=
{
toggle
:
function
()
{
constructor
:
Modal
,
toggle
:
function
()
{
return
this
[
!
this
.
isShown
?
'
show
'
:
'
hide
'
]()
return
this
[
!
this
.
isShown
?
'
show
'
:
'
hide
'
]()
}
}
...
...
js/bootstrap-popover.js
View file @
312ee6cd
...
@@ -34,7 +34,9 @@
...
@@ -34,7 +34,9 @@
Popover
.
prototype
=
$
.
extend
({},
$
.
fn
.
twipsy
.
Twipsy
.
prototype
,
{
Popover
.
prototype
=
$
.
extend
({},
$
.
fn
.
twipsy
.
Twipsy
.
prototype
,
{
setContent
:
function
()
{
constructor
:
Popover
,
setContent
:
function
()
{
var
$tip
=
this
.
tip
()
var
$tip
=
this
.
tip
()
,
title
=
this
.
getTitle
()
,
title
=
this
.
getTitle
()
,
content
=
this
.
getContent
()
,
content
=
this
.
getContent
()
...
...
js/bootstrap-scrollspy.js
View file @
312ee6cd
...
@@ -39,7 +39,9 @@
...
@@ -39,7 +39,9 @@
ScrollSpy
.
prototype
=
{
ScrollSpy
.
prototype
=
{
refresh
:
function
()
{
constructor
:
ScrollSpy
,
refresh
:
function
()
{
this
.
targets
=
this
.
$body
this
.
targets
=
this
.
$body
.
find
(
this
.
selector
)
.
find
(
this
.
selector
)
.
map
(
function
()
{
.
map
(
function
()
{
...
...
js/bootstrap-tab.js
View file @
312ee6cd
...
@@ -31,7 +31,9 @@
...
@@ -31,7 +31,9 @@
Tab
.
prototype
=
{
Tab
.
prototype
=
{
show
:
function
()
{
constructor
:
Tab
,
show
:
function
()
{
var
$this
=
this
.
element
var
$this
=
this
.
element
,
$ul
=
$this
.
closest
(
'
ul:not(.dropdown-menu)
'
)
,
$ul
=
$this
.
closest
(
'
ul:not(.dropdown-menu)
'
)
,
href
=
$this
.
attr
(
'
data-target
'
)
||
$this
.
attr
(
'
href
'
)
,
href
=
$this
.
attr
(
'
data-target
'
)
||
$this
.
attr
(
'
href
'
)
...
...
js/bootstrap-twipsy.js
View file @
312ee6cd
...
@@ -34,7 +34,9 @@
...
@@ -34,7 +34,9 @@
Twipsy
.
prototype
=
{
Twipsy
.
prototype
=
{
show
:
function
()
{
constructor
:
Twipsy
,
show
:
function
()
{
var
pos
var
pos
,
actualWidth
,
actualWidth
,
actualHeight
,
actualHeight
...
@@ -183,7 +185,7 @@
...
@@ -183,7 +185,7 @@
return
this
return
this
}
}
$
.
fn
.
twipsy
.
initWith
=
function
(
options
,
Constructor
,
name
)
{
$
.
fn
.
twipsy
.
initWith
=
function
(
options
,
Base
,
name
)
{
var
twipsy
var
twipsy
,
binder
,
binder
,
eventIn
,
eventIn
...
@@ -209,7 +211,7 @@
...
@@ -209,7 +211,7 @@
var
twipsy
=
$
.
data
(
ele
,
name
)
var
twipsy
=
$
.
data
(
ele
,
name
)
if
(
!
twipsy
)
{
if
(
!
twipsy
)
{
twipsy
=
new
Constructor
(
ele
,
$
.
fn
.
twipsy
.
elementOptions
(
ele
,
options
))
twipsy
=
new
Base
(
ele
,
$
.
fn
.
twipsy
.
elementOptions
(
ele
,
options
))
$
.
data
(
ele
,
name
,
twipsy
)
$
.
data
(
ele
,
name
,
twipsy
)
}
}
...
...
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