1
0
wiki/Blog/CityWalk——公车挑战.html

136 lines
400 KiB
HTML
Raw Normal View History

2024-07-18 17:29:40 +08:00
<!DOCTYPE html>
<html><head><title>CityWalk——公车挑战探索未知的城市</title><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta property="og:title" content="CityWalk——公车挑战探索未知的城市"/><meta property="og:description" content="CityWalk——公车挑战是一种新颖的探索方式通过随机选择公交车线路让人们在未知中体验城市的魅力。我分享了自己和小雅在周末尝试公车挑战的经历论述人生中追寻梦想的曲折与意义。."/><meta property="og:image" content="https://wiki.7wate.com/static/og-image.png"/><meta property="og:width" content="1200"/><meta property="og:height" content="675"/><link rel="icon" href="../static/icon.png"/><meta name="description" content="CityWalk——公车挑战是一种新颖的探索方式通过随机选择公交车线路让人们在未知中体验城市的魅力。我分享了自己和小雅在周末尝试公车挑战的经历论述人生中追寻梦想的曲折与意义。."/><meta name="generator" content="Quartz"/><link rel="preconnect" href="https://fonts.googleapis.com"/><link rel="preconnect" href="https://fonts.gstatic.com"/><script async src="https://umami.7wate.com/script.js" data-website-id="c061efdc-95dd-4d21-9d04-a1ffda0a85b9"></script><script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?94d8ccb156eb7c65abf317e6e01cdba9";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script><script async src="https://www.googletagmanager.com/gtag/js?id=G-MHMEL0F832"></script><script>
(function() {
window.dataLayer = window.dataLayer || [];
function gtag() {
window.dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-MHMEL0F832');
})();
</script><link href="../index.css" rel="stylesheet" type="text/css" spa-preserve/><link href="https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.css" rel="stylesheet" type="text/css" spa-preserve/><link href="https://fonts.googleapis.com/css2?family=IBM Plex Mono&amp;family=Schibsted Grotesk:wght@400;700&amp;family=Source Sans Pro:ital,wght@0,400;0,600;1,400;1,600&amp;display=swap" rel="stylesheet" type="text/css" spa-preserve/><script src="../prescript.js" type="application/javascript" spa-preserve></script><script type="application/javascript" spa-preserve>const fetchData = fetch(`../static/contentIndex.json`).then(data => data.json())</script></head><body data-slug="Blog/CityWalk——公车挑战"><div id="quartz-root" class="page"><div id="quartz-body"><div class="left sidebar"><h1 class="page-title "><a href="..">📚 X·Eden</a></h1><div class="spacer mobile-only"></div><div class="search "><div id="search-icon"><p>Search</p><div></div><svg tabIndex="0" aria-labelledby="title desc" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.9 19.7"><title id="title">Search</title><desc id="desc">Search</desc><g class="search-path" fill="none"><path stroke-linecap="square" d="M18.5 18.3l-5.4-5.4"></path><circle cx="8" cy="8" r="7"></circle></g></svg></div><div id="search-container"><div id="search-space"><input autocomplete="off" id="search-bar" name="search" type="text" aria-label="Search for something" placeholder="Search for something"/><div id="results-container"></div></div></div></div><div class="darkmode "><input class="toggle" id="darkmode-toggle" type="checkbox" tabIndex="-1"/><label id="toggle-label-light" for="darkmode-toggle" tabIndex="-1"><svg xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" version="1.1" id="dayIcon" x="0px" y="0px" viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xmlSpace="preserve"><title>Light mode</title><path d="M6,17.5C6,16.672,5.328,16,4.5,16h-3C0.672,16,0,16.672,0,17.5 S0.672,19,1.5,19h3C5.328,19,6,18.328,6,17.5z M7.5,26c-0.414,0-0.789,0.168-1.061,0.439l-2,2C4.168,28.711,4,29.086,4,29.5 C4,30.328,4.671,31,5.5,31c0.414,0,0.789-0.168,1.06-0.44l2-2C8.832,28.289,9,27.914,9,27.5C9,26.672,8.329,26,7.5,26z M17.5,6 C18.329,6,19,5.328,19,4.5v-3C19,0.672,18.329,0,17.5,0S16,0.672,16,1.5v3C16,5.328,16.671,6,17.5,6z M27.5,9 c0.414,0,0.789-0.168,1.06-0.439l2-2C30.832,6.289,31,5.914,31,5.5C31,4.672,30.329,4,29.5,4c-0.414,0-0.789,0.168-1.061,0.44 l-2,2C26.168,6.711,26,7.086,26,7.5C26,8.328,26.671,9,27.5,9z M6.439,8.561C6.711,8.832,7.086,9,7.5,9C8.328,9,9,8.328,9,7.5 c0-0.414-0.168-0.789-0.439-1.061l-2-2C6.289,4.168,5.914,4,5.5,4C4.672,4,4,4.672,4,5.5c0,0.414,0.168,0.789,0.439,1.06 L6.439,8.561z M33.5,16h-3c-0.828,0-1.5,0.672-1.5,1.5s0.672,1.5,1.5,1.5h3c0.828,0,1.5-0.672,1.5-1.5S34.328,16,33.5,16z M28.561,26.439C28.289,26.168,27.914,26,27.5,26c-0.828,0-1.5,0.672-1.5,1.5c0,0.414,0.168,0.789,0.439,1.06l2,2 C28.711,30.832,29.086,31,29.5,31c0.828,0,1.5-0.672,1.5-1.5c0-0.414-0.168-0.789-0.439-1.061L28.561,26.439z M17.5,29 c-0.829,0-1.5,0.672-1.5,1.5v3c0,0.828,0.671,1.5,1.5,1.5s1.5-0.672,1.5-1.5v-3C19,29.672,18.329,29,17.5,29z M17.5,7 C11.71,7,7,11.71,7,17.5S11.71,28,17.5,28S28,23.29,28,17.5S23.29,7,17.5,7z M17.5,25c-4.136,0-7.5-3.364-7.5-7.5 c0-4.136,3.364-7.5,7.5-7.5c4.136,0,7.5,3.364,7.5,7.5C25,21.636,21.636,25,17.5,25z"></path></svg></label><label id="toggle-label-dark" for="darkmode-toggle" tabIndex="-1"><svg xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" version="1.1" id="nightIcon" x="0px" y="0px" viewBox="0 0 100 100" style="enable-background='new 0 0 100 100'" xmlSpace="preserve"><title>Dark mode</title><path d="M96.76,66.458c-0.853-0.852-2.15-1.064-3.23-0.534c-6.063,2.991-12.858,4.571-19.655,4.571 C62.022,70.495,50.88,65.88,42.5,57.5C29.043,44.043,25.658,23.536,34.076,6.47c0.532-1.08,0.318-2.379-0.534-3.23 c-0.851-0.852-2.15-1.064-3.23-0.534c-4.918,2.427-9.375,5.619-13.246,9.491c-9.447,9.447-14.65,22.008-14.65,35.369 c0,13.36,5.203,25.921,14.65,35.368s22.008,14.65,
<p>至于公车挑战的规则是什么?我当时也是在某位博友的博客上看到的。虽然现在我找不到原文了,但大致的规则我还记得:</p>
<ol>
<li>选定某个公交站点作为起点。</li>
<li>随机上下一辆到站的公交车。</li>
<li>随机坐 3-5 站后下车。</li>
<li>重复上述步骤,尝试进行 10 次。</li>
<li>最后,如果公交车驶出三环或四环,自动结束,以避免距离过远。</li>
</ol>
<p>公车挑战这个想法在我心中萦绕了整整一年!却一直没有实施。所以,新年伊始,我决定一定要安排上公车挑战!</p>
<p>我选择的是高中时期坐 307 路公交车回家路线,起点是郑州市第三人民医院。这么多年,我都快忘了是 16 年,还是 17 年高中毕业。但是我永远记得毕业那一年克利夫兰 VS 骑士队让三追一最终夺冠!这一次,我也是想看看这么久过去了变化如何,感受一下物是人非。</p>
<p>我从西大街地铁站下车,绕经商城遗址来到了阜民里。郑州商城遗址是中国最早的城市遗址之一,是商朝早期的都城遗址,可以追溯到公元前 16 世纪至前 11 世纪。当天下过雪,不然能站在大土堆(城墙)上观赏风景。阜民里是河南省文旅局打造的郑州老城新名片,它重新建造了上世纪八九十年代的街区风貌,让人仿佛置身于怀旧的老街巷中。</p>
<p>从西大街地铁站下车,绕经商城遗址来到了阜民里。郑州商城遗址是公元前 16 世纪至前 11 世纪商朝早期的都城遗址,被誉为中国最早的城市遗址之一。去那天刚好下过雪,也没能上大土堆上看看哈哈。阜民里是河南省文旅局打造的郑州老城新名片,新建还原了郑州上世纪八九十年代风貌的街区,可以让你置身其中感受乡愁的老街巷,</p>
<p>过去,这个地区是银基商圈,非常脏乱差。但经过老城区的改造,现在真的变得很不错呢~</p>
<p><img src="https://static.7wate.com/img%2F2024%2F03%2F06%2Facff5c0483b7a39c55e3ccb0c0fefbd0.jpg" alt="红灯笼"/></p>
<p><img src="https://static.7wate.com/img%2F2024%2F03%2F06%2Fc018ad14402fb3c5a738d1b93bba284f.jpg" alt="商城遗址枣树"/></p>
<p><img src="https://static.7wate.com/img%2F2024%2F03%2F06%2Fda004c399d571da33127f9029a878c74.jpg" alt="阜民里"/></p>
<blockquote>
<p>不管是过去的,还是新生的,都在积极向上,努力生长!</p>
</blockquote>
<p>经过南关街,我们沿着曲折的道路来到了高中。一切似乎还是那么熟悉,但围墙上却布满了新安装的电子围栏。回忆起当初高中夜里拼了命想要跳墙出去打游戏的日子,现在却也再也跳不过去了。</p>
<p>我看了一眼手机,时间都 4 点多了,得抓紧开始公车挑战了。</p>
<p><img src="https://static.7wate.com/img%2F2024%2F03%2F07%2Fda653a1c84f32fe6e8da943d96ea07f8.jpg" alt="公车合影"/></p>
<h2 id="206-路">206 路<a aria-hidden="true" tabindex="-1" href="#206-路" class="internal"> §</a></h2>
<p>我俩在郑州市第三人民医院公交站,足足等了 20 分钟才来了第一班车——206 路。在城南路上我们经过了 4 站,然后在商城遗址站下车。本来我还带着相机想在公交车上拍照,可实在是太晃了。</p>
<h2 id="s162-路">S162 路<a aria-hidden="true" tabindex="-1" href="#s162-路" class="internal"> §</a></h2>
<p>下了 206 路不久,我们又上了 S162 路,商量好了要坐 3 站下车。本来我以为会朝着家的方向前进,但没想到它在城东路经过陇海路后往西行驶,最后在紫竹小区下车~</p>
<h2 id="g62-路">G62 路<a aria-hidden="true" tabindex="-1" href="#g62-路" class="internal"> §</a></h2>
<p>刚下了 S162 路,我们又上了 G62 路,这次终于是往家的方向了。不过这次我们商量好要坐 5 个站才下车。我还在想,难道坐两趟车就能离开三环吗?谁知道,就在这第 5 站,它从紫荆山路经过航海路开始往郑州西行驶。</p>
<p>要是真把我带到大西郊,那就完蛋了……</p>
<h2 id="277-路">277 路<a aria-hidden="true" tabindex="-1" href="#277-路" class="internal"> §</a></h2>
<p>由于从 G62 路下来后是在航海路东往西方向,所以我们只能一直往西走。</p>
<p>等了一会儿,我们坐上了 277 路公交车,做了三站就下车了。</p>
<h2 id="213-路">213 路<a aria-hidden="true" tabindex="-1" href="#213-路" class="internal"> §</a></h2>
<p>就在我以为又要继续往西走的时候,一辆 213 路公交车来了,坐了 5 站,结果直接把我们拉到了火车站。就这样,我们绕了个圈,又回到了最初的起点。真是出乎意料啊……</p>
<p>我们在火车站的公交月台等待下一班车的到来,但是先记住这辆 213 路哈哈哈。</p>
<h2 id="176-路">176 路<a aria-hidden="true" tabindex="-1" href="#176-路" class="internal"> §</a></h2>
<p>紧接着,我们又坐上了 176 路,这已经是第 6 辆公交车了。原计划是不超过 10 辆,结果已经是第 6 辆了,我们还没有离开火车站……</p>
<p>176 路出门后沿着京广路往南行驶,结果真是巧了,坐了三站下来,又坐上了之前的那辆 213 路。</p>
<h2 id="213-路-1">213 路<a aria-hidden="true" tabindex="-1" href="#213-路-1" class="internal"> §</a></h2>
<p>公交车司机是位大姐,看到我们又坐上了车,一脸不可思议。她肯定在想这两个年轻人怎么又上来了?哈哈哈哈~</p>
<p>我当时还故意等 213 路先走了,然后才坐上了 176 路,结果 176 路司机居然超过了 213 路,我们就又坐上了 213 路。</p>
<p>这次我们一定要坐 5 站,看看它会带我们去哪里。</p>
<h2 id="s162-路-1">S162 路<a aria-hidden="true" tabindex="-1" href="#s162-路-1" class="internal"> §</a></h2>
<p>213 路下车后,我们到了祥云路公交站,除了 S162 路之外已经没有其他公交车了。我们上了 S162 路,我还在想会不会是最开始的那辆公交车哈哈哈。</p>
<p>S162 路最后出了南三环,公车挑战就到此结束。回家吃饭 </p>
<h2 id="路线图">路线图<a aria-hidden="true" tabindex="-1" href="#路线图" class="internal"> §</a></h2>
<p><img src="https://static.7wate.com/img%2F2024%2F03%2F07%2F57162eb0ac4aa1815f4974af17fad60d.jpg" alt="路线图"/></p>
<hr/>
<p>一开始,我脑海里闪过了无数种可能的结局。我最担心的是兜到大西郊,所以一开始我们决定朝西往东的方向出发。我还信誓旦旦地和小雅吹泡泡,如果我们一开始选择往东,那往西的可能性就会很小。所以我们打赌,最后的方向一定是东北。小雅则说,那我就选西南方向。</p>
<p>然而,结果我们一上了 S162 路,就又绕回了原点。而且这个 G62 路真的只多那一站,让我们让去西郊成为最有可能的结果。但我们没有坐上去西郊的公交车,而是又坐上了 213 路,又回到了最开始的起点。</p>
<p>当时我下车后说:「这都到火车站了,咱俩也别打赌了。最后到哪就是哪吧,这根本就不可能预测的到!」</p>
<p>就在我以为也许会有一个新的开始时,却万万没想到我们又误打误撞地坐上了之前的 213 路,被拉回了南三环的方向。就这样,公车挑战最终结束了。</p>
<p>其实想想,人生不也是恰恰如此么?</p>
<p>我们总是认真规划好方向,憧憬着走下去,梦想着到达彼岸。可是明天在哪,终究是雾里看花,水中望月,可望不可即。</p>
<p>然而,恰恰也正是这种未知性和不确定性,赋予了人生无限的可能性和惊喜。有时候,我们会迷失在追寻的过程中,发现原本设定的方向并不是自己的道路。而有时候,正是在迷茫中,我们才能找到真正属于自己的出路。</p>
<p>人生并不是一条笔直的道路,而是一段曲折而精彩的旅程。在这个旅程中,我们会遇到成功和失败,喜悦和痛苦,但人生的意义不在于到达彼岸,而在于沿途的风景和成长。</p>
<p>那么对于未知的明天,相信自己,继续前行,去探索那些等待我们发现的美好吧。</p></article></div><div class="right sidebar"><div class="graph "><h3>Graph View</h3><div class="graph-outer"><div id="graph-container" data-cfg="{&quot;drag&quot;:true,&quot;zoom&quot;:true,&quot;depth&quot;:1,&quot;scale&quot;:1.1,&quot;repelForce&quot;:0.5,&quot;centerForce&quot;:0.3,&quot;linkDistance&quot;:30,&quot;fontSize&quot;:0.6,&quot;opacityScale&quot;:1,&quot;showTags&quot;:true,&quot;removeTags&quot;:[]}"></div><svg version="1.1" id="global-graph-icon" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 55 55" fill="currentColor" xmlSpace="preserve"><path d="M49,0c-3.309,0-6,2.691-6,6c0,1.035,0.263,2.009,0.726,2.86l-9.829,9.829C32.542,17.634,30.846,17,29,17
s-3.542,0.634-4.898,1.688l-7.669-7.669C16.785,10.424,17,9.74,17,9c0-2.206-1.794-4-4-4S9,6.794,9,9s1.794,4,4,4
c0.74,0,1.424-0.215,2.019-0.567l7.669,7.669C21.634,21.458,21,23.154,21,25s0.634,3.542,1.688,4.897L10.024,42.562
C8.958,41.595,7.549,41,6,41c-3.309,0-6,2.691-6,6s2.691,6,6,6s6-2.691,6-6c0-1.035-0.263-2.009-0.726-2.86l12.829-12.829
c1.106,0.86,2.44,1.436,3.898,1.619v10.16c-2.833,0.478-5,2.942-5,5.91c0,3.309,2.691,6,6,6s6-2.691,6-6c0-2.967-2.167-5.431-5-5.91
v-10.16c1.458-0.183,2.792-0.759,3.898-1.619l7.669,7.669C41.215,39.576,41,40.26,41,41c0,2.206,1.794,4,4,4s4-1.794,4-4
s-1.794-4-4-4c-0.74,0-1.424,0.215-2.019,0.567l-7.669-7.669C36.366,28.542,37,26.846,37,25s-0.634-3.542-1.688-4.897l9.665-9.665
C46.042,11.405,47.451,12,49,12c3.309,0,6-2.691,6-6S52.309,0,49,0z M11,9c0-1.103,0.897-2,2-2s2,0.897,2,2s-0.897,2-2,2
S11,10.103,11,9z M6,51c-2.206,0-4-1.794-4-4s1.794-4,4-4s4,1.794,4,4S8.206,51,6,51z M33,49c0,2.206-1.794,4-4,4s-4-1.794-4-4
s1.794-4,4-4S33,46.794,33,49z M29,31c-3.309,0-6-2.691-6-6s2.691-6,6-6s6,2.691,6,6S32.309,31,29,31z M47,41c0,1.103-0.897,2-2,2
s-2-0.897-2-2s0.897-2,2-2S47,39.897,47,41z M49,10c-2.206,0-4-1.794-4-4s1.794-4,4-4s4,1.794,4,4S51.206,10,49,10z"></path></svg></div><div id="global-graph-outer"><div id="global-graph-container" data-cfg="{&quot;drag&quot;:true,&quot;zoom&quot;:true,&quot;depth&quot;:-1,&quot;scale&quot;:0.9,&quot;repelForce&quot;:0.5,&quot;centerForce&quot;:0.3,&quot;linkDistance&quot;:30,&quot;fontSize&quot;:0.6,&quot;opacityScale&quot;:1,&quot;showTags&quot;:true,&quot;removeTags&quot;:[]}"></div></div></div><div class="toc desktop-only"><button type="button" id="toc" class><h3>Table of Contents</h3><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="fold"><polyline points="6 9 12 15 18 9"></polyline></svg></button><div id="toc-content"><ul class="overflow"><li class="depth-0"><a href="#206-路" data-for="206-路">206 路</a></li><li class="depth-0"><a href="#s162-路" data-for="s162-路">S162 路</a></li><li class="depth-0"><a href="#g62-路" data-for="g62-路">G62 路</a></li><li class="depth-0"><a href="#277-路" data-for="277-路">277 路</a></li><li class="depth-0"><a href="#213-路" data-for="213-路">213 路</a></li><li class="depth-0"><a href="#176-路" data-for="176-路">176 路</a></li><li class="depth-0"><a href="#213-路-1" data-for="213-路-1">213 路</a></li><li class="depth-0"><a href="#s162-路-1" data-for="s162-路-1">S162 路</a></li><li class="depth-0"><a href="#路线图" data-for="路线图">路线图</a></li></ul></div></div><div class="backlinks "><h3>Backlinks</h3><ul class="overflow"><li>No backlinks found</li></ul></div><div class="explorer mobile-only"><button type="button" id="explorer" data-behavior="collapse" data-collapsed="collapsed" data-savestate="true" data-tree="[{&quot;path&quot;:&quot;Basics&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Basics/english&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Blog&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Book&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Book/个人成长&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Book/医学健康&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Book/历史&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Book/哲学宗教&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Book/心理&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Book/政治军事&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Book/教育学习&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Book/文学&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Book/生活百科&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Book/社会文化&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Book/科学技术&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Book/经济理财&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Book/艺术&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Book/计算机&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Company&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Company/信息化&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Company/信息化/规范&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Culture&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Government&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Government/中国&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Government/中国/标准&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Government/中国/法律&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Journal&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Journal/2022&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Journal/2022/W34&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Journal/2022/W35&quot;,&quot;collapsed&quot;:true},{&quot;path&quot;:&quot;Journal/2022/W36&quot;,&quot;co
function toggleCallout() {
const outerBlock = this.parentElement;
outerBlock.classList.toggle(`is-collapsed`);
const collapsed = outerBlock.classList.contains(`is-collapsed`);
const height = collapsed ? this.scrollHeight : outerBlock.scrollHeight;
outerBlock.style.maxHeight = height + `px`;
let current = outerBlock;
let parent = outerBlock.parentElement;
while (parent) {
if (!parent.classList.contains(`callout`)) {
return;
}
const collapsed2 = parent.classList.contains(`is-collapsed`);
const height2 = collapsed2 ? parent.scrollHeight : parent.scrollHeight + current.scrollHeight;
parent.style.maxHeight = height2 + `px`;
current = parent;
parent = parent.parentElement;
}
}
function setupCallout() {
const collapsible = document.getElementsByClassName(
`callout is-collapsible`
);
for (const div of collapsible) {
const title = div.firstElementChild;
if (title) {
title.removeEventListener(`click`, toggleCallout);
title.addEventListener(`click`, toggleCallout);
const collapsed = div.classList.contains(`is-collapsed`);
const height = collapsed ? title.scrollHeight : div.scrollHeight;
div.style.maxHeight = height + `px`;
}
}
}
document.addEventListener(`nav`, setupCallout);
window.addEventListener(`resize`, setupCallout);
</script><script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.esm.min.mjs';
const darkMode = document.documentElement.getAttribute('saved-theme') === 'dark'
mermaid.initialize({
startOnLoad: false,
securityLevel: 'loose',
theme: darkMode ? 'dark' : 'default'
});
document.addEventListener('nav', async () => {
await mermaid.run({
querySelector: '.mermaid'
})
});
</script><script src="https://cdn.jsdelivr.net/npm/katex@0.16.7/dist/contrib/copy-tex.min.js" type="application/javascript"></script><script src="../postscript.js" type="module"></script></html>