head 1.2; access; symbols; locks; strict; comment @# @; 1.2 date 2007.06.21.08.41.52; author openpkg; state Exp; branches; next 1.1; commitid E3ALEgDFkYfc0Lms; 1.1 date 2007.02.08.12.27.29; author rse; state Exp; branches; next ; commitid B2jC1dMOyyPEwG5s; desc @@ 1.2 log @flush and save current state of CVS controlled data @ text @ div#polling { display: none; position: absolute; left: 100px; top: 120px; z-index: 2000; } div#polling div.body { position: absolute; left: 0px; top: 0px; z-index: 2003; width: 600px; height: 500px; background: #403020; color: #d0c0b0; padding: 20px 20px 20px 20px; border-top: 1px solid #605040; border-left: 1px solid #605040; border-right: 1px solid #504030; border-bottom: 1px solid #504030; } div#polling div.wall { position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; z-index: 2001; /* background-color: #000000; -moz-opacity: 30; opacity: .3; */ background-attachment: scroll; background-position: left top; background-image: url('canvas/canvas-crop-glass-dark-T.png'); } div#polling div.shadow { position: absolute; left: 12px; top: 12px; z-index: 2002; width: 600px; height: 500px; padding: 20px 20px 20px 20px; /* background-color: #000000; -moz-opacity: 30; opacity: .3; */ background-attachment: scroll; background-position: left top; background-image: url('canvas/canvas-crop-glass-dark-T.png'); } div#polling div.close { position: absolute; right: 4px; top: 4px; border-top: 1px solid #d0c0b0; border-left: 1px solid #d0c0b0; border-right: 1px solid #706050; border-bottom: 1px solid #706050; padding: 1px 4px 1px 4px; color: #d0c0b0; } div#polling div.title { font-weight: bold; font-size: 100%; color: #a09080; } div#polling div.subtitle { margin-top: 20px; margin-bottom: 14px; font-weight: bold; font-size: 150%; color: #ffffff; } div#polling select.pulldown { background: #605040; color: #d0c0b0; border-top: 1px solid #302010; border-left: 1px solid #302010; border-right: 1px solid #807060; border-bottom: 1px solid #807060; } div#polling input.textbox { background: #605040; color: #d0c0b0; border-top: 1px solid #302010; border-left: 1px solid #302010; border-right: 1px solid #807060; border-bottom: 1px solid #807060; } div#polling textarea.textarea { background: #605040; color: #d0c0b0; border-top: 1px solid #302010; border-left: 1px solid #302010; border-right: 1px solid #807060; border-bottom: 1px solid #807060; } div#polling input#submit_repeat { border-top: 1px solid #807060; border-left: 1px solid #807060; border-right: 1px solid #302010; border-bottom: 1px solid #302010; color: #d0c0b0; background: #605040; } div#polling input#submit_close { border-top: 1px solid #807060; border-left: 1px solid #807060; border-right: 1px solid #302010; border-bottom: 1px solid #302010; color: #d0c0b0; background: #605040; } div#polling table.form td.left { padding-right: 20px; text-align: left; vertical-align: top; color: #ffffff; } div#polling select.error { background: #805040 !important; } div#polling input.error { background: #805040 !important; } div#polling textarea.error { background: #805040 !important; } div#polling div#status_error { margin-top: 4px; color: #ff3333; font-weight: bold; } div#polling div#status_ok { margin-top: 4px; color: #ffffff; font-weight: bold; } div#polling div.footer { margin-top: 10px; border-top: 1px solid #706050; padding-top: 5px; } div#polling div.footer table { border-collapse: collapse; } div#polling div.footer table td { color: #908070; font-size: 75%; }
X
Important Community Survey. Cast Your Vote Now!
Preferred approach for deploying Open Source software?
Currently OpenPKG primarily provides source software packages for building and deploying custom solutions. To extend the OpenPKG offering, we need to know whether you would prefer additional software deployment approaches, the solution you are looking for, the primary target Unix platform and an estimate of how much you are willing to spend for receiving such a pre-mastered solution.

Please be so kind and support OpenPKG by spending a minute for submitting the following quick survey. Thank you very much for your support.

Approach: **
Solution: or
Platform: or
Price:
Optional
Feedback:

