Skip to content

lightweight, client-only calendar web application. All data persists in the URL hash for instant sharing, No backend required. Optional AES-GCM password protection keeps shared links locked without a server

JavaScript

aria-label

Supun Lakmal4cee86b8761f
diff --git a/index.html b/index.html
index 147a675..f8e892d 100644
--- a/index.html
+++ b/index.html
@@ -35,6 +35,49 @@
content="Privacy-first calendar that lives in your URL. Create events, share instantly, and keep data in your browser - no accounts or backend.">
<meta name="twitter:image" content="https://hash-calendar.netlify.app/logo.png">
<meta name="twitter:image:alt" content="hash-calendar logo">
+ <script type="application/ld+json">
+ {
+ "@context": "https://schema.org",
+ "@type": "WebApplication",
+ "name": "hash-calendar",
+ "url": "https://hash-calendar.netlify.app/",
+ "description": "Privacy-first, URL-powered calendar. Create events, share instantly, and keep data in your browser — no accounts or backend.",
+ "applicationCategory": "BusinessApplication",
+ "operatingSystem": "Any",
+ "browserRequirements": "Requires JavaScript",
+ "softwareVersion": "1.0",
+ "inLanguage": ["en", "it", "si", "ta"],
+ "isAccessibleForFree": true,
+ "offers": {
+ "@type": "Offer",
+ "price": "0",
+ "priceCurrency": "USD"
+ },
+ "featureList": [
+ "Client-only — no server, no database",
+ "URL hash stores all calendar state",
+ "Share calendars via link or QR code",
+ "Password-protect shared calendars",
+ "Import and export ICS files",
+ "JSON bridge for programmatic access",
+ "Multi-language support",
+ "Dark mode",
+ "Offline capable (PWA)"
+ ],
+ "screenshot": "https://hash-calendar.netlify.app/logo.png",
+ "author": {
+ "@type": "Person",
+ "name": "Supun Lakmal",
+ "url": "https://github.com/supunlakmal"
+ },
+ "license": "https://opensource.org/licenses/MIT",
+ "sourceOrganization": {
+ "@type": "Organization",
+ "name": "hash-calendar",
+ "url": "https://github.com/supunlakmal/hash-calendar"
+ }
+ }
+ </script>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.png" type="image/png" sizes="32x32">
<link rel="apple-touch-icon" href="apple-touch-icon.png" sizes="180x180">
@@ -49,26 +92,13 @@
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="styles-i18n.css">
<link rel="stylesheet" href="styles-logo.css">
- <script type="application/ld+json">
- {
- "@context": "https://schema.org",
- "@type": "WebApplication",
- "name": "hash-calendar",
- "url": "https://hash-calendar.netlify.app/",
- "description": "Privacy-first calendar that lives in your URL. Create events, share instantly, and keep data in your browser - no accounts or backend.",
- "applicationCategory": "Productivity",
- "operatingSystem": "All",
- "browserRequirements": "Requires JavaScript",
- "image": "https://hash-calendar.netlify.app/logo.png"
- }
- </script>
</head>
<body>
<div class="app">
<header class="topbar">
<div class="brand">
- <a href="/" class="logo-link">
+ <a href="/" class="logo-link" aria-label="Go to calendar home">
<div class="brand-mark">
<img src="logo.png" alt="hash-calendar logo" class="logo-img">
</div>
@@ -83,25 +113,26 @@
<div class="nav-group">
<button id="prev-month" type="button" aria-label="Previous month" data-i18n-aria-label="nav.prevMonth"
data-i18n="nav.prev">Prev</button>
- <button id="today-btn" type="button" data-i18n="nav.today">Today</button>
+ <button id="today-btn" type="button" aria-label="Today" data-i18n="nav.today">Today</button>
<button id="next-month" type="button" aria-label="Next month" data-i18n-aria-label="nav.nextMonth"
data-i18n="nav.next">Next</button>
</div>
<div id="mobile-menu-toggle" class="mobile-only">
- <button id="hamburger-btn" type="button" aria-label="Menu" class="icon-btn">
+ <button id="hamburger-btn" type="button" aria-label="Menu" aria-expanded="false" aria-controls="mobile-drawer"
+ class="icon-btn">
<i class="fa-solid fa-bars"></i>
</button>
</div>
<div id="secondary-actions" class="secondary-actions">
- <div class="view-toggle" role="tablist">
- <button data-view="day" role="tab" aria-selected="false" data-i18n="view.day">Day</button>
- <button data-view="week" role="tab" aria-selected="false" data-i18n="view.week">Week</button>
- <button data-view="month" role="tab" aria-selected="true" class="active"
+ <div class="view-toggle" role="tablist" aria-label="Calendar views">
+ <button data-view="day" role="tab" aria-label="Day view" aria-selected="false" tabindex="-1" data-i18n="view.day">Day</button>
+ <button data-view="week" role="tab" aria-label="Week view" aria-selected="false" tabindex="-1" data-i18n="view.week">Week</button>
+ <button data-view="month" role="tab" aria-label="Month view" aria-selected="true" tabindex="0" class="active"
data-i18n="view.month">Month</button>
- <button data-view="year" role="tab" aria-selected="false" data-i18n="view.year">Year</button>
- <button data-view="agenda" role="tab" aria-selected="false" data-i18n="view.agenda">Agenda</button>
+ <button data-view="year" role="tab" aria-label="Year view" aria-selected="false" tabindex="-1" data-i18n="view.year">Year</button>
+ <button data-view="agenda" role="tab" aria-label="Agenda view" aria-selected="false" tabindex="-1" data-i18n="view.agenda">Agenda</button>
</div>
<button id="focus-btn" type="button" data-i18n="btn.focus">Focus</button>
@@ -125,23 +156,24 @@
<div class="action-divider desktop-only"></div>
- <a href="https://github.com/supunlakmal/hash-calendar" class="action-link" target="_blank" rel="noopener">
+ <a href="https://github.com/supunlakmal/hash-calendar" class="action-link" target="_blank" rel="noopener"
+ aria-label="GitHub">
<i class="fa-brands fa-github" aria-hidden="true"></i>
<span>GitHub</span>
</a>
- <a href="privacy.html" class="action-link">
+ <a href="privacy.html" class="action-link" aria-label="Privacy">
<i class="fa-solid fa-shield-halved" aria-hidden="true"></i>
<span>Privacy</span>
</a>
- <a href="help.html" class="action-link">
+ <a href="help.html" class="action-link" aria-label="Help">
<i class="fa-solid fa-circle-question" aria-hidden="true"></i>
<span>Help</span>
</a>
- <a href="faq.html" class="action-link">
+ <a href="faq.html" class="action-link" aria-label="FAQ">
<i class="fa-solid fa-comments" aria-hidden="true"></i>
<span>FAQ</span>
</a>
- <a href="about.html" class="action-link">
+ <a href="about.html" class="action-link" aria-label="About">
<i class="fa-solid fa-circle-info" aria-hidden="true"></i>
<span>About</span>
</a>
@@ -189,7 +221,7 @@
<div>
<h2 id="month-label" class="month-label">Month 2026</h2>
<div class="panel-actions">
- <button id="mobile-sidebar-toggle" class="mobile-only" type="button">
+ <button id="mobile-sidebar-toggle" class="mobile-only" type="button" aria-label="Toggle details panels">
<i class="fa-solid fa-list-ul"></i>
<span data-i18n="label.details">Details</span>
</button>
@@ -198,7 +230,7 @@
<button id="theme-toggle" type="button" data-i18n="settings.themeLight">Theme: Light</button>
<button id="notify-toggle" type="button" data-i18n="settings.notificationsOff">Notifications: Off</button>
<div class="dropdown-container lang-selector">
- <button id="language-btn" class="dropdown-trigger" type="button" aria-haspopup="listbox"
+ <button id="language-btn" class="dropdown-trigger" type="button" aria-label="Select language" aria-haspopup="listbox"
aria-expanded="false">
<i class="fa-solid fa-language"></i>
<span id="current-lang">English</span>
@@ -230,7 +262,7 @@
</button>
<a href="https://www.buymeacoffee.com/supunlakmal" class="action-link bmc-link sidebar-bmc" target="_blank"
- rel="noopener">
+ rel="noopener" aria-label="Buy me a coffee">
<i class="fa-solid fa-mug-hot" aria-hidden="true"></i>
<span>Buy me a coffee</span>
</a>
@@ -528,14 +560,15 @@
<h3 id="wp-modal-title" class="hidden" data-i18n="modal.worldPlanner">World Planner</h3>
<div class="wp-search-wrapper">
<i class="fa-solid fa-earth-americas wp-search-icon"></i>
- <input id="wp-add-zone" type="text" placeholder="Add timezone (e.g. London)"
+ <input id="wp-add-zone" type="text" aria-label="Add timezone" placeholder="Add timezone (e.g. London)"
data-i18n-placeholder="planner.addTimezone" autocomplete="off">
<ul id="wp-tz-results" class="tz-results hidden" role="listbox"></ul>
</div>
</div>
<div class="planner-controls-right">
- <input id="wp-date-picker" type="date" class="wp-date-picker">
- <button id="wp-format-toggle" type="button" class="accent-btn" style="min-width: 50px;">12h</button>
+ <input id="wp-date-picker" type="date" class="wp-date-picker" aria-label="Planner date">
+ <button id="wp-format-toggle" type="button" class="accent-btn" style="min-width: 50px;"
+ aria-label="Toggle time format">12h</button>
<button id="wp-close" type="button" class="icon-btn" aria-label="Close">x</button>
</div>
</header>
@@ -558,10 +591,11 @@
</div>
</div>
- <div id="mobile-drawer-backdrop" class="mobile-drawer-backdrop mobile-only"></div>
- <aside id="mobile-drawer" class="mobile-drawer mobile-only">
+ <div id="mobile-drawer-backdrop" class="mobile-drawer-backdrop mobile-only" aria-hidden="true"></div>
+ <aside id="mobile-drawer" class="mobile-drawer mobile-only" role="dialog" aria-modal="true" aria-label="Mobile menu"
+ aria-hidden="true">
<div class="mobile-drawer-header">
- <span class="mobile-drawer-title" data-i18n="label.menu">Menu</span>
+ <span id="mobile-drawer-title" class="mobile-drawer-title" data-i18n="label.menu">Menu</span>
<button id="mobile-drawer-close" type="button" class="icon-btn" aria-label="Close menu">
<i class="fa-solid fa-xmark"></i>
</button>
@@ -569,12 +603,12 @@
<div class="mobile-drawer-body">
<div class="mobile-drawer-section">
<span class="mobile-drawer-label" data-i18n="label.views">Views</span>
- <div class="mobile-drawer-view-toggle" role="tablist">
- <button data-view="day" role="tab">Day</button>
- <button data-view="week" role="tab">Week</button>
- <button data-view="month" role="tab" aria-selected="true" class="active">Month</button>
- <button data-view="year" role="tab">Year</button>
- <button data-view="agenda" role="tab">Agenda</button>
+ <div class="mobile-drawer-view-toggle" role="tablist" aria-label="Mobile calendar views">
+ <button data-view="day" role="tab" aria-label="Day view" aria-selected="false" tabindex="-1">Day</button>
+ <button data-view="week" role="tab" aria-label="Week view" aria-selected="false" tabindex="-1">Week</button>
+ <button data-view="month" role="tab" aria-label="Month view" aria-selected="true" tabindex="0" class="active">Month</button>
+ <button data-view="year" role="tab" aria-label="Year view" aria-selected="false" tabindex="-1">Year</button>
+ <button data-view="agenda" role="tab" aria-label="Agenda view" aria-selected="false" tabindex="-1">Agenda</button>
</div>
</div>
@@ -602,27 +636,27 @@
<div class="mobile-drawer-section">
<span class="mobile-drawer-label" data-i18n="label.actions">Actions</span>
- <button id="mobile-world-planner-btn" type="button" class="mobile-drawer-item">
+ <button id="mobile-world-planner-btn" type="button" class="mobile-drawer-item" aria-label="Open planner">
<i class="fa-solid fa-earth-americas"></i> <span>Planner</span>
</button>
<a href="https://github.com/supunlakmal/hash-calendar" class="mobile-drawer-item action-link" target="_blank"
- rel="noopener">
+ rel="noopener" aria-label="GitHub">
<i class="fa-brands fa-github"></i> <span>GitHub</span>
</a>
<a href="https://www.buymeacoffee.com/supunlakmal" class="mobile-drawer-item action-link bmc-link"
- target="_blank" rel="noopener">
+ target="_blank" rel="noopener" aria-label="Buy me a coffee">
<i class="fa-solid fa-mug-hot"></i> <span>Buy me a coffee</span>
</a>
- <a href="privacy.html" class="mobile-drawer-item action-link">
+ <a href="privacy.html" class="mobile-drawer-item action-link" aria-label="Privacy">
<i class="fa-solid fa-shield-halved"></i> <span>Privacy</span>
</a>
- <a href="help.html" class="mobile-drawer-item action-link">
+ <a href="help.html" class="mobile-drawer-item action-link" aria-label="Help">
<i class="fa-solid fa-circle-question"></i> <span>Help</span>
</a>
- <a href="faq.html" class="mobile-drawer-item action-link">
+ <a href="faq.html" class="mobile-drawer-item action-link" aria-label="FAQ">
<i class="fa-solid fa-comments"></i> <span>FAQ</span>
</a>
- <a href="about.html" class="mobile-drawer-item action-link">
+ <a href="about.html" class="mobile-drawer-item action-link" aria-label="About">
<i class="fa-solid fa-circle-info"></i> <span>About</span>
</a>
</div>
@@ -655,20 +689,21 @@
<div class="mobile-drawer-section">
<span class="mobile-drawer-label" data-i18n="label.settings">Settings</span>
- <button id="mobile-weekstart-toggle" type="button" class="mobile-drawer-item">
+ <button id="mobile-weekstart-toggle" type="button" class="mobile-drawer-item" aria-label="Toggle week start day">
<i class="fa-solid fa-calendar-week"></i> <span>Week starts Sunday</span>
</button>
- <button id="mobile-theme-toggle" type="button" class="mobile-drawer-item">
+ <button id="mobile-theme-toggle" type="button" class="mobile-drawer-item" aria-label="Toggle theme">
<i class="fa-solid fa-circle-half-stroke"></i> <span>Theme: Light</span>
</button>
- <button id="mobile-notify-toggle" type="button" class="mobile-drawer-item">
+ <button id="mobile-notify-toggle" type="button" class="mobile-drawer-item" aria-label="Toggle notifications">
<i class="fa-solid fa-bell"></i> <span data-i18n="settings.notificationsOff">Notifications: Off</span>
</button>
<button id="mobile-readonly-btn" type="button" class="mobile-drawer-item" aria-pressed="false">
<i class="fa-solid fa-pen"></i> <span data-i18n="btn.readOnly">Read only</span>
</button>
<div class="mobile-drawer-item mobile-language-picker dropdown-container">
- <button id="mobile-language-btn" class="dropdown-trigger" type="button" aria-haspopup="listbox"
+ <button id="mobile-language-btn" class="dropdown-trigger" type="button" aria-label="Select language"
+ aria-haspopup="listbox"
aria-expanded="false"
style="width: 100%; border: none; background: transparent; padding: 0; box-shadow: none; justify-content: space-between;">
<div style="display: flex; align-items: center; gap: 10px;">
@@ -695,4 +730,4 @@
<script type="module" src="script.js"></script>
</body>
-</html>
\ No newline at end of file
+</html>