From c9de4e5a6f90b9d4018f117a64edcb18edc419ab Mon Sep 17 00:00:00 2001 From: Eric Kever Date: Fri, 12 Aug 2011 13:20:03 -0400 Subject: [PATCH] Added the first bit of the HTML5 thingy, need to make a couple changes on the master branch. --- javascripts/app.js | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/javascripts/app.js b/javascripts/app.js index 32d9535..4e1df7e 100644 --- a/javascripts/app.js +++ b/javascripts/app.js @@ -110,7 +110,7 @@ tabList = tabs[tabNum].getElementsByTagName("li"); for(var k = 0, l = tabList.length; k < l; k++){ - Skeleton.addListener(tabList[k].getElementsByTagName('a')[0], "click", function(e){ + Skeleton.addListener(tabList[k].getElementsByTagName("a")[0], "click", function(e){ var contentLocation = this.href.substr(this.href.indexOf("#")) + "Tab", contentElement, siblings; @@ -124,7 +124,7 @@ } for(var m = 0; m < k; m++){ - Skeleton.removeClass(tabList[m].getElementsByTagName('a')[0], "active"); + Skeleton.removeClass(tabList[m].getElementsByTagName("a")[0], "active"); } Skeleton.addClass(this, "active"); @@ -133,8 +133,8 @@ contentElement = Skeleton.getElementsByClassName(Skeleton.getElementsByClassName(tabs[tabNum].parentNode, "tabs-content")[0], contentLocation.substr(1))[0]; Skeleton.addClass(contentElement, "active"); - siblings = contentElement.parentNode.getElementsByTagName('li'); - for(m = 0, n = siblings.length; m < n; m++){ + siblings = contentElement.parentNode.getElementsByTagName("li"); + for(var m = 0, n = siblings.length; m < n; m++){ if(siblings[m] !== contentElement){ Skeleton.removeClass(siblings[m], "active"); } @@ -145,6 +145,31 @@ } })(); } + }, + + + + html5 : { + managedElements : [], + inputElements : [], + + create : { + element : function(element, type){ + + }, + + color : function(){ + + } + }, + + loader : function(){ + Skeleton.html5.inputElements = document.getElementsByTagName("input"); + + for(var i = 0, j = Skeleton.html5.inputElements.length; i < j; i++){ + + } + } } };