Fix rules-popup jquery issue.
This commit is contained in:
parent
0f7039b600
commit
0426ec4011
@ -12,13 +12,14 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
$(window).ready(function() {
|
||||||
if (typeof localStorage.rulesAccepted === "undefined") {
|
if (typeof localStorage.rulesAccepted === "undefined") {
|
||||||
|
|
||||||
// generate a 7-character long random string
|
// generate a 7-character long random string
|
||||||
captcha = Math.random().toString(36).substring(2, 9)
|
captcha = Math.random().toString(36).substring(2, 9)
|
||||||
|
|
||||||
$("<div id='rules-popup'>")
|
$("body")
|
||||||
.prependTo("body");
|
.prepend("<div id='rules-popup'>");
|
||||||
|
|
||||||
$("#rules-popup")
|
$("#rules-popup")
|
||||||
.append("<div class='rules-popup-top'>lainchan rule agreement</div>")
|
.append("<div class='rules-popup-top'>lainchan rule agreement</div>")
|
||||||
@ -40,3 +41,4 @@ if (typeof localStorage.rulesAccepted === "undefined") {
|
|||||||
.append("<input class='rules-popup-form-input' type='text' id='captcha' />")
|
.append("<input class='rules-popup-form-input' type='text' id='captcha' />")
|
||||||
.append("<input type='submit' value='ACCEPT' />");
|
.append("<input type='submit' value='ACCEPT' />");
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user