Widget:Globalnotice/en

  display: none; color:#000 !important; margin: 0px !important; padding: 0px !important; -webkit-border-radius: 5px 5px 5px 5px; -moz-border-radius: 5px 5px 5px 5px !important ; border-radius: 5px 5px 5px 5px; background-color:rgba(100%,100%,100%,1) !important; border-width: 1px !important; border-color: rgba( 0, 20, 45, .5) !important; border-style: solid !important; color: rgba( 0%,0%,0%,1) !important; box-shadow: 2px 2px 2px rgba(0%,0%,0%,0.2) !important; line-height: 1.2 !important; background: linear-gradient(to top, #efefef, #fff); }
 * 1) popupDiv {

padding:10px; font-size:14px; font-weight: bold; }
 * 1) maintext {

float: right; padding: 3px; }
 * 1) close {

$(document).ready(function {

// If the 'hide cookie is not set we show the message if (!readCookie('hide')) { $('#popupDiv').show; }

// Add the event that closes the popup and sets the cookie that tells us to // not show it again until one day has passed. $('#close').click(function {   $('#popupDiv').hide;    createCookie('hide', true, 1)    return false;  });

});

// --- // And some generic cookie logic // --- function createCookie(name,value,days) { if (days) { var date = new Date; date.setTime(date.getTime+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString; } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; }

function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; }

function eraseCookie(name) { createCookie(name,"",-1); }

Закрыть Dear users, WikiJournal is under development. Feel free to join the project and publish your articles. Post your ideas and suggestions and the WikiJournal discussion page.