-
Notifications
You must be signed in to change notification settings - Fork 12
/
register_cards.js
46 lines (30 loc) · 1.01 KB
/
register_cards.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
* @author Ikaros Kappler
* @date 2014-03-17
* @version 1.0.0
**/
function show_register_card( id ) {
var divs = document.getElementsByTagName( "DIV" );
for( var i = 0; i < divs.length; i++ ) {
var entry = divs[i];
if( !entry.className || entry.className != "register_card" )
continue;
// window.alert( entry.className + ", id=" + entry.id + ", making visible: " + (entry.id == id) );
if( entry.id == id )
entry.style.display = "block";
else
entry.style.display = "none";
}
var spans = document.getElementsByTagName( "SPAN" );
var tabID = "regh_" + id;
for( var i = 0; i < spans.length; i++ ) {
var entry = spans[i];
if( !entry.className || (entry.className != "register_tab" && entry.className != "register_tab_selected") )
continue;
//window.alert( entry.className + ", id=" + entry.id + ", making visible: " + (entry.id == id) );
if( entry.id == tabID )
entry.className = "register_tab_selected";
else
entry.className = "register_tab";
}
}