Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5958911
ext.centralNotice.legacySupport.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
662 B
Referenced Files
None
Subscribers
None
ext.centralNotice.legacySupport.js
View Options
/**
* Provides features to support legacy campaigns. With this mixin, campaigns may:
* - set a rate for Special:RecordImpression that's different from the default; and
* - signal that banners are not guaranteed to display.
*/
(
function
()
{
var
cn
=
mw
.
centralNotice
,
mixin
=
new
cn
.
Mixin
(
'legacySupport'
);
mixin
.
setPreBannerHandler
(
function
(
mixinParams
)
{
if
(
mixinParams
.
setSRISampleRate
)
{
cn
.
setMinRecordImpressionSampleRate
(
mixinParams
.
sriSampleRate
);
}
if
(
mixinParams
.
bannersNotGuaranteedToDisplay
)
{
cn
.
setBannersNotGuaranteedToDisplay
();
}
}
);
// Register the mixin
cn
.
registerCampaignMixin
(
mixin
);
}()
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 3, 06:06 (2 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
9f/30/1e2caf6440fe8984aff2c4521cb3
Default Alt Text
ext.centralNotice.legacySupport.js (662 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment