generated from github/welcome-to-github
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ark_server_rules.html
85 lines (58 loc) · 2.07 KB
/
ark_server_rules.html
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="style/style__main.css">
<link rel="stylesheet" type="text/css" href="style/style_ark_rules.css">
<title>RFD's Scratchpad</title>
<link rel="icon" type="image/svg+xml" href="assets/favicon.svg">
<link id="theme_css" rel="stylesheet" type="text/css" href="style/theme_dark.css">
<script src="scripts/ark_data_rules.js"></script>
<!--no defer!
<script src="scripts/shared.js"></script>-->
</head>
<body>
<h1>server rules</h1>
<div id="content_id">
<div class="textbg">
<div id="ark_rule_table">
</div>
</div>
<!--
<div id="footer_id">
<div id="arkcalc_credits">
<p>coding: RFD; testing: Amare46; sorting script: Ron Valstar</p>
<p>license: GNU GPL 3.0</p>
</div>
</div>
-->
</div>
<script>
function showRules() {
for (let i = 0; i < rule_list.length; i++) {
let ark_rule_text_div = document.createElement("div");
let ark_rule_note_div = document.createElement("div");
ark_rule_text_div.classList.add("ark_rule_text");
ark_rule_note_div.classList.add("ark_rule_note");
let ark_rule_row = document.createElement("div");
ark_rule_row.classList.add("ark_rule_row");
for (let j = 0; j < rule_list[i][0].length; j++) {
let tn_rule = document.createTextNode(rule_list[i][0][j]);
let ark_rule_text = document.createElement("p");
ark_rule_text.appendChild(tn_rule);
ark_rule_text_div.appendChild(ark_rule_text);
}
for (let k = 0; k < rule_list[i][1].length; k++) {
let tn_note = document.createTextNode(rule_list[i][1][k]);
let ark_rule_note = document.createElement("p");
ark_rule_note.appendChild(tn_note);
ark_rule_note_div.appendChild(ark_rule_note);
}
ark_rule_row.append(ark_rule_text_div, ark_rule_note_div);
document.getElementById("ark_rule_table").append(ark_rule_row);
}
}
showRules();
</script>
</body>
</html>