Formatting

This commit is contained in:
squidfunk 2022-12-11 17:55:49 +01:00
parent 944180d572
commit c4c99f8915
8 changed files with 12 additions and 14 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -234,13 +234,13 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.c0285e69.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.e1167f37.min.js' | url }}"></script>
{% for path in config.extra_javascript %}
<script src="{{ path | url }}"></script>
{% endfor %}
{% endblock %}
{% if page.meta and page.meta.ᴴₒᴴₒᴴₒ %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/extra.73715943.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/extra.c507a49a.min.css' | url }}">
<script src="{{ 'assets/javascripts/extra/bundle.f719a234.min.js' | url }}" defer></script>
{% endif %}
</body>

View File

@ -148,14 +148,12 @@ export function mountPalette(
const { backgroundColor } = window.getComputedStyle(header)
/* Return color in hexadecimal format */
return `#${
backgroundColor.match(/\d+/g)!
.map(value => (+value).toString(16).padStart(2, "0"))
.join("")
}`
return backgroundColor.match(/\d+/g)!
.map(value => (+value).toString(16).padStart(2, "0"))
.join("")
})
)
.subscribe(color => meta.content = color)
.subscribe(color => meta.content = `#${color}`)
/* Revert transition durations after color switch */
push$.pipe(observeOn(asyncScheduler))