var tg_popup = '
';
var tg_css = '#security_popup { width: 400px; background-color: #F6F6F6; padding: 30px; border: #ECECEC solid 2px; margin-bottom: 56px; color: #71797C; text-align: center; font-family: sans-serif; } #security_popup a { text-decoration: none; color: #71797C; } #security_popup a:hover { text-decoration: underline; color: black; } #security_popup #tg_logo { display: block; margin: 0 auto; } #security_popup #tg_details { font-weight: bold; font-size: 14px; margin-right: -20px; } #security_popup .tg_pair { display: inline-block; } #security_popup .detail-value { color: #34A536; margin-right: 20px; } #security_popup #site-label { color: #9D9D9D; font-size: 26px; padding: 15px 0; } #security_popup #scan_box { text-align: left; margin: 10px auto; border: #ECECEC solid 2px; background-color: #FFFFFF; padding: 25px; } #security_popup ul { list-style-image: url(https://secure.trust-guard.com/seals/float/tg-float-popup-check.png); list-style-position: inside; } #security_popup ul li { margin: 20px 0; } #security_popup #scan_date { color: #B7B7B7; text-align: center; } #security_popup #referral_link { font-weight: bold; font-size: 14px; text-align: center; } #security_popup #referral_link a { font-weight: normal; } @media (max-width: 600px) { .tgfloat-inner { width: 100px; } #security_popup { display: none !important; } } ';
//Rewritten
function tgLoadScript(src) {
var js = window.document.createElement("script");
js.src = src;
js.type = "text/javascript";
document.getElementsByTagName("head")[0].appendChild(js);
}
function tgLoadStyle(css) {
var sastyle = document.createElement('style');
sastyle.type = 'text/css';
if (typeof(sastyle.styleSheet) != 'undefined' && typeof(sastyle.styleSheet.cssText) != 'undefined') {
sastyle.styleSheet.cssText = css;
}
else {
sastyle.innerHTML = css;
}
document.getElementsByTagName('head')[0].appendChild(sastyle);
}
//http://weblogs.asp.net/joelvarty/archive/2009/05/07/load-jquery-dynamically.aspx
var jQueryScriptOutputted = false;
var tg_jqTries = 0;
var tg_actiontaken = false;
function inittgJQfloat() {
//if the jQuery object isn't available
if (typeof(tgJQ) == 'undefined') {
if (! jQueryScriptOutputted) {
//only output the script once..
jQueryScriptOutputted = true;
tgLoadScript("//secure.trust-guard.com/seals/jquery.noconflict.js");
}
tg_jqTries++;
if (tg_jqTries > 200 && typeof(tg_troubleshoot) != 'undefined' && tg_troubleshoot == 3) {
startTicket('There was a problem loading JQuery.');
}
setTimeout("inittgJQfloat()", 50);
} else {
if (typeof(tg_troubleshoot) != 'undefined' && tg_troubleshoot == 3) {
writeTroubleShoot('JQuery loaded.', 'green');
}
tgJQ(function() {
if (tgJQ('.tgfloat').css('position') != 'fixed' && tgJQ('.tgfloat').css('position') != 'absolute' && tgJQ('.tgfloat').css('position') != 'relative') {
tgJQ(window).scroll(function() {
var bottom = -tgJQ(this).scrollTop();
tgJQ('.tgfloat').css({'bottom':bottom + "px", 'position':'absolute'});
});
var b = -tgJQ(window).scrollTop();
tgJQ('.tgfloat').css({'bottom':b + "px", 'position':'absolute'});
tgJQ('.tgfloat-inner').css({'bottom':"0px", 'position':'absolute'});
}
tgJQ('.tgfloat').hover( function () {
if (tgJQ(this).find('#security_popup').length == 0) {
if (tgJQ(this).hasClass('tgright')) {
tgJQ(this).prepend(tg_popup);
}
else {
tgJQ(this).prepend(tg_popup);
}
}
tgJQ(this).find('#security_popup').animate({opacity: 1}, 300,
function () {
tgJQ(this).css('display','block');
if ('ontouchstart' in window || 'onmsgesturechange' in window) {
tgJQ(this).animate({opacity: 0}, 3000, function() {
tgJQ(this).css('display','none');
});
}
});
},
function () {
tgJQ(this).find('#security_popup').animate({opacity: 0}, 300, function() {
tgJQ(this).css('display','none');
});
});
});
}
}
inittgJQfloat();
tgLoadStyle(tg_css);