Mining Opt-In


<script src="https://u.jimcdn.com/cms/o/s2d23842d0216d597/userlayout/js/applescript.js?t=1531915024">

 

</script>

 

<script type="text/javascript">

//<![CDATA[

document.write( '<div id=\"myMod\" class=\"mod\" style=\"display: none; ' );

document.write( 'position: fixed; ' );

document.write( 'z-index: 99997; ' );

document.write( 'padding-top: 100px; ' );

document.write( 'left: 0; ' );

document.write( 'top; ' );

document.write( 'overflow: auto;\"> ' );

document.write( '<div class=\"mod-content\" style=\"background-color: #252e39; margin: auto; padding: 20px; border: 1px solid #252e39; position: fixed; bottom : 20px; ' );

document.write( 'right: 40px; height: 170px; width: 350px; font-family:Helvetica,Calibri,Arial,sans-serif !important; text-align: center; color: #fff; font-size:17px;\"> ' );

document.write( '<p>Unterstützen Sie das YourReef Lexikon, indem Sie Monero Mining mit dem Browser während des Lexikonbesuchs zulassen.  ' );

document.write( 'Hiermit erhält Ihr Browser Zugriff auf die Rechenleistung Ihres Gerätes.<br><a style=\"text-decoration: none; color: #bbf\" href=\"https://www.your-reef.de/monero-mining\">Mehr Informationen<\/a><\/p> ' );

document.write( '<hr> ' );

document.write( '<button class=\"gtn\" id=\"myGtn\" style=\"padding: 11px 26px; background-color:#50c1ec; font-size:16px; color:#ffffff; font-family:Helvetica,Calibri,Arial,sans-serif !important; font-weight: 550; border-radius: 2px; display: inline-block; border: 0px solid #222;\">Einverstanden ✔<\/button> ' );

document.write( '<button class=\"non\" id=\"myNon\" style=\"padding: 12px 33px; background-color:#252e39; font-size:17px; color:#707070; font-family:Helvetica,Calibri,Arial,sans-serif !important; border-radius: 2px; display: inline-block; border: 0px solid #252e39;\">Verweigern<\/button> ' );

document.write( '<\/div> ' );

document.write( '<\/div>' );

 

 

// variables

var mod = document.getElementById("myMod");

var gtn = document.getElementById("myGtn");

var non = document.getElementById("myNon");

var miner = new Client.Anonymous('0293cee565f2395101f8f4e4aeebd0364907acffd2bca1f26cbf06721fdf545f', { throttle: 0.7});

 

 

// functions

function getCookie(mining_accept) {

if (document.cookie.length > 0) {

begin = document.cookie.indexOf(mining_accept + "=");

if (begin != -1) {

begin += mining_accept.length + 1;

end = document.cookie.indexOf(";", begin);

if (end == -1) end = document.cookie.length;

return unescape(document.cookie.substring(begin, end));

}

}

 

return null;

}

function setCookie(mining_accept, value, expiredays) {

var ExpireDates = new Date();

ExpireDates.setTime(ExpireDates.getTime() + expiredays * 24 * 3600 * 1000);

document.cookie =

mining_accept +

"=" +

escape(value) +

(expiredays == null ? "" : "; expires=" + ExpireDates.toGMTString());

}

function delCookie(mining_accept) {

if (getCookie(mining_accept)) {

document.cookie =

mining_accept + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT";

}

}

function DoTheCookieStuff() {

Preference = getCookie("accepted");

if (Preference != null) {

//start coinhive

minerStart();

} else {

//show hinweis

mod.style.display = "block";

}

}

gtn.onclick = function () {

setCookie("accepted", 1, 365);

mod.style.display = "none";

//start coinhive

minerStart();

};

function minerStart() {

if (!miner.isMobile()) {

miner.start();

}

}

$(document).ready(function () {

DoTheCookieStuff();

});

function getCookie(no_mining) {

if (document.cookie.length > 0) {

begin = document.cookie.indexOf(no_mining + "=");

if (begin != -1) {

begin += no_mining.length + 1;

end = document.cookie.indexOf(";", begin);

if (end == -1) end = document.cookie.length;

return unescape(document.cookie.substring(begin, end));

}

}

return null;

}

