X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fcommons.js;h=5de441f030a40550259f8b9660c64ac4004e11ae;hb=dbc81b4ca1a2ebdc2c68e667682842d9914d8e11;hp=3995331ea5fe7e1ff8f97657dc712f56202c7778;hpb=421d30f68820d3a7d1950f24db55f0168661b2e2;p=brisk.git diff --git a/web/commons.js b/web/commons.js index 3995331..5de441f 100644 --- a/web/commons.js +++ b/web/commons.js @@ -360,6 +360,11 @@ function act_about() send_mesg("about"); } +function act_placing() +{ + send_mesg("placing"); +} + function act_roadmap() { send_mesg("roadmap"); @@ -551,7 +556,7 @@ slowimg.prototype = { } -function notify(st, text, tout, butt, w, h) +function notify_ex(st, text, tout, butt, w, h, is_opa) { var clo, box; var t = this; @@ -584,7 +589,11 @@ function notify(st, text, tout, butt, w, h) cont.innerHTML = text; box = document.createElement("div"); - box.className = "notify"; + if (is_opa) + box.className = "notify_opaque"; + else + box.className = "notify"; + box.style.zIndex = 200; box.style.width = w+"px"; box.style.marginLeft = -parseInt(w/2)+"px"; @@ -605,7 +614,8 @@ function notify(st, text, tout, butt, w, h) } -notify.prototype = { + +notify_ex.prototype = { ancestor: null, st: null, notitag: null, @@ -632,6 +642,17 @@ notify.prototype = { this.obj.unblock(); } } + + +notify.prototype = notify_ex.prototype; // Define sub-class +notify.prototype.constructor = notify; +notify.baseConstructor = notify_ex; +notify.superClass = notify_ex.prototype; + +function notify(st, text, tout, butt, w, h) +{ + notify_ex.call(this, st, text, tout, butt, w, h, false); +} function $(id) {