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
ab1087f6
Commit
ab1087f6
authored
Apr 25, 2014
by
XhmikosR
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update holder.js to v2.3.2.
parent
f2eff550
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
docs/assets/js/_vendor/holder.js
docs/assets/js/_vendor/holder.js
+15
-5
No files found.
docs/assets/js/_vendor/holder.js
View file @
ab1087f6
/*!
/*!
Holder - 2.3.
1
- client side image placeholders
Holder - 2.3.
2
- client side image placeholders
(c) 2012-2014 Ivan Malopinsky / http://imsky.co
(c) 2012-2014 Ivan Malopinsky / http://imsky.co
Provided under the MIT License.
Provided under the MIT License.
...
@@ -269,7 +269,7 @@ function draw_svg(args){
...
@@ -269,7 +269,7 @@ function draw_svg(args){
font
:
font
,
font
:
font
,
template
:
template
template
:
template
})
})
return
"
data:image/svg+xml;base64,
"
+
btoa
(
string
);
return
"
data:image/svg+xml;base64,
"
+
btoa
(
unescape
(
encodeURIComponent
(
string
))
);
}
}
function
draw
(
args
)
{
function
draw
(
args
)
{
...
@@ -500,6 +500,7 @@ app.add_image = function (src, el) {
...
@@ -500,6 +500,7 @@ app.add_image = function (src, el) {
};
};
app
.
run
=
function
(
o
)
{
app
.
run
=
function
(
o
)
{
instance_config
=
extend
({},
system_config
)
instance_config
=
extend
({},
system_config
)
preempted
=
true
;
preempted
=
true
;
...
@@ -507,12 +508,12 @@ app.run = function (o) {
...
@@ -507,12 +508,12 @@ app.run = function (o) {
images
=
[],
images
=
[],
imageNodes
=
[],
imageNodes
=
[],
bgnodes
=
[];
bgnodes
=
[];
if
(
options
.
use_canvas
!=
null
&&
options
.
use_canvas
){
if
(
options
.
use_canvas
!=
null
&&
options
.
use_canvas
){
instance_config
.
use_canvas
=
true
;
instance_config
.
use_canvas
=
true
;
instance_config
.
use_svg
=
false
;
instance_config
.
use_svg
=
false
;
}
}
if
(
typeof
(
options
.
images
)
==
"
string
"
)
{
if
(
typeof
(
options
.
images
)
==
"
string
"
)
{
imageNodes
=
selector
(
options
.
images
);
imageNodes
=
selector
(
options
.
images
);
}
else
if
(
window
.
NodeList
&&
options
.
images
instanceof
window
.
NodeList
)
{
}
else
if
(
window
.
NodeList
&&
options
.
images
instanceof
window
.
NodeList
)
{
...
@@ -531,6 +532,7 @@ app.run = function (o) {
...
@@ -531,6 +532,7 @@ app.run = function (o) {
bgnodes
=
[
options
.
bgnodes
];
bgnodes
=
[
options
.
bgnodes
];
}
}
for
(
i
=
0
,
l
=
imageNodes
.
length
;
i
<
l
;
i
++
)
images
.
push
(
imageNodes
[
i
]);
for
(
i
=
0
,
l
=
imageNodes
.
length
;
i
<
l
;
i
++
)
images
.
push
(
imageNodes
[
i
]);
var
holdercss
=
document
.
getElementById
(
"
holderjs-style
"
);
var
holdercss
=
document
.
getElementById
(
"
holderjs-style
"
);
if
(
!
holdercss
)
{
if
(
!
holdercss
)
{
holdercss
=
document
.
createElement
(
"
style
"
);
holdercss
=
document
.
createElement
(
"
style
"
);
...
@@ -538,13 +540,17 @@ app.run = function (o) {
...
@@ -538,13 +540,17 @@ app.run = function (o) {
holdercss
.
type
=
"
text/css
"
;
holdercss
.
type
=
"
text/css
"
;
document
.
getElementsByTagName
(
"
head
"
)[
0
].
appendChild
(
holdercss
);
document
.
getElementsByTagName
(
"
head
"
)[
0
].
appendChild
(
holdercss
);
}
}
if
(
!
options
.
nocss
)
{
if
(
!
options
.
nocss
)
{
if
(
holdercss
.
styleSheet
)
{
if
(
holdercss
.
styleSheet
)
{
holdercss
.
styleSheet
.
cssText
+=
options
.
stylesheet
;
holdercss
.
styleSheet
.
cssText
+=
options
.
stylesheet
;
}
else
{
}
else
{
holdercss
.
appendChild
(
document
.
createTextNode
(
options
.
stylesheet
));
if
(
options
.
stylesheet
.
length
){
holdercss
.
appendChild
(
document
.
createTextNode
(
options
.
stylesheet
));
}
}
}
}
}
var
cssregex
=
new
RegExp
(
options
.
domain
+
"
\
/(.*?)
\"
?
\\
)
"
);
var
cssregex
=
new
RegExp
(
options
.
domain
+
"
\
/(.*?)
\"
?
\\
)
"
);
for
(
var
l
=
bgnodes
.
length
,
i
=
0
;
i
<
l
;
i
++
)
{
for
(
var
l
=
bgnodes
.
length
,
i
=
0
;
i
<
l
;
i
++
)
{
var
src
=
window
.
getComputedStyle
(
bgnodes
[
i
],
null
)
var
src
=
window
.
getComputedStyle
(
bgnodes
[
i
],
null
)
...
@@ -598,6 +604,10 @@ contentLoaded(win, function () {
...
@@ -598,6 +604,10 @@ contentLoaded(win, function () {
window
.
attachEvent
(
"
onresize
"
,
resizable_update
)
window
.
attachEvent
(
"
onresize
"
,
resizable_update
)
}
}
preempted
||
app
.
run
({});
preempted
||
app
.
run
({});
if
(
typeof
window
.
Turbolinks
===
"
object
"
)
{
document
.
addEventListener
(
"
page:change
"
,
function
()
{
app
.
run
({})
})
}
});
});
if
(
typeof
define
===
"
function
"
&&
define
.
amd
)
{
if
(
typeof
define
===
"
function
"
&&
define
.
amd
)
{
define
([],
function
()
{
define
([],
function
()
{
...
...
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