<!DOCTYPE html>
<html>
    
<head>
<!-- Google tag (gtag.js) -->
<?php 
include 'sitedetails.php';
?>
   <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
   <script type="text/javascript" src="script.js"></script>
   <link rel="stylesheet" type="text/css" href="css/styles3.css">

</head>

<body>
<div class="sticky-header">
<div class="logo2"><a href="<?php echo $siteurlnav ?>"><?php echo $sitename ?>  Songs </a></div>
<form action="/search.php" method="get/post" name="form" class=form >
   <input type="text" id="search" name=search class="input1" placeholder="Search" />
   <br>
   <br />

   <!-- Suggestions will be displayed in below div. -->
   <input class=button1 type="submit" value="Search">
   </form>
<div class=results1 id="display"></div>
</div>
</div>


</body>

<style>


.sticky-header {
  top: 0;
  left: 0;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}


@media only screen and (max-width: 600px) {
  .sticky-header {
 
  width: 89%;
  
}
}
    </style>


</html>

<script>
    // Function to update the value of the input button based on screen width
    function updateButtonValue() {
        var button = document.querySelector('.button1'); // Select the input button element
        if (window.innerWidth <= 600) { // Check if screen width is less than or equal to 600px
            button.value = "🔍"; // Update the value to "S"
        } else {
            button.value = "Search"; // Otherwise, set it back to "Search"
        }
    }

    // Call the function initially to set the initial button value
    updateButtonValue();

    // Attach an event listener to resize event to update the button value when the screen size changes
    window.addEventListener('resize', updateButtonValue);
</script>

