mirror of
https://gitlab.com/thelazyoxymoron/siddhartha-golu-website.git
synced 2025-07-27 08:57:59 +02:00
474 lines
27 KiB
HTML
474 lines
27 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en" dir="auto">
|
||
|
||
<head><meta charset="utf-8">
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||
<meta name="robots" content="index, follow">
|
||
<title>Oslo, August 31st (2011) by Joachim Trier | Siddhartha Golu</title>
|
||
<meta name="keywords" content="foreign-cinema, norwegian">
|
||
<meta name="description" content="Verdict: ★ ★ ★ ★ ☆ Check out this review on Letterboxd
|
||
Anhedonia. The Wikipedia entry for this word says:
|
||
a diverse array of deficits in hedonic function, including reduced motivation or ability to experience pleasure.
|
||
At one point or another, we have all experienced some version of this phenomenon - may be characterized by an oversaturation of love, or caused by a prolonged mediocrity in life, or as in the case of our protagonist here, the complete loss of will and motivation to feel anything.">
|
||
<meta name="author" content="Siddhartha Golu">
|
||
<link rel="canonical" href="https://www.siddharthagolu.com/posts/cinema/oslo-august/">
|
||
<script async defer data-website-id="34ce8dc6-488b-49ee-9a2f-8e70a7009f17" src="https://batman.siddharthagolu.com/batman.js"></script>
|
||
<link crossorigin="anonymous" href="/assets/css/stylesheet.4f5576b27f1a8ee2d1559082cedf1e9ca257ea9b767d9780cb0718c2435f78e5.css" integrity="sha256-T1V2sn8ajuLRVZCCzt8enKJX6pt2fZeAywcYwkNfeOU=" rel="preload stylesheet" as="style">
|
||
<script defer crossorigin="anonymous" src="/assets/js/highlight.f413e19d0714851f6474e7ee9632408e58ac146fbdbe62747134bea2fa3415e0.js" integrity="sha256-9BPhnQcUhR9kdOfuljJAjlisFG+9vmJ0cTS+ovo0FeA="
|
||
onload="hljs.initHighlightingOnLoad();"></script>
|
||
<link rel="icon" href="https://www.siddharthagolu.com/favicon.ico">
|
||
<link rel="icon" type="image/png" sizes="16x16" href="https://www.siddharthagolu.com/favicon-16x16.png">
|
||
<link rel="icon" type="image/png" sizes="32x32" href="https://www.siddharthagolu.com/favicon-32x32.png">
|
||
<link rel="apple-touch-icon" href="https://www.siddharthagolu.com/apple-touch-icon.png">
|
||
<link rel="mask-icon" href="https://www.siddharthagolu.com/safari-pinned-tab.svg">
|
||
<meta name="theme-color" content="#2e2e33">
|
||
<meta name="msapplication-TileColor" content="#2e2e33">
|
||
<noscript>
|
||
<style>
|
||
#theme-toggle,
|
||
.top-link {
|
||
display: none;
|
||
}
|
||
|
||
</style>
|
||
<style>
|
||
@media (prefers-color-scheme: dark) {
|
||
:root {
|
||
--theme: rgb(29, 30, 32);
|
||
--entry: rgb(46, 46, 51);
|
||
--primary: rgb(218, 218, 219);
|
||
--secondary: rgb(155, 156, 157);
|
||
--tertiary: rgb(65, 66, 68);
|
||
--content: rgb(196, 196, 197);
|
||
--hljs-bg: rgb(46, 46, 51);
|
||
--code-bg: rgb(55, 56, 62);
|
||
--border: rgb(51, 51, 51);
|
||
}
|
||
|
||
.list {
|
||
background: var(--theme);
|
||
}
|
||
|
||
.list:not(.dark)::-webkit-scrollbar-track {
|
||
background: 0 0;
|
||
}
|
||
|
||
.list:not(.dark)::-webkit-scrollbar-thumb {
|
||
border-color: var(--theme);
|
||
}
|
||
}
|
||
|
||
</style>
|
||
</noscript><!-- isso -->
|
||
<script data-isso="https://comments.siddharthagolu.com/" src="https://comments.siddharthagolu.com/js/embed.min.js"></script>
|
||
<!-- end isso -->
|
||
<meta property="og:title" content="Oslo, August 31st (2011) by Joachim Trier" />
|
||
<meta property="og:description" content="Verdict: ★ ★ ★ ★ ☆ Check out this review on Letterboxd
|
||
Anhedonia. The Wikipedia entry for this word says:
|
||
a diverse array of deficits in hedonic function, including reduced motivation or ability to experience pleasure.
|
||
At one point or another, we have all experienced some version of this phenomenon - may be characterized by an oversaturation of love, or caused by a prolonged mediocrity in life, or as in the case of our protagonist here, the complete loss of will and motivation to feel anything." />
|
||
<meta property="og:type" content="article" />
|
||
<meta property="og:url" content="https://www.siddharthagolu.com/posts/cinema/oslo-august/" />
|
||
<meta property="og:image" content="https://www.siddharthagolu.com/images/oslo-august-31.jpg" /><meta property="article:section" content="posts" />
|
||
<meta property="article:published_time" content="2020-06-04T14:39:00+05:30" />
|
||
<meta property="article:modified_time" content="2022-05-01T23:09:23+05:30" /><meta property="og:site_name" content="Siddhartha Golu" />
|
||
|
||
<meta name="twitter:card" content="summary_large_image" />
|
||
<meta name="twitter:image" content="https://www.siddharthagolu.com/images/oslo-august-31.jpg" />
|
||
<meta name="twitter:title" content="Oslo, August 31st (2011) by Joachim Trier"/>
|
||
<meta name="twitter:description" content="Verdict: ★ ★ ★ ★ ☆ Check out this review on Letterboxd
|
||
Anhedonia. The Wikipedia entry for this word says:
|
||
a diverse array of deficits in hedonic function, including reduced motivation or ability to experience pleasure.
|
||
At one point or another, we have all experienced some version of this phenomenon - may be characterized by an oversaturation of love, or caused by a prolonged mediocrity in life, or as in the case of our protagonist here, the complete loss of will and motivation to feel anything."/>
|
||
|
||
|
||
<script type="application/ld+json">
|
||
{
|
||
"@context": "https://schema.org",
|
||
"@type": "BreadcrumbList",
|
||
"itemListElement": [
|
||
{
|
||
"@type": "ListItem",
|
||
"position": 1 ,
|
||
"name": "Posts",
|
||
"item": "https://www.siddharthagolu.com/posts/"
|
||
},
|
||
{
|
||
"@type": "ListItem",
|
||
"position": 2 ,
|
||
"name": "Oslo, August 31st (2011) by Joachim Trier",
|
||
"item": "https://www.siddharthagolu.com/posts/cinema/oslo-august/"
|
||
}
|
||
]
|
||
}
|
||
</script>
|
||
<script type="application/ld+json">
|
||
{
|
||
"@context": "https://schema.org",
|
||
"@type": "BlogPosting",
|
||
"headline": "Oslo, August 31st (2011) by Joachim Trier",
|
||
"name": "Oslo, August 31st (2011) by Joachim Trier",
|
||
"description": "Verdict: ★ ★ ★ ★ ☆ Check out this review on Letterboxd\nAnhedonia. The Wikipedia entry for this word says:\na diverse array of deficits in hedonic function, including reduced motivation or ability to experience pleasure.\nAt one point or another, we have all experienced some version of this phenomenon - may be characterized by an oversaturation of love, or caused by a prolonged mediocrity in life, or as in the case of our protagonist here, the complete loss of will and motivation to feel anything.",
|
||
"keywords": [
|
||
"foreign-cinema", "norwegian"
|
||
],
|
||
"articleBody": "Verdict: ★ ★ ★ ★ ☆ Check out this review on Letterboxd\nAnhedonia. The Wikipedia entry for this word says:\na diverse array of deficits in hedonic function, including reduced motivation or ability to experience pleasure.\nAt one point or another, we have all experienced some version of this phenomenon - may be characterized by an oversaturation of love, or caused by a prolonged mediocrity in life, or as in the case of our protagonist here, the complete loss of will and motivation to feel anything.\nThere’s something intriguing about the slice-of-life cinematic style - it doesn’t have a dramatic plot, no pulsating action or suspenseful storyline to keep us on the edge of our seats - and yet, I can’t seem to be able to leave the film to grab even a glass of water. Linklater is one of the masters of this style, keeping the viewers engaged via dialogues. Here, Joachim Trier opts for a more subtle approach of filmmaking, making us observe things rather than spoon-feeding us via expository dialogues. There are some powerful scenes scattered throughout the film. With the opening montage, we are absorbed into the old and beautiful city of Oslo, making us nostalgic about a place we’ve never been to. And then comes a powerful scene - we see the protagonist going for a walk into the forest, a shaky camera holding the inscrutable face of Anders in the frame. Once he reaches the lake, he fills up his jacket pockets with rocks and attempts to drown himself in the lake. The camera stays steady over the surface of the lake, instead of following him underwater, we shift in our seats - uncomfortable with anticipation. The tension resolves as we see Anders gasp out of the water and go back dejectedly towards his home. We learn that he’s a recovering addict, currently in an institution, and has suicidal tendencies.\nAll of this is shown without any soundtrack or dialogues.\nAnother scene that I found particularly powerful was the café scene. The way Anders selectively chooses to listen to particular conversations, especially a girl reciting her list of things she’d want to do over the course of her life, there’s a strong contrast between the girl’s (perhaps naive) optimism and Anders’ pessimism for life. Anders has lost his ability to feel motivation or pleasure as he desperately looks for some way to remedy this. Anders’ best friend quotes Proust during one of their discussions:\nTrying to understand desire by watching a nude woman is like a child taking apart a clock to understand time.\nAnders is trying to do exactly that, looking for some way to connect with the outside world without losing himself. There’s not a single pivotal moment in the film where one can say that this is where he stops trying, instead we see him increasingly spiraling out of the natural order and getting distant from the illusory ideal he was hoping for in the first half of the film. He hesitantly goes to a friend’s party, trying to achieve some normalcy in his otherwise fucked up life, but there he is reminded of the same old crowd of people who are miserable and unhappy with their lives and are trying to drown their sorrows with alcohol - and this reminder is too much for Anders. He begins to feel convinced that there’s no way for him to get out of this death spiral and begins to let go. There’s no hope left for him. During one of the last scenes, he goes to his ancestral home where he finds a house full of reminders of his happy past, tries for the last time to feel some emotion by playing the old piano but halts abruptly as it’s evident he has lost his emotional connection with this once-beloved playing like everything else. The last sigh we hear from him is the only way he knows of feeling something - drugs, as he lets go for the last time.\nThe depression of a lone man struggling with mental health issues is shown beautifully here, even though the conclusions are tragic. Lately, I’ve been getting a lot of recommendations to watch Scandinavian movies and I’ve been loving them! This film will go down as yet another one of the great, grounded movies about depression, addiction, and city life in my diary.\n",
|
||
"wordCount" : "728",
|
||
"inLanguage": "en",
|
||
"image":"https://www.siddharthagolu.com/images/oslo-august-31.jpg","datePublished": "2020-06-04T14:39:00+05:30",
|
||
"dateModified": "2022-05-01T23:09:23+05:30",
|
||
"author":[{
|
||
"@type": "Person",
|
||
"name": "Siddhartha Golu"
|
||
}],
|
||
"mainEntityOfPage": {
|
||
"@type": "WebPage",
|
||
"@id": "https://www.siddharthagolu.com/posts/cinema/oslo-august/"
|
||
},
|
||
"publisher": {
|
||
"@type": "Organization",
|
||
"name": "Siddhartha Golu",
|
||
"logo": {
|
||
"@type": "ImageObject",
|
||
"url": "https://www.siddharthagolu.com/favicon.ico"
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
</head>
|
||
|
||
<body class="" id="top">
|
||
<script>
|
||
if (localStorage.getItem("pref-theme") === "dark") {
|
||
document.body.classList.add('dark');
|
||
} else if (localStorage.getItem("pref-theme") === "light") {
|
||
document.body.classList.remove('dark')
|
||
} else if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
||
document.body.classList.add('dark');
|
||
}
|
||
|
||
</script>
|
||
|
||
<header class="header">
|
||
<nav class="nav">
|
||
<div class="logo">
|
||
<a href="https://www.siddharthagolu.com/" accesskey="h" title="Siddhartha Golu (Alt + H)">
|
||
<img src="https://www.siddharthagolu.com/apple-touch-icon.png" alt="" aria-label="logo"
|
||
height="30">Siddhartha Golu</a>
|
||
<div class="logo-switches">
|
||
<button id="theme-toggle" accesskey="t" title="(Alt + T)">
|
||
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
|
||
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
|
||
stroke-linejoin="round">
|
||
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
|
||
</svg>
|
||
<svg id="sun" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
|
||
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
|
||
stroke-linejoin="round">
|
||
<circle cx="12" cy="12" r="5"></circle>
|
||
<line x1="12" y1="1" x2="12" y2="3"></line>
|
||
<line x1="12" y1="21" x2="12" y2="23"></line>
|
||
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
|
||
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
|
||
<line x1="1" y1="12" x2="3" y2="12"></line>
|
||
<line x1="21" y1="12" x2="23" y2="12"></line>
|
||
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
|
||
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
|
||
</svg>
|
||
</button>
|
||
</div>
|
||
</div>
|
||
<ul id="menu">
|
||
<li>
|
||
<a href="https://www.siddharthagolu.com/about" title="About">
|
||
<span>About</span>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a href="https://www.siddharthagolu.com/archive" title="Archive">
|
||
<span>Archive</span>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a href="https://www.siddharthagolu.com/categories" title="Categories">
|
||
<span>Categories</span>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a href="https://www.siddharthagolu.com/tags/" title="Tags">
|
||
<span>Tags</span>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a href="https://www.siddharthagolu.com/search/" title="Search (Alt + /)" accesskey=/>
|
||
<span>Search</span>
|
||
</a>
|
||
</li>
|
||
</ul>
|
||
</nav>
|
||
</header>
|
||
<main class="main">
|
||
|
||
<article class="post-single">
|
||
<header class="post-header">
|
||
<div class="breadcrumbs"><a href="https://www.siddharthagolu.com/">Home</a> » <a href="https://www.siddharthagolu.com/posts/">Posts</a></div>
|
||
<h1 class="post-title">
|
||
Oslo, August 31st (2011) by Joachim Trier
|
||
</h1>
|
||
<div class="post-meta"><span title='2022-05-01 23:09:23 +0530 IST'>🔄 May 1, 2022</span> 4 min 🔖 <a href="/tags/foreign-cinema"> foreign-cinema</a> · <a href="/tags/norwegian"> norwegian</a>
|
||
|
||
</div>
|
||
</header>
|
||
<figure class="entry-cover"><img loading="lazy" src="https://www.siddharthagolu.com/images/oslo-august-31.jpg" alt="">
|
||
|
||
</figure>
|
||
<div class="post-content"><p>Verdict: <!-- raw HTML omitted --> ★ ★ ★ ★ ☆ <!-- raw HTML omitted --></p>
|
||
<p><a href="https://letterboxd.com/carte_blanche/film/oslo-august-31st/">Check out this review on Letterboxd</a></p>
|
||
<hr>
|
||
<p><strong>Anhedonia</strong>. The Wikipedia entry for this word says:</p>
|
||
<blockquote>
|
||
<p>a diverse array of deficits in hedonic function, including reduced motivation or ability to experience pleasure.</p>
|
||
</blockquote>
|
||
<p>At one point or another, we have all experienced some version of this phenomenon - may be characterized by an oversaturation of love, or caused by a prolonged mediocrity in life, or as in the case of our protagonist here, the complete loss of will and motivation to feel anything.</p>
|
||
<p>There’s something intriguing about the slice-of-life cinematic style - it doesn’t have a dramatic plot, no pulsating action or suspenseful storyline to keep us on the edge of our seats - and yet, I can’t seem to be able to leave the film to grab even a glass of water. Linklater is one of the masters of this style, keeping the viewers engaged via dialogues. Here, Joachim Trier opts for a more subtle approach of filmmaking, making us observe things rather than spoon-feeding us via expository dialogues. There are some powerful scenes scattered throughout the film. With the opening montage, we are absorbed into the old and beautiful city of Oslo, making us nostalgic about a place we’ve never been to. And then comes a powerful scene - we see the protagonist going for a walk into the forest, a shaky camera holding the inscrutable face of Anders in the frame. Once he reaches the lake, he fills up his jacket pockets with rocks and attempts to drown himself in the lake. The camera stays steady over the surface of the lake, instead of following him underwater, we shift in our seats - uncomfortable with anticipation. The tension resolves as we see Anders gasp out of the water and go back dejectedly towards his home. We learn that he’s a recovering addict, currently in an institution, and has suicidal tendencies.</p>
|
||
<p>All of this is shown without any soundtrack or dialogues.</p>
|
||
<p>Another scene that I found particularly powerful was the café scene. The way Anders selectively chooses to listen to particular conversations, especially a girl reciting her list of things she’d want to do over the course of her life, there’s a strong contrast between the girl’s (perhaps naive) optimism and Anders’ pessimism for life. Anders has lost his ability to feel motivation or pleasure as he desperately looks for some way to remedy this. Anders’ best friend quotes Proust during one of their discussions:</p>
|
||
<blockquote>
|
||
<p>Trying to understand desire by watching a nude woman is like a child taking apart a clock to understand time.</p>
|
||
</blockquote>
|
||
<p>Anders is trying to do exactly that, looking for some way to connect with the outside world without losing himself. There’s not a single pivotal moment in the film where one can say that this is where he stops trying, instead we see him increasingly spiraling out of the natural order and getting distant from the illusory ideal he was hoping for in the first half of the film. He hesitantly goes to a friend’s party, trying to achieve some normalcy in his otherwise fucked up life, but there he is reminded of the same old crowd of people who are miserable and unhappy with their lives and are trying to drown their sorrows with alcohol - and this reminder is too much for Anders. He begins to feel convinced that there’s no way for him to get out of this death spiral and begins to let go. There’s no hope left for him. During one of the last scenes, he goes to his ancestral home where he finds a house full of reminders of his happy past, tries for the last time to feel some emotion by playing the old piano but halts abruptly as it’s evident he has lost his emotional connection with this once-beloved playing like everything else. The last sigh we hear from him is the only way he knows of feeling something - drugs, as he lets go for the last time.</p>
|
||
<p>The depression of a lone man struggling with mental health issues is shown beautifully here, even though the conclusions are tragic. Lately, I’ve been getting a lot of recommendations to watch Scandinavian movies and I’ve been loving them! This film will go down as yet another one of the great, grounded movies about depression, addiction, and city life in my diary.</p>
|
||
<hr>
|
||
|
||
|
||
</div>
|
||
|
||
<footer class="post-footer">
|
||
<ul class="post-tags">
|
||
<li><a href="https://www.siddharthagolu.com/tags/foreign-cinema/">foreign-cinema</a></li>
|
||
<li><a href="https://www.siddharthagolu.com/tags/norwegian/">norwegian</a></li>
|
||
</ul>
|
||
<nav class="paginav">
|
||
<a class="prev" href="https://www.siddharthagolu.com/posts/drawings/gandhi/">
|
||
<span class="title">« Prev</span>
|
||
<br>
|
||
<span>Gandhi</span>
|
||
</a>
|
||
<a class="next" href="https://www.siddharthagolu.com/posts/reading/bad-blood/">
|
||
<span class="title">Next »</span>
|
||
<br>
|
||
<span>Bad Blood by John Carreyrou</span>
|
||
</a>
|
||
</nav>
|
||
|
||
</footer>
|
||
|
||
<hr>
|
||
<section class="webring">
|
||
<h3 class="header">Articles from blogs I follow around the net</h3>
|
||
<section class="articles">
|
||
|
||
<div class="article">
|
||
<h4 class="title">
|
||
<a href="https://www.strangeloopcanon.com/p/innovation" target="_blank" rel="noopener">Innovation</a>
|
||
</h4>
|
||
<p class="summary">A data based look at how innovations came about through all of human history</p>
|
||
<small class="source">
|
||
via <a href="https://www.strangeloopcanon.com">Strange Loop Canon</a>
|
||
</small>
|
||
<small class="date">September 18, 2023</small>
|
||
</div>
|
||
|
||
<div class="article">
|
||
<h4 class="title">
|
||
<a href="https://fasterthanli.me/articles/cracking-electron-apps-open" target="_blank" rel="noopener">Cracking Electron apps open</a>
|
||
</h4>
|
||
<p class="summary">
|
||
I use the draw.io desktop app to
|
||
make diagrams for my website. I run it on an actual desktop, like Windows or
|
||
macOS, but the asset pipeline that converts .drawio files, to .pdf, to
|
||
.svg, and then to .svg again (but smaller) runs on Linux.
|
||
</p>
|
||
<small class="source">
|
||
via <a href="https://fasterthanli.me">fasterthanli.me</a>
|
||
</small>
|
||
<small class="date">July 3, 2023</small>
|
||
</div>
|
||
|
||
<div class="article">
|
||
<h4 class="title">
|
||
<a href="http://feedproxy.google.com/~r/zenpencils/~3/j54gzBYaIjQ/" target="_blank" rel="noopener">UPDATE: Moving on, a new project and new challenge</a>
|
||
</h4>
|
||
<p class="summary">Hey everyone! A little update with me. Sigh, I knew this would happen. As soon as I release the first chapter of a big new ongoing comic (see my latest comic, Little Warrior Chapter 1), life throws a spanner in […] ↓ Read the rest of this entry...</p>
|
||
<small class="source">
|
||
via <a href="https://www.zenpencils.com/">ZEN PENCILS</a>
|
||
</small>
|
||
<small class="date">August 22, 2018</small>
|
||
</div>
|
||
|
||
</section>
|
||
<p class="attribution">
|
||
Generated by
|
||
<a href="https://git.sr.ht/~sircmpwn/openring">openring</a>
|
||
</p>
|
||
</section>
|
||
<style>
|
||
.webring .header {
|
||
margin: 0 0 12px;
|
||
}
|
||
.webring .articles {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
margin: -0.5rem;
|
||
}
|
||
.webring .title {
|
||
margin: 4px 0 12px;
|
||
}
|
||
.webring .article {
|
||
flex: 1 1 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
margin: 0.5rem;
|
||
padding: 0.5rem;
|
||
background: var(--openring-bg);
|
||
min-width: 10rem;
|
||
}
|
||
.webring .summary {
|
||
font-size: 0.8rem;
|
||
flex: 1 1 0;
|
||
}
|
||
.webring .attribution {
|
||
text-align: right;
|
||
font-size: 0.8rem;
|
||
color: #555;
|
||
}
|
||
</style>
|
||
<!-- begin comments //-->
|
||
<section id = "isso-thread">
|
||
|
||
</section>
|
||
<!-- end comments //-->
|
||
|
||
</article>
|
||
</main>
|
||
|
||
<footer class="footer">
|
||
<span>© 2023 <a href="https://www.siddharthagolu.com/">Siddhartha Golu</a></span>
|
||
<span>
|
||
Powered by
|
||
<a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a> &
|
||
<a href="https://github.com/adityatelange/hugo-PaperMod/" rel="noopener" target="_blank">PaperMod</a>
|
||
</span>
|
||
</footer>
|
||
<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)" class="top-link" id="top-link" accesskey="g">
|
||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentColor">
|
||
<path d="M12 6H0l6-6z" />
|
||
</svg>
|
||
</a>
|
||
|
||
<script>
|
||
let menu = document.getElementById('menu')
|
||
if (menu) {
|
||
menu.scrollLeft = localStorage.getItem("menu-scroll-position");
|
||
menu.onscroll = function () {
|
||
localStorage.setItem("menu-scroll-position", menu.scrollLeft);
|
||
}
|
||
}
|
||
|
||
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
||
anchor.addEventListener("click", function (e) {
|
||
e.preventDefault();
|
||
var id = this.getAttribute("href").substr(1);
|
||
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
|
||
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView({
|
||
behavior: "smooth"
|
||
});
|
||
} else {
|
||
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView();
|
||
}
|
||
if (id === "top") {
|
||
history.replaceState(null, null, " ");
|
||
} else {
|
||
history.pushState(null, null, `#${id}`);
|
||
}
|
||
});
|
||
});
|
||
|
||
</script>
|
||
<script>
|
||
var mybutton = document.getElementById("top-link");
|
||
window.onscroll = function () {
|
||
if (document.body.scrollTop > 800 || document.documentElement.scrollTop > 800) {
|
||
mybutton.style.visibility = "visible";
|
||
mybutton.style.opacity = "1";
|
||
} else {
|
||
mybutton.style.visibility = "hidden";
|
||
mybutton.style.opacity = "0";
|
||
}
|
||
};
|
||
|
||
</script>
|
||
<script>
|
||
document.getElementById("theme-toggle").addEventListener("click", () => {
|
||
if (document.body.className.includes("dark")) {
|
||
document.body.classList.remove('dark');
|
||
localStorage.setItem("pref-theme", 'light');
|
||
} else {
|
||
document.body.classList.add('dark');
|
||
localStorage.setItem("pref-theme", 'dark');
|
||
}
|
||
})
|
||
|
||
</script>
|
||
<script>
|
||
document.querySelectorAll('pre > code').forEach((codeblock) => {
|
||
const container = codeblock.parentNode.parentNode;
|
||
|
||
const copybutton = document.createElement('button');
|
||
copybutton.classList.add('copy-code');
|
||
copybutton.innerHTML = 'copy';
|
||
|
||
function copyingDone() {
|
||
copybutton.innerHTML = 'copied!';
|
||
setTimeout(() => {
|
||
copybutton.innerHTML = 'copy';
|
||
}, 2000);
|
||
}
|
||
|
||
copybutton.addEventListener('click', (cb) => {
|
||
if ('clipboard' in navigator) {
|
||
navigator.clipboard.writeText(codeblock.textContent);
|
||
copyingDone();
|
||
return;
|
||
}
|
||
|
||
const range = document.createRange();
|
||
range.selectNodeContents(codeblock);
|
||
const selection = window.getSelection();
|
||
selection.removeAllRanges();
|
||
selection.addRange(range);
|
||
try {
|
||
document.execCommand('copy');
|
||
copyingDone();
|
||
} catch (e) { };
|
||
selection.removeRange(range);
|
||
});
|
||
|
||
if (container.classList.contains("highlight")) {
|
||
container.appendChild(copybutton);
|
||
} else if (container.parentNode.firstChild == container) {
|
||
|
||
} else if (codeblock.parentNode.parentNode.parentNode.parentNode.parentNode.nodeName == "TABLE") {
|
||
|
||
codeblock.parentNode.parentNode.parentNode.parentNode.parentNode.appendChild(copybutton);
|
||
} else {
|
||
|
||
codeblock.parentNode.appendChild(copybutton);
|
||
}
|
||
});
|
||
</script>
|
||
</body>
|
||
|
||
</html>
|