MCPcopy Index your code
hub / github.com/zeman/perfmap / getPositionOfMarker

Function getPositionOfMarker

perfmap.js:55–65  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

53 }
54}
55function getPositionOfMarker(element) {
56 var parentElem = element.parentElement;
57 while (parentElem) {
58 var style = window.getComputedStyle(parentElem);
59 if (style["position"] == "fixed") {
60 return "fixed";
61 }
62 parentElem = parentElem.parentElement;
63 }
64 return "absolute";
65}
66
67function placeMarker(xy, width, height, position, entry, body, url) {
68 var heat = entry.responseEnd / loaded;

Callers 1

findImagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected