Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4120430
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
Wed, Aug 19, 04:01 (5 d, 5 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
71/57/6ea46d5fbd9edd4d6b7950f82403
Default Alt Text
currentPageHTMLParser.js (642 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment