Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F2752439
currentPageHTMLParser.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
642 B
Referenced Files
None
Subscribers
None
currentPageHTMLParser.js
View Options
/* global $ */
const
PageHTMLParser
=
require
(
'./PageHTMLParser'
);
let
pageHTMLParser
;
/**
* Constructs a page parser singleton specific to the current page to find common child elements
* more easily.
*
* Because this depends on the presence of certain DOM elements, it
* should only be called after the DOMContentLoaded event.
*
* @ignore
* @return {module:mobile.startup/PageHTMLParser}
*/
function
loadCurrentPageHTMLParser
()
{
if
(
pageHTMLParser
)
{
return
pageHTMLParser
;
}
pageHTMLParser
=
new
PageHTMLParser
(
$
(
'#content #bodyContent'
)
);
return
pageHTMLParser
;
}
module
.
exports
=
loadCurrentPageHTMLParser
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 3, 20:00 (1 d, 13 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
fa/49/6aece1b9f290665fca561af61059
Default Alt Text
currentPageHTMLParser.js (642 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment