cvs: presentations /slides/intro sliders.html
| From: | Rasmus Lerdorf | Date: | Fri, 21 Apr 2006 08:34:43 +0000 |
| Subject: | cvs: presentations /slides/intro sliders.html | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1290@lists.php.net to get a copy of this message | ||
rasmus Fri Apr 21 08:34:43 2006 UTC
Modified files:
/presentations/slides/intro sliders.html
Log:
Skip any gLog stuff
http://cvs.php.net/viewcvs.cgi/presentations/slides/intro/sliders.html?r1=1.1&r2=1.2&diff_format=u
Index: presentations/slides/intro/sliders.html
diff -u presentations/slides/intro/sliders.html:1.1 presentations/slides/intro/sliders.html:1.2
--- presentations/slides/intro/sliders.html:1.1 Thu Apr 20 13:04:22 2006
+++ presentations/slides/intro/sliders.html Fri Apr 21 08:34:43 2006
@@ -214,16 +214,10 @@
var hue;
var picker;
- var gLogger;
var dd1, dd2;
var r, g, b;
function init() {
- if (typeof(ygLogger) != "undefined") {
- ygLogger.init(document.getElementById("logDiv"));
- gLogger = new ygLogger("slider.php");
- }
-
standardSliderInit();
rgbInit();
pickerInit();
@@ -260,8 +254,6 @@
var h = (180 - hue.getValue()) / 180;
if (h == 1) { h = 0; }
- gLogger.debug("hue " + hue.getValue());
-
var a = YAHOO.util.Color.hsv2rgb( h, 1, 1);
document.getElementById("pickerDiv").style.backgroundColor =
@@ -276,18 +268,13 @@
document.getElementById("pickerhval").value = (h*2);
h = h / 180;
- gLogger.debug("h " + hue.getValue());
var s = picker.getXValue() / 180;
document.getElementById("pickersval").value = Math.round(s * 100);
- gLogger.debug("s " + s);
-
var v = (180 - picker.getYValue()) / 180;
document.getElementById("pickervval").value = Math.round(v * 100);
- gLogger.debug("v " + v);
-
var a = YAHOO.util.Color.hsv2rgb( h, s, v );
document.getElementById("pickerSwatch").style.backgroundColor =
@@ -375,8 +362,6 @@
curg = Math.min(g.getValue() * 2, 255);
curb = Math.min(b.getValue() * 2, 255);
- gLogger.debug("updateSliderColor " + curr + ", " + curg + ",
" + curb);
-
var d;
for (var i=0; i<34; i++) {
d = document.getElementById("rBG" + i);
@@ -409,7 +394,6 @@
}
function userUpdate(isHex) {
- gLogger.debug("userupdate");
var v;
var f = document.forms['rgbform'];
@@ -426,8 +410,6 @@
hexval = newval;
}
- gLogger.debug("hexval:" + hexval);
-
if (hexval.length != 6) {
alert("illegal hex code: " + hexval);
} else {
@@ -505,8 +487,6 @@
// accessibility keypress test
function handleHorizSliderKey(slider, ev) {
- if (gLogger) gLogger.debug("horizontal slider keypress");
-
// Firefox 1.5+ only at this point
if (!slider.getAttributeNS) {
return true;
@@ -523,8 +503,6 @@
var kc = ev.keyCode;
- if (gLogger) gLogger.debug("keycode: " + kc);
-
if (kc == YAHOO.util.Key.DOM_VK_LEFT) {
delta = -25;
} else if (kc == YAHOO.util.Key.DOM_VK_RIGHT) {
@@ -549,8 +527,6 @@
}
function handleVertSliderKey(slider, ev) {
- if (gLogger) gLogger.debug("vertical slider keypress");
-
// Firefox 1.5+ only at this point
if (!slider.getAttributeNS) {
return true;