run&bike_unss_2026_chpt_depart_unss_run&bike_2026.html
body {
font-family: ‘Segoe UI’, Tahoma, Geneva, Verdana, sans-serif;
font-size: 12px;
max-width: 700px;
margin: 20px auto;
padding: 0 10px;
}
.header {
background-color:green;
color:white;
padding: 0.5em 1em;
}
.tabs-container {
display: flex;
flex-wrap: wrap;
background: green;
padding: 5px;
border-radius: 8px;
}
.tabs-container input[type= »radio »] {
display: none;
}
.tabs-container label {
padding: 5px 15px;
cursor: pointer;
background: #e5e5e5;
margin-right: 5px;
border-radius: 5px 5px 0 0;
transition: background 0.3s;
flex: 1 1 auto;
text-align: center;
order: 1;
}
.tabs-container label:hover {
background: #d5d5d5;
}
.tabs-container .tab-content {
display: none;
width: 100%;
padding: 20px;
background: #fff;
border: 1px solid #e5e5e5;
border-radius: 0 0 8px 8px;
order: 2;
box-sizing: border-box;
overflow-x: auto;
}
.tabs-container input[type= »radio »]:checked + label {
background: #fff;
font-weight: bold;
border: 1px solid #e5e5e5;
border-bottom: 1px solid #fff;
margin-bottom: -1px;
z-index: 2;
}
.tabs-container input[type= »radio »]:checked + label + .tab-content {
display: block;
}
table {
border-collapse: collapse;
width: 100%;
}
th, td {
border: 1px solid #ccc;
text-align: center;
padding: 5px 8px;
}
table tr td:nth-child(3), table tr th:nth-child(3) {
text-align: left;
white-space: nowrap;
width: 1%;
}
@media (max-width: 600px) {
.tabs-container {
flex-direction: column;
}
.tabs-container label {
margin-right: 0;
margin-bottom: 2px;
padding: 5px 10px;
border-radius: 5px;
width: 100%;
box-sizing: border-box;
order: 1;
}
.tabs-container .tab-content {
order: 2;
border-top: 1px solid #e5e5e5;
border-radius: 5px;
padding: 5px;
margin-top: 5px;
}
.tabs-container input[type= »radio »]:checked + label {
margin-bottom: 2px;
border-bottom: 1px solid #e5e5e5;
background-color: #fff;
}
.tab-content {
overflow-x: auto;
}
}
const tabs = document.querySelectorAll(‘input[name= »tabs »]’);
const saved = localStorage.getItem(« checked »);
if (saved) {
document.querySelector(`input[value= »${saved} »]`).checked = true;
}
tabs.forEach(radio => {
radio.addEventListener(« change », () => {
localStorage.setItem(« checked », radio.value);
});
});