HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-84-generic #84-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 5 22:36:38 UTC 2025 x86_64
User: healthinsuranceukorguk (1111)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //home/roofmagazine.org.uk/public_html/roof_scripts/blog_scripts.js
$(document).ready(function(){
	$("#blog_archives ul:not(:first)").hide();
	$("#blog_archives h4:first").addClass("archive_open");
	$("#blog_archives h4:not(:first)").addClass("archive_closed");

$("#mailing_email").click(function () { 

if ($(this).val() == "Your email") {
$(this).val("").css("color","#000000");
}

});

$("#mailing_email").blur(function () { 

if (($(this).val() == "Your email") ||  ($(this).val() == "")) {
$(this).val("Your email").css("color","#666666");
}

});

$("#blog_archives h4").hover(
      function () {
         $(this).css("cursor","pointer");
      }, 
      function () {
         $(this).css("cursor","default");
      }
    );


	 //Toggle the lists
	 $("#blog_archives h4").click(function () { 
            
      if ($(this).hasClass("archive_open")) {
      		$(this).removeClass("archive_open");
      		$(this).next().slideUp("medium");
      		$(this).addClass("archive_closed");
      } else {
      		$(this).removeClass("archive_closed");
      		$(this).next().slideDown("medium");
      		$(this).addClass("archive_open");
      }
      
      
    });

});