This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# カラーコード | |
GREEN='\033[0;32m' # 緑 | |
RED='\033[0;31m' # 赤 | |
NC='\033[0m' # リセット | |
# プロンプトでユーザーからの入力を収集 | |
read -p "API Token を入力して下さい: " YOUR_API_KEY | |
read -p "Zone ID を入力して下さい: " ZONE_ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function highlightInvalidEffort() { | |
const response = await fetch('https://holidays-jp.github.io/api/v1/date.json') | |
const holidays = await response.json() | |
const rows = document.querySelectorAll('tbody tr') | |
for (const row of rows) { | |
const dateCell = row.querySelector('td:nth-child(1)') | |
const dateString = dateCell.textContent.trim().substring(0, 5) | |
const date = new Date(`2023-${dateString.replace('/', '-')}`) | |
const isHoliday = holidays.hasOwnProperty(date.toISOString().split('T')[0]) |