|
@@ -15,11 +15,39 @@
|
|
|
title="Simo Search"
|
|
title="Simo Search"
|
|
|
href="/opensearch.xml"
|
|
href="/opensearch.xml"
|
|
|
/>
|
|
/>
|
|
|
|
|
+ <script>
|
|
|
|
|
+ (function () {
|
|
|
|
|
+ function applyEmbedModeFromHash() {
|
|
|
|
|
+ var isEmbed =
|
|
|
|
|
+ (window.location.hash || "").indexOf("#embed") !== -1;
|
|
|
|
|
+ if (!isEmbed) return;
|
|
|
|
|
+
|
|
|
|
|
+ var container = document.querySelector(
|
|
|
|
|
+ ".view-home .container",
|
|
|
|
|
+ );
|
|
|
|
|
+ if (!container) return;
|
|
|
|
|
+
|
|
|
|
|
+ document.body.innerHTML = "";
|
|
|
|
|
+ document.body.appendChild(container);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (document.readyState === "loading") {
|
|
|
|
|
+ document.addEventListener(
|
|
|
|
|
+ "DOMContentLoaded",
|
|
|
|
|
+ applyEmbedModeFromHash,
|
|
|
|
|
+ );
|
|
|
|
|
+ } else {
|
|
|
|
|
+ applyEmbedModeFromHash();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ window.addEventListener("hashchange", applyEmbedModeFromHash);
|
|
|
|
|
+ })();
|
|
|
|
|
+ </script>
|
|
|
</head>
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
<body>
|
|
|
<div class="view-home">
|
|
<div class="view-home">
|
|
|
- <div class="container">
|
|
|
|
|
|
|
+ <div class="container" id="container">
|
|
|
<h1 class="hero-logo">Simo <span>Search</span></h1>
|
|
<h1 class="hero-logo">Simo <span>Search</span></h1>
|
|
|
<form action="/search" class="home-search-form">
|
|
<form action="/search" class="home-search-form">
|
|
|
<div class="search-input-wrapper">
|
|
<div class="search-input-wrapper">
|