<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Today's Garfield</title>
    <script>
      document.addEventListener("DOMContentLoaded", () => {
        const date = new Date();
        
        const year = date.getFullYear();
        let month = date.getMonth() + 1;
        let day = date.getDate();

        if (month < 10) {
          month = "0" + month;
        }

        if (day < 10) {
          day = "0" + day;
        }
        const url = `https://www.gocomics.com/garfield/${year}/${month}/${day}/`;
        console.log(`Redirecting to ${url}`);
        location.href = url;
      });
    </script>
    <meta charset="utf-8" />
  </head>
  <body></body>
</html>