MCPcopy Index your code
hub / github.com/gto76/python-cheatsheet / initDom

Function initDom

parse.js:724–730  ·  view source on GitHub ↗
(html)

Source from the content-addressed store, hash-verified

722}
723
724function initDom(html) {
725 const { JSDOM } = jsdom;
726 const dom = new JSDOM(html);
727 const $ = (require('jquery'))(dom.window);
728 global.$ = $;
729 global.document = dom.window.document;
730}
731
732function modifyPage() {
733 changeMenu();

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected