From 45df8dc73b6d0723f6c0c399b6efbf2d9f947b94 Mon Sep 17 00:00:00 2001 From: remy Date: Tue, 28 Jun 2011 12:32:16 +0100 Subject: [PATCH] new demo classList API, and updated support status --- demos/classlist.html | 75 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 demos/classlist.html diff --git a/demos/classlist.html b/demos/classlist.html new file mode 100644 index 0000000..b74c1a8 --- /dev/null +++ b/demos/classlist.html @@ -0,0 +1,75 @@ +Simple classList manipulation + +
+

Clicking the buttons below will toggle the class on the bacon ipsum text below, assigning the class with the same name (styles seen below). This is done using the new classList API.

+

Not supported :(

+
<style> 
+  .big { font-size: 30px; }
+  .bold { font-weight: bold; }
+  .pink { background: #FF5E99; color: #fff; }
+</style>
+

Bacon ipsum dolor sit amet pancetta bresaola tenderloin, swine meatball tongue ham boudin t-bone ribeye jerky sausage. Pork loin cow shankle drumstick tri-tip, chicken venison strip steak.

+

Toggle a class: + + + +

+
+ + + + + + + + +