TESTING - Add Site Notice (Kind of required)
This commit is contained in:
parent
dc521a6b36
commit
5fe7a9626f
@ -44,89 +44,88 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script>
|
<script>
|
||||||
(function() {
|
(function() {
|
||||||
var cookieName = 'disclaimer_accepted';
|
var cookieName = 'disclaimer_accepted';
|
||||||
|
|
||||||
if (Cookie.get(cookieName)) {
|
if (Cookie.get(cookieName)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var $ = jQuery;
|
var $ = jQuery;
|
||||||
var notice = 'WARNING! THIS SITE HAS MIXED CONTENT AND IS NOT SAFE FOR WORK OR PUBLIC! \n 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. \n 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 notice = 'WARNING! THIS SITE HAS MIXED CONTENT AND IS NOT SAFE FOR WORK OR PUBLIC! \n 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. \n 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 = 'Accept';
|
var accept = 'Accept';
|
||||||
var cancel = 'Cancel';
|
var cancel = 'Cancel';
|
||||||
|
|
||||||
var container = $('<div>')
|
var container = $('<div>')
|
||||||
.css({
|
.css({
|
||||||
backgroundColor: 'rgba(0,0,0,0.8)',
|
backgroundColor: 'rgba(0,0,0,0.8)',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
height: '100%',
|
height: '100%',
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
left: 0,
|
left: 0,
|
||||||
top: 0,
|
top: 0,
|
||||||
zIndex: 999,
|
zIndex: 999,
|
||||||
});
|
});
|
||||||
|
|
||||||
container
|
container
|
||||||
.append(
|
.append(
|
||||||
$('<div>')
|
$('<div>')
|
||||||
.css({
|
.css({
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
height: '100%',
|
height: '100%',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
})
|
})
|
||||||
.append(
|
.append(
|
||||||
$('<div>')
|
$('<div>')
|
||||||
.css({
|
.css({
|
||||||
backgroundColor: #bf5e65,
|
backgroundColor: 'white',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
padding: 8,
|
padding: 8,
|
||||||
minWidth: 350,
|
minWidth: 350,
|
||||||
flexDirection: 'column'
|
flexDirection: 'column'
|
||||||
})
|
})
|
||||||
.append(
|
.append(
|
||||||
$('<div>')
|
$('<div>')
|
||||||
.css({
|
.css({
|
||||||
margin: 8,
|
margin: 8,
|
||||||
color: 'white'
|
color: 'black'
|
||||||
white-space: pre-wrap
|
})
|
||||||
})
|
.html(notice)
|
||||||
.html(notice)
|
)
|
||||||
)
|
.append(
|
||||||
.append(
|
$('<div>')
|
||||||
$('<div>')
|
.css({
|
||||||
.css({
|
margin: 8,
|
||||||
margin: 8,
|
textAlign: 'right'
|
||||||
textAlign: 'right'
|
})
|
||||||
})
|
.append(
|
||||||
.append(
|
$('<button>')
|
||||||
$('<button>')
|
.css({
|
||||||
.css({
|
marginRight: 5
|
||||||
marginRight: 5
|
})
|
||||||
})
|
.html(accept)
|
||||||
.html(accept)
|
.click(function() {
|
||||||
.click(function() {
|
Cookie.put(cookieName, true);
|
||||||
Cookie.put(cookieName, true);
|
container.remove();
|
||||||
container.remove();
|
})
|
||||||
})
|
)
|
||||||
)
|
.append(
|
||||||
.append(
|
$('<button>')
|
||||||
$('<button>')
|
.html(cancel)
|
||||||
.html(cancel)
|
.click(function() {
|
||||||
.click(function() {
|
window.location.href = 'about:blank';
|
||||||
window.location.href = 'about:blank';
|
})
|
||||||
})
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
.prependTo(
|
||||||
.prependTo(
|
$('body')
|
||||||
$('body')
|
)
|
||||||
)
|
})();
|
||||||
})();
|
</script>
|
||||||
</script>
|
|
||||||
<?= $this->partial('layouts/news') ?>
|
<?= $this->partial('layouts/news') ?>
|
||||||
<div id="header">
|
<div id="header">
|
||||||
<div id="title"><h2 id="site-title"><?= $this->linkTo($this->imageTag('images/logo_small.png', array('alt' => CONFIG()->app_name, 'size' => '389x40', 'id' => 'logo')), CONFIG()->url_base) ?><span><?= $this->tag_header($this->h($this->params()->tags)) ?></span></h2></div>
|
<div id="title"><h2 id="site-title"><?= $this->linkTo($this->imageTag('images/logo_small.png', array('alt' => CONFIG()->app_name, 'size' => '389x40', 'id' => 'logo')), CONFIG()->url_base) ?><span><?= $this->tag_header($this->h($this->params()->tags)) ?></span></h2></div>
|
||||||
|
Reference in New Issue
Block a user