MCPcopy
hub / github.com/SnapDrop/snapdrop / init

Function init

client/scripts/ui.js:583–594  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

581 let x0, y0, w, h, dw;
582
583 function init() {
584 w = window.innerWidth;
585 h = window.innerHeight;
586 c.width = w;
587 c.height = h;
588 let offset = h > 380 ? 100 : 65;
589 offset = h > 800 ? 116 : offset;
590 x0 = w / 2;
591 y0 = h - offset;
592 dw = Math.max(w, h, 1000) / 13;
593 drawCircles();
594 }
595 window.onresize = init;
596
597 function drawCircle(radius) {

Callers 1

ui.jsFile · 0.85

Calls 1

drawCirclesFunction · 0.85

Tested by

no test coverage detected