MCPcopy Create free account
hub / github.com/zxlie/FeHelper / initialInit

Function initialInit

apps/color-picker/content-script.js:318–336  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

316 }
317
318 function initialInit() {
319 removeExistingNodes();
320 c = FeHelper.elemTool.elm('img', {
321 id: elmid1,
322 src: blankgif,
323 style: 'position:fixed;max-width:none!important;max-height:none!important;top:0px;left:0px;margin:0px;padding:0px;overflow:hidden;z-index:2147483646;',
324 events: [['click', picked, true], ['load', snapshotLoaded]]
325 }, [], document.body);
326 n = FeHelper.elemTool.elm('div', {
327 id: elmid2,
328 style: 'position:fixed;min-width:30px;max-width:300px;box-shadow:2px 2px 2px #666;border:' + borderValue + ';border-radius:5px;z-index:2147483646;cursor:default;padding:10px;text-align:center;'
329 }, [], document.body);
330 document.addEventListener('mousemove', mmf);
331 addEventListener('keyup', wk);
332 addEventListener('scroll', ssf);
333 addEventListener('resize', ssf);
334 initializeCanvas();
335 remainingInit();
336 }
337
338 function enableColorPicker() {
339 disableColorPicker();

Callers 1

enableColorPickerFunction · 0.85

Calls 5

removeExistingNodesFunction · 0.85
addEventListenerFunction · 0.85
initializeCanvasFunction · 0.85
remainingInitFunction · 0.85
addEventListenerMethod · 0.45

Tested by

no test coverage detected