Sha256: 530f3614c3847a6603fd1432928f0d2858ae2ff4ee24430dadfd79c5553a0754
Contents?: true
Size: 461 Bytes
Versions: 49
Compression:
Stored size: 461 Bytes
Contents
window.addEventListener("message", (event) => { if (event.data.type === "GET_HEIGHT") { const body = document.body; const html = document.documentElement; const height = Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight); parent.postMessage({ type: "SET_HEIGHT", height: height }, "*"); } }); $(() => { // Set target blank for all widget links. $('a').attr('target', '_blank'); });
Version data entries
49 entries across 49 versions & 2 rubygems