add other languages

This commit is contained in:
Fabrice Lamant
2024-07-30 20:07:29 +02:00
parent e575c5606b
commit 99fa4cdf66
6864 changed files with 1484485 additions and 9209 deletions

View File

@ -1,9 +1,9 @@
<!DOCTYPE html>
<html>
<html data-theme="cmyk">
<head>
<title>Paris 2024 Summer Olympic Games calendars</title>
<link href="./style.css?refresh=20240827" rel="stylesheet">
<link href="https://github.com/fabrice404/olympics-calendar/style.css?refresh=20240730" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Paris 2024 Summer Olympic Games calendars">
<meta name="keywords" content="Paris 2024, Summer Olympic Games, calendars">
@ -12,36 +12,47 @@
<body>
<div class="p-4">
<div class="flex flex-wrap items-center justify-between border-b pb-4 border-slate-900/10">
<h1 class="text-4xl">Paris 2024 Summer Olympic Games calendars</h1>
<div>
<a href="https://github.com/fabrice404/olympics-calendar" target="_blank"
class="ml-6 block text-slate-200 hover:text-sky-500 w-10 h-10">
<svg viewBox="0 0 16 16" class="w-10 h-10" fill="currentColor" aria-hidden="true">
<path
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z">
</path>
</svg></a>
<div class="navbar bg-base-100">
<div class="navbar-start">
<div class="dropdown">
<div tabindex="0" role="button" class="btn btn-ghost btn-circle">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h7" />
</svg>
</div>
<ul tabindex="0" class="menu menu-sm dropdown-content bg-base-100 rounded-box z-[1] mt-3 w-52 p-2 shadow">
<li><a href="https://fabrice404.github.io/olympics-calendar/index.html">English</a></li>
<li><a href="https://fabrice404.github.io/olympics-calendar/ja/index.html">日本語</a></li>
<li><a href="https://fabrice404.github.io/olympics-calendar/ko/index.html">한국어</a></li>
<li><a href="https://fabrice404.github.io/olympics-calendar/ru/index.html">Русский</a></li>
<li><a href="https://fabrice404.github.io/olympics-calendar/zh/index.html">中文</a></li>
</ul>
</div>
</div>
<div class="navbar-center">
<a class="btn btn-ghost text-xl" href="./">Paris 2024 calendars</a>
</div>
<div class="navbar-end">
</div>
</div>
<div>
<h2 class="text-3xl pb-4 pt-8">How to add a calendar to your Google calendar</h2>
<ol class="list-decimal ml-10">
<li>Right click on a calendar and select "Copy link address"</li>
<li>Open your Google calendar</li>
<li>Click the plus sign next to “Other Calendars” on the left menu</li>
<li>Click "From URL"</li>
<li>Paste your calendar URL</li>
<li>Click "Add calendar"</li>
</ol>
</div>
<div>
{{calendars}}
</div>
<dialog id="modal" class="modal">
<div class="modal-box">
</h3>
<input type="text" class="input input-bordered w-full text-sm" id="link"></input>
<div class="modal-action">
<form method="dialog">
<button class="btn">Close</button>
</form>
</div>
</div>
</dialog>
<div class="text-sm my-10">
<h2 class="text-3xl pb-4 pt-8">View today's events by NOC</h2>
{{todays}}
@ -52,6 +63,13 @@
All trademarks, logos and brand names are the property of their respective owners.
</div>
</div>
<script>
const showModal = (key, language) => {
document.querySelector("#modal #link")
.setAttribute('value', `https://fabrice404.github.io/olympics-calendar/${key}.ics`);
modal.showModal();
};
</script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-0KQC1F1K4H"></script>
<script>