<!DOCTYPE html>
<html lang="en">
<head>
<title>Contact|DChavezMusic</title>
<meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <!-- Allows the site to open in full-screen mode like an app -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  
  <!-- Sets the status bar style (default, black, or black-translucent) -->
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  
  <!-- The title displayed below the home screen icon -->
  <meta name="apple-mobile-web-app-title" content="Contact | DChavezMusic!">
  
  <!-- The icon used on the iOS home screen (Recommended size: 180x180 px) -->
  <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
</head>
<body>
<?php
include("header.php");
?>
<?php
include("nav.php");
?>
<script type="text/javascript">
function jumpToContent() {
  const main-content = document.getElementById('main-content');
  
if (main-content) {
    // 1. Move focus to the main container
    main-content.focus();
    
    // 2. Optional: Ensure older browsers register the scroll placement
    main-content.scrollIntoView({ behavior: 'smooth' });
  }
}
main-content.addEventListener('blur', () => {
  main-content.removeAttribute('tabindex');
}, { once: true });
</script>
<main id="main-content" aria-label="Primary Content"><h1 id="main-content">Drop Me a Line</h1>
<br>
<p>Every great project starts with a conversation. I can't wait to hear about what you're creating. Reach out to me, and let's start the dialogue to craft your perfect sound.</p>
<br>
<p>You may reach me via 2 methods:</p>
<br>
<p><ul>
<li>Via Email:
<?php
function encode_email_address( $email ) {
     $output = '';
     for ($i = 0; $i < strlen($email); $i++)
{
          $output .= '&#'.ord($email[$i]).';';
     }
     return $output;
}
$encodedEmail = encode_email_address( 'webmaster@dchavezmusic.cc' );
printf('<a href="mailto:%s">%s</a>', $encodedEmail, $encodedEmail);
?></li>
<li>Via Phone: <a href="tel:7744180425">Click To Call DChavezMusic Now</a></li></ul>
<?php
include("business-hours.php");
?>
<h1>My Business Hours (Central Time)</h1>
    <p><?php echo $statusMessage; ?></p>

    <h2>Today's Hours (<?php echo date('l'); ?>):</h2>
    <?php if (isset($businessHours[$currentDay]) && $businessHours[$currentDay] !== null): ?>
        <p><?php echo $businessHours[$currentDay][0] . ' - ' . $businessHours[$currentDay][1]; ?></p>
    <?php else: ?>
        <p>Closed today.</p>
    <?php endif; ?>

    <h2>Full Weekly Schedule:</h2>
    <ul>
        <?php foreach ($businessHours as $day => $hours): ?>
            <li>
                <?php echo $day; ?>:
                <?php if ($hours !== null): ?>
                    <?php echo $hours[0] . ' - ' . $hours[1]; ?>
                <?php else: ?>
                    Closed
                <?php endif; ?>
            </li>
        <?php endforeach; ?>
    </ul></main>
</body>
</html>
<?php
include("footer.php");
?>