MCPcopy
hub / github.com/Semantic-Org/Semantic-UI / init

Function init

examples/assets/library/iframe-content.js:164–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162
163
164 function init() {
165 readDataFromParent();
166 log('Initialising iFrame ('+location.href+')');
167 readDataFromPage();
168 setMargin();
169 setBodyStyle('background',bodyBackground);
170 setBodyStyle('padding',bodyPadding);
171 injectClearFixIntoBodyElement();
172 checkHeightMode();
173 checkWidthMode();
174 stopInfiniteResizingOfIFrame();
175 setupPublicMethods();
176 startEventListeners();
177 inPageLinks = setupInPageLinks();
178 sendSize('init','Init message from host page');
179 readyCallback();
180 }
181
182 function readDataFromParent() {
183

Callers 1

fireInitFunction · 0.70

Calls 14

readDataFromParentFunction · 0.85
readDataFromPageFunction · 0.85
setMarginFunction · 0.85
setBodyStyleFunction · 0.85
checkHeightModeFunction · 0.85
checkWidthModeFunction · 0.85
setupPublicMethodsFunction · 0.85
startEventListenersFunction · 0.85
setupInPageLinksFunction · 0.85
sendSizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…