Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
libre
marka
Commits
3646cffc
Commit
3646cffc
authored
Jan 28, 2016
by
Smari McCarthy
Browse files
Target id=articles
parent
fad835b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
js/marka.js
js/marka.js
+5
-5
No files found.
js/marka.js
View file @
3646cffc
...
...
@@ -25,7 +25,7 @@ function Marka(target) {
}
else
{
this
.
target
=
target
;
}
// lightbox
var
lightbox
=
'
<div id="marka-currency-lightbox"><div><h2>Select a currency:</h2><div><select id="marka-currency-select">
'
var
currencies
=
this
.
currencies_supported
()
...
...
@@ -46,11 +46,11 @@ function Marka(target) {
self
.
doConversions
();
$
(
'
#marka-currency-lightbox
'
).
css
(
'
display
'
,
'
none
'
)
})
$
(
'
#marka-currency-lightbox
'
).
click
(
function
(){
$
(
this
).
css
(
'
display
'
,
'
none
'
)
})
$
(
'
#marka-currency-lightbox > div > div
'
).
click
(
function
(
event
){
event
.
preventDefault
()
event
.
stopPropagation
()
...
...
@@ -271,7 +271,7 @@ Marka.prototype.currencies_supported = function(){
delete
currencies
[
key
];
currencies
[
key
]
=
value
;
});
return
currencies
;
}
...
...
@@ -288,7 +288,7 @@ Marka.prototype.getCookie = function (cname) {
}
var
the_marka
;
$
(
function
()
{
the_marka
=
new
Marka
(
document
.
getElementById
(
'
t
es
t
'
));
});
$
(
function
()
{
the_marka
=
new
Marka
(
document
.
getElementById
(
'
articl
es
'
));
});
Marka
.
prototype
.
setCookie
=
function
(
cname
,
cvalue
,
exdays
)
{
var
d
=
new
Date
();
...
...
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