 
	function getUrlParameter(sParam) {
		var sPageURL = window.location.search.substring(1),
		sURLVariables = sPageURL.split('&'),
		sParameterName,
		i;
		
		for(i = 0; i < sURLVariables.length; i++) {
			sParameterName = sURLVariables[i].split('=');
			
			if(sParameterName[0] === sParam) {
				return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
			}
		}
	}
	
	//this validates the document page is ready before executing the code inside
	$(document).ready(function() {
	
	
	
	//this validates if there is a parameter in the URL named "debug" before executing the code inside
		if(getUrlParameter('debug')){
		
		//stores the webpage url path in the variable urlPath	
		var urlPath = window.location.pathname
    
			//this validates the webpage url path has the "/resources/resource/" sub-path in it before executing the code inside
			if (urlPath.includes("/resources/resource/")){       
			  
			  //this creates the usefulness question header and button tag after the "social-foot" class tag
			  $('.social-foot').after($("<br/><div><h1 class='big-huge-title resource-useful-question' style='display: block; margin-left:auto; margin-right:auto; text-align: center; font-size:25px'>Was this resource useful?</h1><button class='button-blue btn-gmu-like' type='button' style='font-size:20px; display: block; margin-left: auto; margin-right: auto'>Yes</button></div>"));
				
			   //when the "like" button class tag is clicked on, the function body executes
			   $(".btn-gmu-like").click(function() {
					
					//this function disables the "like" button class tag from being clicked on again
					$(this).prop('disabled', true);
					
					//this function changes the "like" button class tag text from Yes to Thank You
					$(".btn-gmu-like").html("Thank You");
					
					
					
				});
			}
		}

	}); 