<!-- UCCC -->
<style type="text/css">
.uccc {
top: 8%;
left: 8%;
width: auto;
height: auto;
margin: 20px;
padding: auto;
overflow: auto;
position: fixed;
display: none;
z-index: 32000;
background: #ffffcc;
background: linear-gradient(to right, #ffff99, #ffffcc);
border: 4px groove #ffffcc;
border-radius: 14px;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
font-size: 14px;
color: #000;
}
.uccc p {
margin: auto;
padding: auto;
text-align: left;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
font-size: 14px;
color: #000;
}
.uccc-content {
margin: auto;
padding: 20px;
border: 2px outset #ffff99;
border-radius: 14px;
}
.uccc-content p {
margin: auto;
padding: auto;
text-align: left;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
font-size: 14px;
color: #000;
}
.ulnk {
margin: auto;
padding: auto;
float: right;
text-align: right;
text-decoration: none;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
font-size: 14px;
font-weight: bold;
color: #aaa;
}
.ulnk:hover,
.ulnk:focus {
color: #888;
cursor: pointer;
text-decoration: none;
}
</style>
<div id="UCCC" class="uccc">
<div class="uccc-content">
<p><b>Cookies & Privacy Alert!</b></p>
<p>This website uses cookies!</p>
<p>By continuing using this web, you <a title="PP" href="https://ulike123.com/en/support/privacy.php">agree to our PP</a>. <br />You can, too, leave this web and clear your browser's history related to this web.</p>
<p> </p><span id="ulnkY" class="ulnk">Yes, use all cookies.</span><p> </p>
<p> </p><span id="ulnkS" class="ulnk">Yes, and show me the cookies.</span><p> </p>
<p> </p><span id="ulnkD" class="ulnk">No, and I'm declining this.</span><p> </p>
</div>
</div>
<script type="text/javascript">
/* Functions */
function setUCCC(name, value)
{
const date = new Date();
date.setFullYear(date.getFullYear() + 1);
const expires = "expires=" + date.toUTCString();
document.cookie = name + "=" + value + "; " + expires + "; SameSite=Strict; Secure; path=/;";
}
function getUCCC(name)
{
let res = "";
const duc = decodeURIComponent(document.cookie);
const arr = duc.split(';');
for (let i = 0; i < arr.length; i++)
{
const cok = arr[i].trim();
const [key, value] = cok.split("=");
if(key==name){ res = value; break; }
}
return(res);
}
function delUCCC(name)
{
let this_web = location.hostname;
this_web = this_web.trim();
const date = new Date();
date.setFullYear(date.getFullYear() - 1);
const expires = "expires=" + date.toUTCString();
document.cookie = name + "=; " + expires + "; path=/;";
document.cookie = name + "=; domain=" +this_web+ "; " + expires + "; path=/;";
document.cookie = name + "=; domain=." +this_web+ "; " + expires + "; path=/;";
}
function IsCookiesEnabled()
{
setUCCC("UCCC_TEST_IS_COOKIES_ENABLED", "1");
if(getUCCC("UCCC_TEST_IS_COOKIES_ENABLED")=="1")
{
delUCCC("UCCC_TEST_IS_COOKIES_ENABLED");
return(true);
}
return(false);
}
function TryKeepingCookiesDisclosedForVisitor()
{
let res = "\r\n";
const duc = decodeURIComponent(document.cookie);
const arr = duc.split(';');
for (let i = 0; i < arr.length; i++)
{
const cok = arr[i].trim();
const [name, value] = cok.split("=");
if(name)
res += i+1 + ". Found cookie: " + name + "\r\n";
}
return(arr.length ? res : "");
}
function ShowCookies()
{
let res = TryKeepingCookiesDisclosedForVisitor();
setTimeout(() =>
{
setUCCC("UCCC", "2");
if(getUCCC("UCCC")=="2")
{
if(res==""){ res = "\r\nNo cookie(s) found!\r\n"; }
res = "UCCC cookie option saved!\r\n\r\nResult:\r\n" + res + "\r\nNote: \r\n - Refer to this website's Privacy Policy to read more... \r\n - Clear this web cookies history using browser's \r\n settings, if unwanted, manually. \r\n - Dismiss this prompt by pressing(ex: Yes, OK, etc.) or... \r\n - Press(ex: No, Cancel, etc.) for continuing alerting!";
if(confirm(res))
{ setUCCC("UCCC", "3"); }
}
else{ alert("Couldn't save UCCC cookies option!"); }
}, 3000);
}
function CookiesBye()
{
alert("Due to cookies being not enabled by your browser's settings: \r\n - Couldn't revise this web cookies option named \"UCCC\". \r\n - You may find it in browser's history by this web name \r\n and delete it manually if unwanted.");
}
/* Clicks */
var uccc = document.getElementById("UCCC");
const spanY = document.getElementById("ulnkY");
const spanS = document.getElementById("ulnkS");
const spanD = document.getElementById("ulnkD");
spanY.onclick = function()
{
if(IsCookiesEnabled())
{ setUCCC("UCCC", "1"); }
else{ CookiesBye(); }
uccc.style.display = "none";
}
spanS.onclick = function()
{
if(IsCookiesEnabled())
{ ShowCookies(); }
else{ CookiesBye(); }
uccc.style.display = "none";
}
spanD.onclick = function()
{
if(IsCookiesEnabled())
{
delUCCC("UCCC");
alert("Alert! \r\n\r\n - You may clear and\\or stop cookies under this web name manually. \r\n - Kindly, revise your browser's cookies settings and\\or history and... \r\n - Close all this web related tab(s) and\\or window(s).");
}
else{ CookiesBye(); }
uccc.style.display = "none";
}
/* UCCC Cookie
ucccCookie=="" New/No and general prompt is active
ucccCookie=="1" Yes and general prompt is dismissed
ucccCookie=="2" Yes and ShowCookies prompt is active
ucccCookie=="3" Yes and ShowCookies prompt is dismissed */
const ucccCookie = getUCCC("UCCC");
if(ucccCookie=="") { uccc.style.display = "block"; }
if(ucccCookie=="2"){ ShowCookies(); }
</script>
<!-- UCCC -->