rename window.loadContent to window.loadFormContent

This commit is contained in:
wearrrrr 2024-02-20 13:23:32 -06:00
parent e2b3d7cdc6
commit 1cab054da7
3 changed files with 4 additions and 4 deletions

View file

@ -91,7 +91,7 @@
event.preventDefault(); event.preventDefault();
loadContent(); loadContent();
} }
window.loadContent = loadContent; window.loadFormContent = loadContent;
function isUrl(val = "") { function isUrl(val = "") {
if (/^http(s?):\/\//.test(val) || (val.includes(".") && val.substr(0, 1) !== " ")) return true; if (/^http(s?):\/\//.test(val) || (val.includes(".") && val.substr(0, 1) !== " ")) return true;

View file

@ -54,8 +54,8 @@ const { title, optionalPreloads } = Astro.props;
:root { :root {
--background-color: #080808; --background-color: #080808;
--background-highlight: #252525; --background-highlight: #252525;
--accent-color: #6b00c9; --accent-color: #4a008a;
--accent-color-brighter: #7e00e0; --accent-color-brighter: #5f03a5;
--text-color: #fff; --text-color: #fff;
--text-color-accent: #c7c7c7; --text-color-accent: #c7c7c7;
--dropdown-background-color: #1e1e1e; --dropdown-background-color: #1e1e1e;

View file

@ -81,7 +81,7 @@ export function getStaticPaths() {
console.log("here") console.log("here")
urlInput.value = suggestion.phrase; urlInput.value = suggestion.phrase;
// I can't be bothered to extend the window object, so I'm just going to use any // I can't be bothered to extend the window object, so I'm just going to use any
(window as any).loadContent(); (window as any).loadFormContent();
}); });
searchSuggestions.appendChild(suggestionElement); searchSuggestions.appendChild(suggestionElement);
}); });