Differenze tra le versioni di "MediaWiki:Common.js"

Sometimes JavaScript has nice semantic features
m
(Sometimes JavaScript has nice semantic features)
cookieName: 'sitenotice-displayed-count',
HTML: '',
maxDisplayCount: 5,
};
getCookie: function() {
 
return parseInt(jQuery.cookie(this.cookieName) || 0);
sitenotice.updateCookie = function(currValue) {
},
jQuery.cookie(sitenotice.cookieName, currValue + 1, {path: '/'});
return this;
sitenotice. updateCookie =: function(currValue) {
};
jQuery.cookie(sitenoticethis.cookieName, currValue + 1, {path: '/'});
 
return this;
sitenotice.display = function() {
},
jQuery(sitenotice.HTML).prependTo('#content');
return this;
sitenotice. display =: function() {
jQuery(sitenoticethis.HTML).prependTo('#content');
return this;
}
};
 
if (sitenotice.HTML !== '') {
var displayedCount = parseInt(jQuerysitenotice.cookiegetCookie(sitenotice.cookieName) || 0);
 
if (displayedCount <= sitenotice.maxDisplayCount) {