projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some global var renamed
[brisk.git]
/
web
/
commons.js
diff --git
a/web/commons.js
b/web/commons.js
index
f522ad5
..
4cf95dc
100644
(file)
--- a/
web/commons.js
+++ b/
web/commons.js
@@
-49,6
+49,18
@@
var mlang_commons = { 'imgload_a' : { 'it' : 'Immagine caricate ',
function $(id) { return document.getElementById(id); }
function $(id) { return document.getElementById(id); }
+function dec2hex(d, padding)
+{
+ var hex = Number(d).toString(16);
+ padding = typeof (padding) === "undefined" || padding === null ? padding = 2 : padding;
+
+ while (hex.length < padding) {
+ hex = "0" + hex;
+ }
+
+ return hex;
+}
+
function getStyle(x,IEstyleProp, MozStyleProp)
{
if (x.currentStyle) {
function getStyle(x,IEstyleProp, MozStyleProp)
{
if (x.currentStyle) {
@@
-835,7
+847,7
@@
function user_dec_and_state(el)
var val_el;
content = user_decorator(el);
var val_el;
content = user_decorator(el);
- content += state_add(el[0]);
+ content += state_add(el[0]
,(typeof(el[2]) != 'undefined' ? el[2] : null)
);
return (content);
}
return (content);
}