mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
19 lines
500 B
HTML
19 lines
500 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
{{ super() }}
|
|
<script>
|
|
const u = new URL(window.location.href)
|
|
const url_query = new URLSearchParams({
|
|
width: window.innerWidth.toString(),
|
|
height: window.innerHeight.toString(),
|
|
url_host: u.host,
|
|
url_path: u.pathname,
|
|
url_hash: u.hash,
|
|
url_query: u.search,
|
|
referer: document.referrer,
|
|
})
|
|
fetch(`${window.location.origin}/flarelytics.txt?${url_query.toString()}`)
|
|
</script>
|
|
{% endblock %}
|