based.cooking/content/_index.md

79 lines
2.9 KiB
Markdown
Raw Normal View History

2022-05-09 02:41:11 +00:00
---
title: "🍲 Based Cooking 🍳"
2022-06-23 13:41:34 +00:00
description: 'The fast-loading recipe site with cooking only and no ads.'
2022-05-09 02:41:11 +00:00
---
## What do you want to cook?
2022-05-09 02:41:11 +00:00
2022-06-24 01:19:50 +00:00
<div class="search js-only">
<input type="text" id="search" placeholder="Search...">
<button id="clear-search">
<svg xmlns="http://www.w3.org/2000/svg" class="ionicon" viewBox="0 0 512 512"><title>Backspace</title><path d="M135.19 390.14a28.79 28.79 0 0021.68 9.86h246.26A29 29 0 00432 371.13V140.87A29 29 0 00403.13 112H156.87a28.84 28.84 0 00-21.67 9.84v0L46.33 256l88.86 134.11z" fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="32"></path><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="M336.67 192.33L206.66 322.34M336.67 322.34L206.66 192.33M336.67 192.33L206.66 322.34M336.67 322.34L206.66 192.33"></path></svg>
</button>
</div>
<script>
// @license magnet:?xt=urn:btih:5ac446d35272cc2e4e85e4325b146d0b7ca8f50c&dn=unlicense.txt Unlicense
document.addEventListener("DOMContentLoaded", () => {
2022-06-24 01:19:50 +00:00
for (e of document.getElementsByClassName("js-only")) {
e.classList.remove("js-only");
2022-06-24 01:19:50 +00:00
}
const recipes = document.querySelectorAll("#artlist li");
const search = document.getElementById("search");
const clearSearch = document.getElementById("clear-search");
const artlist = document.getElementById("artlist");
search.addEventListener("input", () => {
// grab search input value
const searchText = search.value.toLowerCase().trim();
const hasFilter = searchText.length > 0;
artlist.classList.toggle("list-searched", hasFilter);
// for each recipe hide all but matched
let matchCount = 0;
recipes.forEach(recipe => {
const recipeName = recipe.textContent.toLowerCase();
const isMatch = searchText.split(' ').every(term => recipeName.includes(term));
recipe.hidden = !isMatch;
recipe.classList.toggle("matched-recipe", hasFilter && isMatch);
})
})
clearSearch.addEventListener("click", () => {
search.value = "";
recipes.forEach(recipe => {
recipe.hidden = false;
recipe.classList.remove("matched-recipe");
})
artlist.classList.remove("list-searched");
})
})
// @license-end
</script>
2022-05-09 02:41:11 +00:00
{{< artlist >}}
## Or Browse by Category...
{{< tagcloud >}}
2022-05-09 02:41:11 +00:00
## About this site
Founded to provide a simple online cookbook without ads and obese web design.
See the story of this site unfold in three videos:
- [A Demonstration of Modern Web Bloat](https://odysee.com/@Luke:7/a-demonstration-of-modern-web-bloat:f)
- [The War Against Web Bloat Continues...](https://odysee.com/@Luke:7/the-war-against-web-bloat-continues...:a)
- [SoyDevs DESTROYED Epic Style by Based Cooking!](https://odysee.com/@Luke:7/soydevs-destroyed-epic-style-by-based:6)
## It's easy to contribute!
2022-05-28 19:03:28 +00:00
New recipes can be submitted [on Github](https://github.com/lukesmithxyz/based.cooking).
2022-05-09 02:41:11 +00:00
We are funded by you only, not 20MB of ads or privacy-violating trackers per page.
{{< crypto >}}