TESTING - Add Site Notice (Kind of required)

This commit is contained in:
Lain Iwakura 2016-09-14 05:36:50 -04:00
parent 7e3aee8f69
commit 06fd6c8f4c

View File

@ -52,7 +52,9 @@
}
var $ = jQuery;
var notice = 'WARNING! THIS SITE HAS MIXED CONTENT AND IS NOT SAFE FOR WORK OR PUBLIC! \nThis site contains mixed content and has images containing erotic, grotesque acts, or acts of violence. NO content portrays any real life events or content illegal in the United States of America. This database is well regulated by its moderators and all posts are pending until approval. Please see SERVICE USE POLICY on ACR Docs too other policies that apply to this site. \n\nContent such as cate2, cate3, guro, loli, rape, and other are NOT accessible to the public or any bot unless you have an account, you must wait for a OPEN ACCESS day to register or view such content.';
var notice = 'WARNING! THIS SITE HAS MIXED CONTENT AND IS NOT SAFE FOR WORK OR PUBLIC! \
This site contains mixed content and has images containing erotic, grotesque acts, or acts of violence. NO content portrays any real life events or content illegal in the United States of America. This database is well regulated by its moderators and all posts are pending until approval. Please see SERVICE USE POLICY on ACR Docs too other policies that apply to this site. \
Content such as cate2, cate3, guro, loli, rape, and other are NOT accessible to the public or any bot unless you have an account, you must wait for a OPEN ACCESS day to register or view such content.';
var accept = 'YES, I fully understand what content I will see!';
var cancel = 'EXIT, Take me to somewhere normal';
@ -67,7 +69,7 @@
zIndex: 999,
});
container
container
.append(
$('<div>')
.css({
@ -80,14 +82,20 @@
.append(
$('<div>')
.css({
backgroundColor: 'white',
backgroundColor: '#a90000',
display: 'flex',
padding: 8,
minWidth: 350,
flexDirection: 'column'
flexDirection: 'column',
})
.append(
$('<div>').css({ margin: 8, color: 'black', whitespace:pre-wrap}).html(notice)
$('<div>')
.css({
margin: 8,
color: 'white',
})
.html(notice)
)
.append(
$('<div>')
@ -110,7 +118,7 @@
$('<button>')
.html(cancel)
.click(function() {
window.location.href = 'about:blank';
window.location.href = 'https://plus.google.com/u/1/communities/114928521647105863223';
})
)
)
@ -119,6 +127,7 @@
.prependTo(
$('body')
)
})();
</script>
<?= $this->partial('layouts/news') ?>