Sha256: 6e8f985f9079ed37c16bdc8381e766a24a9ed26f0ae77f8f414df816ef7a0bcc
Contents?: true
Size: 851 Bytes
Versions: 15
Compression:
Stored size: 851 Bytes
Contents
function MCTabs(){this.settings=[]}MCTabs.prototype.init=function(a){this.settings=a};MCTabs.prototype.getParam=function(b,a){var c=null;c=(typeof(this.settings[b])=="undefined")?a:this.settings[b];if(c=="true"||c=="false"){return(c=="true")}return c};MCTabs.prototype.displayTab=function(e,a){var j,d,c,h,g,b,f;j=document.getElementById(a);d=j?j.parentNode:null;c=document.getElementById(e);h=c?c.parentNode:null;g=this.getParam("selection_class","current");if(c&&h){b=h.childNodes;for(f=0;f<b.length;f++){if(b[f].nodeName=="LI"){b[f].className=""}}c.className="current"}if(j&&d){b=d.childNodes;for(f=0;f<b.length;f++){if(b[f].nodeName=="DIV"){b[f].className="panel"}}j.className="current"}};MCTabs.prototype.getAnchor=function(){var b,a=document.location.href;if((b=a.lastIndexOf("#"))!=-1){return a.substring(b+1)}return""};var mcTabs=new MCTabs();
Version data entries
15 entries across 15 versions & 1 rubygems