-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
180 lines (157 loc) · 6.28 KB
/
index.html
File metadata and controls
180 lines (157 loc) · 6.28 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SlopRP Rule Book</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #808080; /* Grey background */
color: white; /* White text */
margin: 0;
padding: 20px;
display: flex;
flex-direction: column; /* Arrange items vertically */
justify-content: flex-start; /* Align items to the top */
align-items: center; /* Center items horizontally */
min-height: 100vh;
}
.logo-container {
margin-bottom: 20px; /* Space between logo and menu */
}
.game-logo {
width: 100px; /* Adjust width for your logo size */
height: auto; /* Maintain aspect ratio */
display: block; /* Prevent inline spacing issues */
}
.rules-container {
background-color: #333; /* Darker container background */
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
width: 80%;
max-width: 900px;
overflow: hidden;
}
.tab-bar {
display: flex;
background-image: linear-gradient(to right, #8A2BE2, #DDA0DD); /* Gradient purple tabs */
color: white;
}
.tab-button {
flex-grow: 1;
padding: 15px 20px;
text-align: center;
cursor: pointer;
border: none;
background: transparent;
color: white;
font-size: 16px;
transition: background-color 0.3s ease;
}
.tab-button:hover {
background-color: rgba(255, 255, 255, 0.1);
}
.tab-button.active {
background-color: rgba(255, 255, 255, 0.2);
}
.tab-content {
padding: 20px;
}
.tab-content h2 {
margin-top: 0;
color: #eee;
border-bottom: 2px solid #555;
padding-bottom: 10px;
margin-bottom: 15px;
}
.rule-item {
margin-bottom: 15px;
line-height: 1.6;
}
/* Advanced Styling (Optional Enhancements) */
.tab-bar {
border-bottom: 1px solid #555;
}
.tab-button {
font-weight: bold;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.tab-content {
animation: fadein 0.5s ease-in-out;
}
@keyframes fadein {
from { opacity: 0; }
to { opacity: 1; }
}
</style>
</head>
<body>
<div class="logo-container">
<img src="https://i.imgur.com/uqdK14o.png" alt="Game Logo" class="game-logo">
</div>
<div class="rules-container">
<div class="tab-bar">
<button class="tab-button active" onclick="showTab('general')">General Rules</button>
<button class="tab-button" onclick="showTab('basing')">Basing</button>
<button class="tab-button" onclick="showTab('gambling')">Trading & Gambling</button>
</div>
<div id="general" class="tab-content">
<h2>General Rules</h2>
<div class="rule-item">
<strong>No NLR:</strong> If you have died, you must wait 5 minutes before you can return to the place of death. Breaking this rule will result in a warn.
</div>
<div class="rule-item">
<strong>No RDM:</strong> If you kill a person without a reason that pertains to roleplay, you will receive a warn.
</div>
<div class="rule-item">
<strong>No loopholing:</strong> If you do something that is obviously with intent to bend the rules, you will receive a warn and/or ban.
</div>
<div class="rule-item">
<strong>Use Common Sense:</strong> If you do something that is obviously done malicious intent or to troll, you will be warned and/or banned.
</div>
</div>
<div id="basing" class="tab-content">
<h2>Basing Rules</h2>
<div class="rule-item">
<strong>Fading Doors:</strong> You can use as many fading doors as you see fit as long as it is within the server's limit.
</div>
<div class="rule-item">
<strong>One Way Windows:</strong> You cannot shoot at an intruder without them being able to clearly view you.
</div>
<div class="rule-item">
<strong>Obstacles:</strong> If you have obstacles, the restrictions go as follows: You must be able to crouch under obstacles in front of you (excluding fading doors), and you must
be able to walk without any prop interference
</div>
</div>
<div id="gambling" class="tab-content">
<h2>Trading and Gambling</h2>
<div class="rule-item">
<strong>No scamming:</strong> You may not do anything that does not allow the receiving player to gain any goods for their money spent.
</div>
<div class="rule-item":>
<strong>No Out-Of-Game Transactions:</strong> If you try to trade for items in-game without using the proper channels, you will be permanently banned on the spot. SlopRP does not take any responsibility for money lost out-of-game.
</div>
</div>
</div>
<script>
function showTab(tabId) {
const tabContents = document.querySelectorAll('.tab-content');
const tabButtons = document.querySelectorAll('.tab-button');
tabContents.forEach(content => {
content.style.display = 'none';
});
tabButtons.forEach(button => {
button.classList.remove('active');
});
document.getElementById(tabId).style.display = 'block';
document.querySelector(`.tab-button[onclick="showTab('${tabId}')"]`).classList.add('active');
}
// Initially show the first tab
document.addEventListener('DOMContentLoaded', () => {
showTab('general');
});
</script>
</body>
</html>