projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
supp_comp partial support (db/prefs management, usage is missing)
[brisk.git]
/
web
/
commons.js
diff --git
a/web/commons.js
b/web/commons.js
index
f522ad5
..
5968260
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) {