Skip to content

Latest commit

 

History

History
99 lines (82 loc) · 2.76 KB

index.md

File metadata and controls

99 lines (82 loc) · 2.76 KB
layout notification
home
旅行地图(/travel-map)上线

{{site.title.zh}} | {{site.title.en}}

{{site.description.zh}}

该在博客的首页写什么,这是一个世界级难题。

{: style="text-align: right" } —— 我自己

随机梗图 | Random Memes

"Hi, I'd like to hear a TCP joke."
"Hello, would you like to hear a TCP joke?"
"Yes, I'd like to hear a TCP joke."
"OK, I'll tell you a TCP joke."
"Ok, I will hear a TCP joke."
"Are you ready to hear a TCP joke?"
"Yes, I am ready to hear a TCP joke."
"Ok, I am about to send the TCP joke. It will last 10 seconds, it has 20 characters, it does not have a setting, it ends with a punchline."
"Ok, I am ready to get your TCP joke that will last 10 seconds, has 20 characters, does not have an explicit setting, and ends with a punchline."
"I'm sorry, your connection has timed out. Hello, would you like to hear a TCP joke?"


“嗨,我想听一个TCP的笑话。”
“你好,你想听TCP的笑话么?”
“嗯,我想听一个TCP的笑话。”
“好的,我会给你讲一个TCP的笑话。”
“好的,我会听一个TCP的笑话。”
“你准备好听一个TCP的笑话么?”
“嗯,我准备好听一个TCP的笑话”
“OK,那我要发TCP笑话了。大概有10秒,20个字。”
“嗯,我准备收你那个10秒时长,20个字的笑话了。”
“抱歉,你的链接超时了。你好,你想听TCP的笑话么?”

<script> const memeNumber = 11; var currentMeme = 0; function randomMeme() { document.getElementById(`meme-${currentMeme}`).style.display = "none"; let newMeme = Math.floor(Math.random() * (memeNumber - 1)); if(newMeme >= currentMeme) newMeme++; currentMeme = newMeme; document.getElementById(`meme-${currentMeme}`).style.display = "block"; } document.addEventListener('DOMContentLoaded', event => { for(let i = 0; i < memeNumber; i++) { document.getElementById(`meme-${i}`).style.display = "none"; document.getElementById(`meme-${i}`).addEventListener('click', randomMeme); } randomMeme(); }) </script>