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
fe2222e7
Commit
fe2222e7
authored
Feb 12, 2014
by
Zlatan Vasović
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix multistr errors in customizer.js
parent
32a8716d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
19 deletions
+17
-19
docs/assets/js/customizer.js
docs/assets/js/customizer.js
+17
-19
No files found.
docs/assets/js/customizer.js
View file @
fe2222e7
...
@@ -6,8 +6,6 @@
...
@@ -6,8 +6,6 @@
* details, see http://creativecommons.org/licenses/by/3.0/.
* details, see http://creativecommons.org/licenses/by/3.0/.
*/
*/
/* jshint multistr: true */
window
.
onload
=
function
()
{
// wait for load in a dumb way because B-0
window
.
onload
=
function
()
{
// wait for load in a dumb way because B-0
var
cw
=
'
/*!
\n
'
+
var
cw
=
'
/*!
\n
'
+
'
* Bootstrap v3.1.0 (http://getbootstrap.com)
\n
'
+
'
* Bootstrap v3.1.0 (http://getbootstrap.com)
\n
'
+
...
@@ -16,21 +14,21 @@ window.onload = function () { // wait for load in a dumb way because B-0
...
@@ -16,21 +14,21 @@ window.onload = function () { // wait for load in a dumb way because B-0
'
*/
\n\n
'
'
*/
\n\n
'
function
showError
(
msg
,
err
)
{
function
showError
(
msg
,
err
)
{
$
(
'
<div id="bsCustomizerAlert" class="bs-customizer-alert">
\
$
(
'
<div id="bsCustomizerAlert" class="bs-customizer-alert">
'
+
<div class="container">
\
'
<div class="container">
'
+
<a href="#bsCustomizerAlert" data-dismiss="alert" class="close pull-right">×</a>
\
'
<a href="#bsCustomizerAlert" data-dismiss="alert" class="close pull-right">×</a>
'
+
<p class="bs-customizer-alert-text"><span class="glyphicon glyphicon-warning-sign"></span>
'
+
msg
+
'
</p>
'
+
'
<p class="bs-customizer-alert-text"><span class="glyphicon glyphicon-warning-sign"></span>
'
+
msg
+
'
</p>
'
+
(
err
.
extract
?
'
<pre class="bs-customizer-alert-extract">
'
+
err
.
extract
.
join
(
'
\n
'
)
+
'
</pre>
'
:
''
)
+
'
\
(
err
.
extract
?
'
<pre class="bs-customizer-alert-extract">
'
+
err
.
extract
.
join
(
'
\n
'
)
+
'
</pre>
'
:
''
)
+
</div>
\
'
</div>
'
+
</div>
'
).
appendTo
(
'
body
'
).
alert
()
'
</div>
'
).
appendTo
(
'
body
'
).
alert
()
throw
err
throw
err
}
}
function
showCallout
(
msg
,
showUpTop
)
{
function
showCallout
(
msg
,
showUpTop
)
{
var
callout
=
$
(
'
<div class="bs-callout bs-callout-danger">
\
var
callout
=
$
(
'
<div class="bs-callout bs-callout-danger">
'
+
<h4>Attention!</h4>
\
'
<h4>Attention!</h4>
'
+
<p>
'
+
msg
+
'
</p>
\
'
<p>
'
+
msg
+
'
</p>
'
+
</div>
'
)
'
</div>
'
)
if
(
showUpTop
)
{
if
(
showUpTop
)
{
callout
.
appendTo
(
'
.bs-docs-container
'
)
callout
.
appendTo
(
'
.bs-docs-container
'
)
...
@@ -333,15 +331,15 @@ window.onload = function () { // wait for load in a dumb way because B-0
...
@@ -333,15 +331,15 @@ window.onload = function () { // wait for load in a dumb way because B-0
// browser support alerts
// browser support alerts
if
(
!
window
.
URL
&&
navigator
.
userAgent
.
toLowerCase
().
indexOf
(
'
safari
'
)
!=
-
1
)
{
if
(
!
window
.
URL
&&
navigator
.
userAgent
.
toLowerCase
().
indexOf
(
'
safari
'
)
!=
-
1
)
{
showCallout
(
'
Looks like you
\'
re using safari, which sadly doesn
\'
t have the best support
\
showCallout
(
'
Looks like you
\'
re using safari, which sadly doesn
\'
t have the best support
'
+
for HTML5 blobs. Because of this your file will be downloaded with the name <code>"untitled"</code>.
\
'
for HTML5 blobs. Because of this your file will be downloaded with the name <code>"untitled"</code>.
'
+
However, if you check your downloads folder, just rename this <code>"untitled"</code> file
\
'
However, if you check your downloads folder, just rename this <code>"untitled"</code> file
'
+
to <code>"bootstrap.zip"</code> and you should be good to go!
'
)
'
to <code>"bootstrap.zip"</code> and you should be good to go!
'
)
}
else
if
(
!
window
.
URL
&&
!
window
.
webkitURL
)
{
}
else
if
(
!
window
.
URL
&&
!
window
.
webkitURL
)
{
$
(
'
.bs-docs-section, .bs-docs-sidebar
'
).
css
(
'
display
'
,
'
none
'
)
$
(
'
.bs-docs-section, .bs-docs-sidebar
'
).
css
(
'
display
'
,
'
none
'
)
showCallout
(
'
Looks like your current browser doesn
\'
t support the Bootstrap Customizer. Please take a second
\
showCallout
(
'
Looks like your current browser doesn
\'
t support the Bootstrap Customizer. Please take a second
'
+
to <a href="https://www.google.com/intl/en/chrome/browser/">
upgrade to a more modern browser</a>.
'
,
true
)
'
to <a href="https://www.google.com/intl/en/chrome/browser/">
upgrade to a more modern browser</a>.
'
,
true
)
}
}
parseUrl
()
parseUrl
()
...
...
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