| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/HostingSpaces/admin/chatme24.com/wwwroot/_frameworks/mobile/urban_mobile/js/ |
Upload File : |
(function ($) {
"use strict";
var cookiePopupHtml = '<div id="cookie-popup-container">' +
'<div class="cookie-popup" style="display: none;">' +
'<div class="cookie-popup-inner">' +
'<div class="cookie-popup-left">' +
'<div class="cookie-popup-headline">This website uses cookies</div>' +
'<div class="cookie-popup-sub-headline">By using this site, you agree to our use of cookies.</div>' +
'</div>' +
'<div class="cookie-popup-right">' +
'<a href="#" class="cookie-popup-accept-cookies btn grey">Accept</a>' +
'<a href="#" class="cookie-popup-learn-more">Learn More</a>' +
'</div>' +
'</div>' +
'<div class="cookie-popup-lower" style="display: none;">' +
'Cookies are small files stored on your computer, which websites use to improve your browsing experience. They may be used to save your progress or user preferences.' +
'</div>' +
'</div>' +
'</div>';
var onAccept;
$.extend({
acceptCookies : function(options) {
var cookiesAccepted = getCookie("cookiesAccepted");
if (!cookiesAccepted) {
var cookiePopup = $(cookiePopupHtml);
var position = "bottom";
if(options != undefined) {
position = options.position != undefined ? options.position : "bottom";
if(options.title != undefined)
cookiePopup.find('.cookie-popup-headline').text(options.title);
if(options.text != undefined)
cookiePopup.find('.cookie-popup-sub-headline').html(options.text);
if(options.acceptButtonText != undefined)
cookiePopup.find(".cookie-popup-accept-cookies").text(options.acceptButtonText);
if(options.learnMoreButtonText != undefined)
cookiePopup.find(".cookie-popup-learn-more").text(options.learnMoreButtonText);
if(options.learnMoreInfoText != undefined)
cookiePopup.find(".cookie-popup-lower").text(options.learnMoreInfoText);
if(options.theme != undefined)
cookiePopup.addClass("theme-" + options.theme);
if(options.onAccept != undefined)
onAccept = options.onAccept;
if(options.learnMore != undefined) {
if(options.learnMore == false)
cookiePopup.find(".cookie-popup-learn-more").remove();
}
if(options.learnMoreText != undefined) {
cookiePopup.find(".cookie-popup-lower").html(options.learnMoreText);
}
}
cookiePopup.find('.cookie-popup').addClass("position-" + position);
$('body').append(cookiePopup);
$('.cookie-popup').delay(100).slideToggle();
}
}
});
$(document).on('click', '.cookie-popup-accept-cookies', function(e) {
e.preventDefault();
saveCookie();
$('.cookie-popup').slideToggle();
if (typeof onAccept === "function")
onAccept();
}).on('click', '.cookie-popup-learn-more', function(e) {
e.preventDefault();
$('.cookie-popup-lower').slideToggle();
});
function getCookie(cname) {
var name = cname + "=";
var decodedCookie = decodeURIComponent(document.cookie);
var ca = decodedCookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
}
if (c.indexOf(name) == 0) {
return c.substring(name.length, c.length);
}
}
return "";
}
function saveCookie() {
var expires = "expires=Tue, 01 Jan 2038 00:00:01 GMT";
document.cookie = "cookiesAccepted=true; " + expires + "; path=/";
}
}(jQuery));