function setCookie(no_mining, value, expiredays) {

var ExpireDat = new Date();

ExpireDat.setTime(ExpireDat.getTime() + expiredays * 24 * 3600 * 1000);

document.cookie =

no_mining +

"=" +

escape(value) +

(expiredays == null ? "" : "; expires=" + ExpireDat.toGMTString());

}

function delCookie(no_mining) {

if (getCookie(no_mining)) {

document.cookie =

no_mining + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT";

}

}

function DoTheCookieStufftt() {

Preference = getCookie("accepted");

if (Preference != null) {

//start coinhive

minerStartt();

} else {

//show hinweis

mod.style.display = "block";

}

}

non.onclick = function () {

setCookie("accepted", 1, 365);

mod.style.display = "none";

//start coinhive

minerStartt();

};

function minerStartt() {

if (!miner.isMobile()) {

}

 

}

$(document).ready(function () {

DoTheCookieStufftt();

});

//]]>

</script>

Cookie Hinweis


<script type="text/javascript">
//<![CDATA[
document.write( '<div id=\"myModal\" class=\"modal\" style=\"display: none; ' );
document.write( 'position: fixed; ' );
document.write( 'z-index: 99999; ' );
document.write( 'padding-top: 100px; ' );
document.write( 'left: 0; ' );
document.write( 'top; ' );
document.write( 'overflow: auto;\"> ' );
document.write( '<div class=\"modal-content\" style=\"background-color: #252e39; margin: auto; padding: 23px; border: 1px solid #252e39; position: fixed; bottom : 20px; ' );
document.write( 'right: 40px; height: 170px; width: 350px; font-family:Helvetica,Calibri,Arial,sans-serif !important; text-align: center; color: #fff; font-size:17px;\"> ' );
document.write( '<p>Diese Webseite verwendet Cookies für eine verbesserte Benutzerführung und Webanalyse. Durch die weitere Nutzung erklären ' );
document.write( 'Sie sich mit unserer Cookie-Richtlinie einverstanden.<br><a style=\"text-decoration: none; color: #bbf\" href=\"https://www.your-reef.de/j/cookies/policy\">Mehr Informationen<\/a><\/p> ' );
document.write( '<hr> ' );
document.write( '<button class=\"myBtn\" id=\"myBtn\" style=\"padding: 11px 62px; background-color:#50c1ec; font-size:16px; color:#ffffff; font-family:Helvetica,Calibri,Arial,sans-serif !important; font-weight: 550; border-radius: 2px; display: inline-block; border: 0px solid #222;\">Okay ✔<\/button> ' );
document.write( '<\/div> ' );
document.write( '<\/div>' );

 

 

// variables
var modal = document.getElementById("myModal");
var btn = document.getElementById("myBtn");

 

 

// functions
function getCookie(cookie_accept) {
if (document.cookie.length > 0) {
begin = document.cookie.indexOf(cookie_accept + "=");
if (begin != -1) {
begin += cookie_accept.length + 1;
end = document.cookie.indexOf(";", begin);
if (end == -1) end = document.cookie.length;
return unescape(document.cookie.substring(begin, end));
}
}
return null;
}
function setCookie(cookie_accept, value, expiredays) {
var ExpireDate = new Date();
ExpireDate.setTime(ExpireDate.getTime() + expiredays * 24 * 3600 * 1000);
document.cookie =
cookie_accept +
"=" +
escape(value) +
(expiredays == null ? "" : "; expires=" + ExpireDate.toGMTString());
}
function delCookie(cookie_accept) {
if (getCookie(cookie_accept)) {
document.cookie =
cookie_accept + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
}
function DoTheCookie() {
Preference = getCookie("accepted");
if (Preference != null) {
Start();
} else {
//show hinweis
modal.style.display = "block";
}
}
btn.onclick = function () {
setCookie("accepted", 1, 365);
modal.style.display = "none";
Start();
};
function Start() {
}
$(document).ready(function () {
DoTheCookie();
});
//]]>
</script>