MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / initializeResetLayoutLink

Function initializeResetLayoutLink

static/main.ts:391–400  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

389}
390
391function initializeResetLayoutLink() {
392 const currentUrl = document.URL;
393 if (currentUrl.includes('/z/')) {
394 $('#ui-brokenlink').attr('href', currentUrl.replace('/z/', '/resetlayout/')).show();
395 initShortlinkInfoButton();
396 } else {
397 $('#ui-brokenlink').hide();
398 hideShortlinkInfoButton();
399 }
400}
401
402function initPolicies(options: CompilerExplorerOptions) {
403 if (options.policies.privacy.enabled) {

Callers 1

startFunction · 0.85

Calls 4

initShortlinkInfoButtonFunction · 0.85
hideShortlinkInfoButtonFunction · 0.85
showMethod · 0.45
hideMethod · 0.45

Tested by

no test coverage detected