@@ -77,15 +77,7 @@ template = "radar.html"
77
77
</div>
78
78
<div class="margin-top" style="font-size: 1.5em;">
79
79
<nav class="centered">
80
- <b >If you are here because of a message in your minecraft server console, this wasn't us and is a harassment campaign from a griefing group
81
- Your server is not hacked they are just sending messages in your chat from the dynmap plugin/mod
82
- To fix this open the dynmap config and change the allowchat setting to false like this:</b >
83
- <pre >
84
- - class: org.dynmap.SimpleWebChatComponent
85
- allowchat: false
86
- # If true, web UI users can supply name for chat using 'playername' URL parameter. 'trustclientname' must also be set true.
87
- allowurlname: false
88
- </pre >
80
+
89
81
<a class="fancy-link" href="//discord.gg/BWWBFvu654">Discord</a>
90
82
<a class="fancy-link" href="//github.com/serverscanning">GitHub</a>
91
83
<a class="fancy-link" href="/about">About</a><br>
@@ -103,3 +95,84 @@ To fix this open the dynmap config and change the allowchat setting to false lik
103
95
</div>
104
96
</div >
105
97
</div >
98
+ <div id =" myModal " class =" modal " >
99
+
100
+ <!-- Modal content -->
101
+ <div class =" modal-content " >
102
+ <span class="close">×</span>
103
+ <b>If you are here because of a message in your minecraft server console, this wasn't us and is a harassment campaign from a griefing group
104
+ Your server is not hacked they are just sending messages in your chat from the dynmap plugin/mod
105
+ To fix this open the dynmap config and change the allowchat setting to false like this:</b >
106
+ <code >
107
+ - class: org.dynmap.SimpleWebChatComponent
108
+ allowchat: false
109
+ # If true, web UI users can supply name for chat using 'playername' URL parameter. 'trustclientname' must also be set true.
110
+ allowurlname: false
111
+ </code >
112
+ </div >
113
+
114
+ </div >
115
+ <script >
116
+ // Get the modal
117
+ var modal = document .getElementById (" myModal" );
118
+
119
+ // Get the button that opens the modal
120
+ var btn = document .getElementById (" myBtn" );
121
+
122
+ // Get the <span> element that closes the modal
123
+ var span = document .getElementsByClassName (" close" )[0 ];
124
+
125
+ // When the user clicks on the button, open the modal
126
+ document .addEventListener (" DOMContentLoaded" , function () {
127
+ modal .style .display = " block" ;
128
+ });
129
+
130
+ // When the user clicks on <span> (x), close the modal
131
+ span .onclick = function () {
132
+ modal .style .display = " none" ;
133
+ }
134
+
135
+ // When the user clicks anywhere outside of the modal, close it
136
+ window .onclick = function (event ) {
137
+ if (event .target == modal) {
138
+ modal .style .display = " none" ;
139
+ }
140
+ }
141
+ </script >
142
+ <style > /* The Modal (background) */
143
+ .modal {
144
+ display : none ; /* Hidden by default */
145
+ position : fixed ; /* Stay in place */
146
+ z-index : 1 ; /* Sit on top */
147
+ left : 0 ;
148
+ top : 0 ;
149
+ width : 100% ; /* Full width */
150
+ height : 100% ; /* Full height */
151
+ overflow : auto ; /* Enable scroll if needed */
152
+ background-color : rgb (0 ,0 ,0 ); /* Fallback color */
153
+ background-color : rgba (0 ,0 ,0 ,0.4 ); /* Black w/ opacity */
154
+ }
155
+
156
+ /* Modal Content/Box */
157
+ .modal-content {
158
+ background-color : #fefefe ;
159
+ margin : 15% auto ; /* 15% from the top and centered */
160
+ padding : 20px ;
161
+ border : 1px solid #888 ;
162
+ width : 80% ; /* Could be more or less, depending on screen size */
163
+ }
164
+
165
+ /* The Close Button */
166
+ .close {
167
+ color : #aaa ;
168
+ float : right ;
169
+ font-size : 28px ;
170
+ font-weight : bold ;
171
+ }
172
+
173
+ .close :hover ,
174
+ .close :focus {
175
+ color : black ;
176
+ text-decoration : none ;
177
+ cursor : pointer ;
178
+ } </style >
0 commit comments