From 42110289d3be41f3a57a220fd68c7d7603906910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 12 Oct 2010 13:57:38 -0400 Subject: [PATCH] Added click tracking to basic test page. --- speed/basic-page.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/speed/basic-page.html b/speed/basic-page.html index 94646a29..ab06efe1 100644 --- a/speed/basic-page.html +++ b/speed/basic-page.html @@ -16,6 +16,13 @@ }) .taphold(function() { $( this ).css( "color", "#0f0" ); + }) + .click(function() { + var elem = this; + $( elem ).css( "background-color", "#00f" ); + setTimeout(function() { + $( elem ).css( "background-color", "transparent" ); + }, 500 ); }); });