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
12316af2
Commit
12316af2
authored
Jan 28, 2016
by
Smari McCarthy
Browse files
nbsp, no default, etc
parent
3646cffc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
js/marka.js
js/marka.js
+1
-9
No files found.
js/marka.js
View file @
12316af2
...
...
@@ -13,13 +13,6 @@ var dollar_multiplier_lookup_table = {
};
function
Marka
(
target
)
{
console
.
log
(
this
.
currencies_supported
());
this
.
setCurrency
(
"
isk
"
);
this
.
getValueInSetCurrency
(
200
,
"
usd
"
,
function
(
value
){
console
.
log
(
"
Exchanged to:
"
+
value
);
});
if
(
!
target
)
{
this
.
target
=
$
(
'
body
'
).
get
();
}
else
{
...
...
@@ -111,7 +104,7 @@ Marka.prototype.doConversions = function() {
var
children
=
node
.
children
()
self
.
getValueInSetCurrency
(
res
.
number
,
res
.
symbol
,
function
(
value
,
converted
)
{
if
(
converted
)
{
node
.
text
(
value
.
toFixed
(
2
)
+
"
"
+
self
.
getCurrentCurrency
());
node
.
text
(
value
.
toFixed
(
0
)
+
"
"
+
self
.
getCurrentCurrency
()
+
"
"
);
}
else
{
node
.
text
(
node
.
data
(
"
original_value
"
))
}
...
...
@@ -201,7 +194,6 @@ Marka.prototype.findSymbol = function(text) {
}
}
}
console
.
log
(
result
);
return
result
;
}
...
...
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