/* global cookie object */ var cookie = new HTTP.Cookies; /* global submit button information */ var polling_submit_button = "unknown"; /* remember which submit button was pressed */ function polling_submit_remember (e) { polling_submit_button = this.name; return true; } /* server tracked polling events */ function polling_event (name) { YAHOO.util.Connect.asyncRequest( 'GET', "/meta/global-polling.cgi?polling=approach;event=" + name, { success: function (o) {}, failure: function (o) {}, timeout: 8000 }, null ); } /* update style on field change */ function polling_change (e) { /* remove error class from current field */ var re = new RegExp(" error", "g"); this.className = this.className.replace(re, ""); /* remove error class from sibling fields */ re2 = new RegExp("^polling_", ""); var sibling = DOM.getNode('*[name]', this.parentNode); for (var i = 0; i < sibling.length; i++) { if (sibling[i].name.match(re2)) { sibling[i].className = sibling[i].className.replace(re, ""); } } /* clear status line */ polling_status("ok", ""); return true; } /* submit form */ function polling_submit (e) { var form = DOM.getNode("div#polling form")[0]; var error = 0; /* form content validation */ if (form["polling_approach"].selectedIndex == 0) { form["polling_approach"].className += " error"; error = 1; } if ( form["polling_solution"].selectedIndex == 0 && form["polling_solution_custom"].value == "") { form["polling_solution"].className += " error"; form["polling_solution_custom"].className += " error"; error = 1; } if ( form["polling_platform_arch"].selectedIndex == 0 && form["polling_platform_os"].selectedIndex == 0 && form["polling_platform_custom"].value == "") { form["polling_platform_arch"].className += " error"; form["polling_platform_os"].className += " error"; form["polling_platform_custom"].className += " error"; error = 1; } var re = new RegExp("^[0-9]+(\\.[0-9]+)?$", ""); if ( form["polling_price_value"].value == "" || !(form["polling_price_value"].value.match(re))) { form["polling_price_value"].className += " error"; error = 1; } /* form processing */ if (!error) { /* submit form to server */ polling_status("ok", "Submitting feedback..."); polling_event("submit"); form.submit(); cookie.write("polling", "approach", "+12M", "/", "openpkg.org"); polling_status("ok", "Submitted feedback. Thanks."); /* delay close window or repeat with fresh form */ if (polling_submit_button == "close") defer_schedule("polling", "polling_display(0);", 1000); else form.reset(); } else { /* indicate an error */ polling_event("submit/error"); polling_status("error", "Please support us by completing the form!"); } return false; } /* update status line */ function polling_status (type, txt) { var div_error = DOM.getNode("div#polling div#status_error")[0]; var div_ok = DOM.getNode("div#polling div#status_ok")[0]; div_error.innerHTML = ""; div_ok.innerHTML = ""; if (type == "ok") div_ok.innerHTML = txt; else div_error.innerHTML = txt; return; } /* close window */ var polling_close_fired = 0; function polling_close (e) { if (polling_close_fired) return; polling_close_fired = 1; var polling = cookie.read("polling"); if (polling != "approach") cookie.write("polling", "approach", "+1h", "/", "openpkg.org"); polling_display(0); } /* display window */ function polling_display (display) { /* attach event to close button */ var close = DOM.getNode("div#polling div.close")[0]; DOM.setEvent(close, "click", polling_close); /* attach events to submit buttons */ var submit_repeat = DOM.getNode("#submit_repeat")[0]; var submit_close = DOM.getNode("#submit_close")[0]; DOM.setEvent(submit_repeat, "click", polling_submit_remember, { name: "repeat" }, true); DOM.setEvent(submit_close, "click", polling_submit_remember, { name: "close" }, true); /* attach event to form (notice: with "DOM.setEvent" the "false" return value is lost somewhere!? */ var form = DOM.getNode("div#polling form")[0]; form.onsubmit = polling_submit; /* attach events to form fields */ var re = new RegExp("^polling_", ""); for (var name in form) { if (name.match(re)) { DOM.setEvent(form[name], "change", polling_change, form[name], true); DOM.setEvent(form[name], "click", polling_change, form[name], true); } } /* size the shadow */ var vp = DOM.getViewport(); var wall = DOM.getNode("div#polling div.wall")[0]; DOM.setStyle(wall, "width", vp["x"] + "px"); DOM.setStyle(wall, "height", vp["y"] + "px"); /* clear status line */ polling_status("ok", ""); /* clear polling close double-firing flag */ if (display) polling_close_fired = 0; /* track events */ if (display) polling_event("open"); else polling_event("close"); /* determine root window node and toggle its display */ var div = DOM.getNode("div#polling")[0]; div.style.display = display ? "block" : "none"; } /* check whether cookies are enabled */ function cookies_enabled () { if (navigator) { if (navigator.cookieEnabled == false) return false; } return true; } /* delayed window pop-up */ function polling_onload (e) { if (cookies_enabled()) { var polling = cookie.read("polling"); if (polling != "approach") { defer_cancel("polling"); defer_schedule("polling", "polling_display(1);", 4000); } } else { polling_event("skip"); } } /* hook into browser */ DOM.setEvent(window, "load", polling_onload); @ 1.1 log @flush all pending changes to meta.openpkg.org @ text @d205 1 a205 1 if (preg_match("/^project/", $opt["path"], $match)) { d461 1 a461 1 var re = new RegExp("^[0-9]+(\.[0-9]+)?$", ""); @