PageSourceSearch

https://www.therapyportal.com/javascript/common/versionwarning.js

js therapyportal.com collected 2026-10-01 12:13:37 UTC 1,395 bytes, 2 lines download raw bytes

1SetupNamespaces("TN.Common"),TN.Common.VersionWarning={IsDisplaying:!1,Display:function(){if(0===window.location.pathname.toLowerCase().indexOf("/app/notes/edit/"))return;if(TN.Common.VersionWarning.IsDisplaying)return;const e="TopMainContentBanner";TN.Common.VersionWarning.IsDisplaying=!0;var n=Elem("div"),o="var(--psy-color-warning-weak)";n.style.width="100%",n.style.zIndex=1e5,n.style.textAlign="center",n.style.fontWeight="bold",n.style.padding="10px 0",n.style.whiteSpace="normal",n.style.borderBottom="1px solid #666666",n.style.backgroundColor=o,n.appendChild(Text("A new version of TherapyNotes is available. Please reload this page to update. The current page may not work correctly until you reload.")),n.appendChild(Elem("br"));var t=Elem("a"),a=Elem("a");t.href="#",t.style.marginRight="10px",t.onclick=function(){return window.location.reload(!0),!1},t.appendChild(Text("Reload this Page")),a.href="#",a.onclick=function(){try{Get(e).removeChild(n)}catch(e){}return TN.Common.VersionWarning.IsDisplaying=!1,!1},a.appendChild(Text("Dismiss this Message")),n.appendChild(t),n.appendChild(a),Get(e).appendChild(n);var i=function(){n.style.backgroundColor=o,n.style.transition="background-color 0.78s",n.style.backgroundColor="var(--psy-color-error-moderate)",setTimeout(function(){n.style.backgroundColor=o},1e3)};setInterval(i,1e4);i()}};
2//# sourceMappingURL=versionwarning.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.