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
d531f726
Commit
d531f726
authored
Jan 26, 2012
by
Jacob Thornton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some js for javascript for builder (stil incomplete)
parent
d8e10018
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
53 deletions
+60
-53
docs/assets/js/application.js
docs/assets/js/application.js
+48
-41
docs/download.html
docs/download.html
+6
-6
docs/templates/pages/download.mustache
docs/templates/pages/download.mustache
+6
-6
No files found.
docs/assets/js/application.js
View file @
d531f726
...
@@ -76,46 +76,7 @@ $(function(){
...
@@ -76,46 +76,7 @@ $(function(){
}
}
}
}
// javascript build logic
var
inputs
=
$
(
"
#javascript input
"
)
// toggle all plugin checkboxes
$
(
'
#selectAll
'
).
on
(
'
click
'
,
function
(
e
)
{
e
.
preventDefault
()
inputs
.
attr
(
'
checked
'
,
!
inputs
.
is
(
'
:checked
'
))
})
// handle build button dropdown
var
buildTypes
=
$
(
'
#javascriptBuilder .dropdown-menu li
'
).
on
(
'
click
'
,
function
()
{
buildTypes
.
removeClass
(
'
active
'
)
$
(
this
).
addClass
(
'
active
'
)
})
// request built javascript
$
(
'
#javascriptBuild
'
).
on
(
'
click
'
,
function
()
{
var
names
=
$
(
"
#javascript input:checked
"
)
.
map
(
function
()
{
return
this
.
value
})
.
toArray
()
if
(
names
[
names
.
length
-
1
]
==
'
bootstrap-transition.js
'
)
{
names
.
unshift
(
names
.
pop
())
}
$
.
ajax
({
type
:
'
POST
'
,
dataType
:
'
jsonpi
'
,
params
:
{
branch
:
'
2.0-wip
'
,
dir
:
'
js
'
,
filenames
:
names
,
compress
:
buildTypes
.
first
().
hasClass
(
'
active
'
)
}
,
url
:
"
http://bootstrap.herokuapp.com
"
})
})
// fix sub nav playa
// fix sub nav playa
var
$win
=
$
(
window
)
var
$win
=
$
(
window
)
,
$nav
=
$
(
'
.subnav
'
)
,
$nav
=
$
(
'
.subnav
'
)
...
@@ -201,4 +162,50 @@ $(function () {
...
@@ -201,4 +162,50 @@ $(function () {
}
}
}
}
})
})
}(
jQuery
);
}(
jQuery
);
\ No newline at end of file
// javascript build logic
$
(
function
()
{
var
inputsComponent
=
$
(
"
#components.download input
"
)
,
inputsPlugin
=
$
(
"
#plugins.download input
"
)
// toggle all plugin checkboxes
$
(
'
#components.download .toggle-all
'
).
on
(
'
click
'
,
function
(
e
)
{
e
.
preventDefault
()
inputsComponent
.
attr
(
'
checked
'
,
!
inputsComponent
.
is
(
'
:checked
'
))
})
$
(
'
#plugins.download .toggle-all
'
).
on
(
'
click
'
,
function
(
e
)
{
e
.
preventDefault
()
inputsPlugin
.
attr
(
'
checked
'
,
!
inputsPlugin
.
is
(
'
:checked
'
))
})
// request built javascript
$
(
'
.download-btn
'
).
on
(
'
click
'
,
function
()
{
var
comp
=
$
(
"
#components.download input:checked
"
)
.
map
(
function
()
{
return
this
.
value
})
.
toArray
()
,
plug
=
$
(
"
#plugins.download input:checked
"
)
.
map
(
function
()
{
return
this
.
value
})
.
toArray
()
$
.
ajax
({
type
:
'
POST
'
,
dataType
:
'
jsonpi
'
,
params
:
{
branch
:
'
2.0-wip
'
,
dir
:
'
js
'
,
filenames
:
names
,
compress
:
buildTypes
.
first
().
hasClass
(
'
active
'
)
}
,
url
:
"
http://bootstrap.herokuapp.com
"
})
})
})
docs/download.html
View file @
d531f726
...
@@ -230,6 +230,10 @@
...
@@ -230,6 +230,10 @@
</div>
</div>
<div
class=
"row download-builder"
>
<div
class=
"row download-builder"
>
<div
class=
"span4"
>
<div
class=
"span4"
>
<label
class=
"checkbox"
>
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-transition.js"
>
Transitions
<small>
(required for any animation)
</small>
</label>
<label
class=
"checkbox"
>
<label
class=
"checkbox"
>
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-modal.js"
>
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-modal.js"
>
Modals
Modals
...
@@ -250,12 +254,12 @@
...
@@ -250,12 +254,12 @@
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-tooltip.js"
>
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-tooltip.js"
>
Tooltips
Tooltips
</label>
</label>
</div>
<!-- /span -->
<div
class=
"span4"
>
<label
class=
"checkbox"
>
<label
class=
"checkbox"
>
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-popover.js"
>
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-popover.js"
>
Popovers
<small>
(requires Tooltips)
</small>
Popovers
<small>
(requires Tooltips)
</small>
</label>
</label>
</div>
<!-- /span -->
<div
class=
"span4"
>
<label
class=
"checkbox"
>
<label
class=
"checkbox"
>
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-alert.js"
>
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-alert.js"
>
Alert messages
Alert messages
...
@@ -276,10 +280,6 @@
...
@@ -276,10 +280,6 @@
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-typeahead.js"
>
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-typeahead.js"
>
Typeahead
Typeahead
</label>
</label>
<label
class=
"checkbox"
>
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-transition.js"
>
Transitions
<small>
(required for any animation)
</small>
</label>
</div>
<!-- /span -->
</div>
<!-- /span -->
<div
class=
"span4"
>
<div
class=
"span4"
>
<h4
class=
"muted"
>
Heads up!
</h4>
<h4
class=
"muted"
>
Heads up!
</h4>
...
...
docs/templates/pages/download.mustache
View file @
d531f726
...
@@ -165,6 +165,10 @@
...
@@ -165,6 +165,10 @@
</div>
</div>
<div
class=
"row download-builder"
>
<div
class=
"row download-builder"
>
<div
class=
"span4"
>
<div
class=
"span4"
>
<label
class=
"checkbox"
>
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-transition.js"
>
Transitions
<small>
(required for any animation)
</small>
</label>
<label
class=
"checkbox"
>
<label
class=
"checkbox"
>
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-modal.js"
>
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-modal.js"
>
Modals
Modals
...
@@ -185,12 +189,12 @@
...
@@ -185,12 +189,12 @@
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-tooltip.js"
>
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-tooltip.js"
>
Tooltips
Tooltips
</label>
</label>
</div>
<!-- /span -->
<div
class=
"span4"
>
<label
class=
"checkbox"
>
<label
class=
"checkbox"
>
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-popover.js"
>
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-popover.js"
>
Popovers
<small>
(requires Tooltips)
</small>
Popovers
<small>
(requires Tooltips)
</small>
</label>
</label>
</div>
<!-- /span -->
<div
class=
"span4"
>
<label
class=
"checkbox"
>
<label
class=
"checkbox"
>
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-alert.js"
>
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-alert.js"
>
Alert messages
Alert messages
...
@@ -211,10 +215,6 @@
...
@@ -211,10 +215,6 @@
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-typeahead.js"
>
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-typeahead.js"
>
Typeahead
Typeahead
</label>
</label>
<label
class=
"checkbox"
>
<input
type=
"checkbox"
checked=
"true"
value=
"bootstrap-transition.js"
>
Transitions
<small>
(required for any animation)
</small>
</label>
</div>
<!-- /span -->
</div>
<!-- /span -->
<div
class=
"span4"
>
<div
class=
"span4"
>
<h4
class=
"muted"
>
Heads up!
</h4>
<h4
class=
"muted"
>
Heads up!
</h4>
...
...
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