Taylor Courage b2d27837ac - Added basic display for results, needs work
- Added new tool to tools.js used to checking if a page is loaded in a frame or by itself

- Removed old division-based .html displays, no longer relevant
2025-03-06 06:30:50 -05:00

26 lines
758 B
JavaScript

function resizeIframe(obj) {
obj.style.height = "200px";
obj.style.width = "100px";
obj.style.height = obj.contentWindow.document.documentElement.scrollHeight + 'px';
obj.style.width = obj.contentWindow.document.documentElement.scrollWidth + 'px';
}
function getURL(path) {
// Gets the URL so we can re-direct the user back to where they came from
if (path == undefined) {
path = "";
}
return window.location.href + path;
}
function verifyPageInFrame() {
// Verify that the page was loaded in an iFrame
// Otherwise back to the homepage they go!
var mainURL = window.location.origin;
console.log(mainURL);
if (window.self !== window.top) {
} else {
window.location = mainURL;
}
}