Merged features tied to Royal Gold funding goal

This commit is contained in:
squidfunk
2022-07-20 17:25:55 +02:00
parent 5a9c295822
commit de438d5d9d
55 changed files with 1205 additions and 120 deletions

View File

@@ -29,6 +29,9 @@
/* Compute base path once to integrate with instant loading */
__md_scope = new URL("{{ config.extra.scope | d(base_url) }}", location)
/* Compute hash from the given string - see https://bit.ly/3pvPjXG */
__md_hash = v => [...v].reduce((h, c) => (h << 5) - h + c.charCodeAt(0), 0)
/* Fetch the value for a key from the given storage */
__md_get = (key, storage = localStorage, scope = __md_scope) => (
JSON.parse(storage.getItem(scope.pathname + "." + key))