Added the first bit of the HTML5 thingy, need to make a couple changes on the master branch.
This commit is contained in:
parent
89d54a83f2
commit
c9de4e5a6f
@ -110,7 +110,7 @@
|
|||||||
tabList = tabs[tabNum].getElementsByTagName("li");
|
tabList = tabs[tabNum].getElementsByTagName("li");
|
||||||
|
|
||||||
for(var k = 0, l = tabList.length; k < l; k++){
|
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",
|
var contentLocation = this.href.substr(this.href.indexOf("#")) + "Tab",
|
||||||
contentElement,
|
contentElement,
|
||||||
siblings;
|
siblings;
|
||||||
@ -124,7 +124,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
for(var m = 0; m < k; m++){
|
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");
|
Skeleton.addClass(this, "active");
|
||||||
@ -133,8 +133,8 @@
|
|||||||
contentElement = Skeleton.getElementsByClassName(Skeleton.getElementsByClassName(tabs[tabNum].parentNode, "tabs-content")[0], contentLocation.substr(1))[0];
|
contentElement = Skeleton.getElementsByClassName(Skeleton.getElementsByClassName(tabs[tabNum].parentNode, "tabs-content")[0], contentLocation.substr(1))[0];
|
||||||
Skeleton.addClass(contentElement, "active");
|
Skeleton.addClass(contentElement, "active");
|
||||||
|
|
||||||
siblings = contentElement.parentNode.getElementsByTagName('li');
|
siblings = contentElement.parentNode.getElementsByTagName("li");
|
||||||
for(m = 0, n = siblings.length; m < n; m++){
|
for(var m = 0, n = siblings.length; m < n; m++){
|
||||||
if(siblings[m] !== contentElement){
|
if(siblings[m] !== contentElement){
|
||||||
Skeleton.removeClass(siblings[m], "active");
|
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++){
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user