MCPcopy Index your code
hub / github.com/hoothin/UserScripts / setSelectorDiv

Method setSelectorDiv

Pagetual/pagetual.user.js:9276–9293  ·  view source on GitHub ↗
(selector)

Source from the content-addressed store, hash-verified

9274 }
9275
9276 setSelectorDiv(selector) {
9277 let self = this;
9278 setHTML(this.allpath, "");
9279 if (selector) {
9280 if (this.xpath.checked) {
9281 let span = document.createElement("span");
9282 span.innerText = selector;
9283 span.addEventListener("click", e => {
9284 self.selectorInput.value = selector;
9285 self.checkInputSelector();
9286 }, true);
9287 this.allpath.appendChild(span);
9288 } else {
9289 selector.split(">").forEach((item, index) => self.geneSelectorItem(item, index));
9290 }
9291 }
9292 this.checkInputSelector();
9293 }
9294
9295 geneSelectorItem(item, index) {
9296 let self = this;

Callers 2

startMethod · 0.95
initMethod · 0.80

Calls 3

checkInputSelectorMethod · 0.95
geneSelectorItemMethod · 0.80
setHTMLFunction · 0.70

Tested by

no test coverage detected