//UPDATED 9/18/2023 @ 3:00 PM
////////////////////////////////////////////////////////////////////////////////////////////////////////
jQuery(document).ready(function() {
//ShowMessage();
});
///////////////////////////////////////////////////
function ShowMessage() {
console.log('Adding message bar');
var vID = ChooseBar();
var vUsePage = false;
//-------------------
if (vID == 1) { //NN Message
vBlock = '';
};
if (vID == 2) { //NT Message
vBlock = '';
};
if (vID == 3) { //Default Message
vBlock = '
';
vBlock += '
';
vBlock += '
';
};
//-------------------
if (jQuery('.Page').length) {
var vPosition = jQuery(".Page").css("position");
if (vPosition == 'absolute') {
vUsePage = true;
};
};
//-------------------
if (vUsePage == true) {
if ($('.Layer2').length) {
jQuery('.Layer2').prepend(vBlock);
} else {
jQuery('.Page').prepend(vBlock);
};
} else {
jQuery('body').prepend(vBlock);
};
};
///////////////////////////////////////////////////
function ChooseBar() {
var vDomain = document.location.hostname;
vDomain = vDomain.replace('www.', '');
vID = 3; //default
if (vDomain == 'naturalnews.com') {
var vID = 1;
};
if (vDomain == 'newstarget.com') {
var vID = 2;
};
return vID;
};
///////////////////////////////////////////////////