Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4144326
jquery.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
jquery.js
View Options
const
jar
=
require
(
'./jar.js'
);
/**
* Set a cookie.
*
* To use this {@link jQuery} plugin, load the `mediawiki.cookie` module using {@link mw.loader}.
*
* @memberof module:mediawiki.cookie
* @method
* @param {string} [key] Cookie name or (when getting) omit to return an object with all
* current cookie keys and values.
* @param {string|null} [value] Cookie value to set. If `null`, this method will remove the cookie.
* If omited, this method will get and return the current value.
* @param {module:mediawiki.cookie~CookieOptions} [options]
* @return {string|Object} The current value (if getting a cookie), or an internal `document.cookie`
* expression (if setting or removing).
*
* @example
* mw.loader.using( 'mediawiki.cookie' ).then( () => {
* $.cookie( 'name', 'value', {} );
* } );
*/
$
.
cookie
=
jar
.
cookie
;
/**
* Remove a cookie by key.
*
* To use this {@link jQuery} plugin, load the `mediawiki.cookie` module using {@link mw.loader}.
*
* @example
* mw.loader.using( 'mediawiki.cookie' ).then( () => {
* $.removeCookie( 'name', {} );
* } );
*
* @memberof module:mediawiki.cookie
* @method
* @param {string} key
* @param {module:mediawiki.cookie~CookieOptions} options
* @return {boolean} True if the cookie previously existed
*/
$
.
removeCookie
=
jar
.
removeCookie
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Aug 19 2026, 17:10 (4 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ec/72/06ecd8324c6f7afc87a898c50f48
Default Alt Text
jquery.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment