diff options
| author | xengineering <me@xengineering.eu> | 2024-03-03 19:14:26 +0100 | 
|---|---|---|
| committer | xengineering <me@xengineering.eu> | 2024-03-03 19:21:45 +0100 | 
| commit | fc8160d4404f18042b7d265f2f595e4a3d75242b (patch) | |
| tree | 1de75df9171b1ad62b72e6027d55e0e4dccaf45e /view/html/recipes.html | |
| parent | d35bd7c65d062ca30852c901f6e98a05ceb309d7 (diff) | |
| download | ceres-fc8160d4404f18042b7d265f2f595e4a3d75242b.tar ceres-fc8160d4404f18042b7d265f2f595e4a3d75242b.tar.zst ceres-fc8160d4404f18042b7d265f2f595e4a3d75242b.zip | |
view: Move all JavaScript code to ceres.js
This allows to cache the involved JavaScript code.
Diffstat (limited to 'view/html/recipes.html')
| -rw-r--r-- | view/html/recipes.html | 20 | 
1 files changed, 1 insertions, 19 deletions
| diff --git a/view/html/recipes.html b/view/html/recipes.html index b5bf786..0287dc5 100644 --- a/view/html/recipes.html +++ b/view/html/recipes.html @@ -15,25 +15,7 @@  			</ul>  		</main>  		{{ template "footer" }} -		<script> -			function filter() { -				var input, query, ul, li, a, i, txtValue; -				input = document.getElementById('search'); -				query = input.value.toUpperCase(); -				ul = document.getElementById("recipes"); -				li = ul.getElementsByTagName('li'); - -				for (i = 0; i < li.length; i++) { -					a = li[i].getElementsByTagName("a")[0]; -					txtValue = a.textContent || a.innerText; -					if (txtValue.toUpperCase().indexOf(query) > -1) { -						li[i].style.display = ""; -					} else { -						li[i].style.display = "none"; -					} -				} -			} -		</script> +		<script src="/static/view/static/ceres.js"></script>  	</body>  </html>  {{end}} | 
