<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>

<!--<div class="site-disclaimer">
		<a onclick="removeDisclaimer()"
			class="btn site-disclaimer__submit" data-cookiecode="">Enter site</a>
</div>-->

<script>
   
		function removeDisclaimer(){
			console.log("RemoveDisclaimer");
			setCookie("disclaimerCookie", true, 10);
			const elements = document.getElementsByClassName("site-disclaimer");
			while(elements.length > 0){
				elements[0].parentNode.removeChild(elements[0]);
			}
		}
		
	function setCookie(cname, cvalue, exdays) {
	  const d = new Date();
	  d.setTime(d.getTime() + (exdays*24*60*60*1000));
	  let expires = "expires="+ d.toUTCString();
	  document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
	}
	
	function getCookie(cname) {
	  let name = cname + "=";
	  let decodedCookie = decodeURIComponent(document.cookie);
	  let ca = decodedCookie.split(';');
	  for(let i = 0; i <ca.length; i++) {
		let c = ca[i];
		while (c.charAt(0) == ' ') {
		  c = c.substring(1);
		}
		if (c.indexOf(name) == 0) {
		  return c.substring(name.length, c.length);
		}
	  }
	  return "";
	}
	
	$(document).ready(() => {
		console.log("document ready");
		if(getCookie("disclaimerCookie")==="true"){
			console.log("Cookie already set");
			const elements = document.getElementsByClassName("site-disclaimer");
			while(elements.length > 0){
				elements[0].parentNode.removeChild(elements[0]);
			}
		}
		
		if(getCookie("disclaimerCookie")!="true"){
			console.log("adding html");
			 const div = document.createElement('div');
  			div.className = 'site-disclaimer';	
			  div.innerHTML = `
				<div class="site-disclaimer__bg"></div>
				<div class="site-disclaimer__popup">
				<p>Hepatichealth.gr is a site created for healthcare professionals and those professionally involved in treatment pathways for viral Hepatitis.</p>
				<a onclick="removeDisclaimer()"
				class="btn site-disclaimer__submit" data-cookiecode="">Enter site</a>
				</div>
			  `;
			
			document.body.appendChild(div);
		}
		
	})

</script>



<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//hepatichealth.gr/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://hepatichealth.gr/post-sitemap.xml</loc>
		<lastmod>2023-03-31T12:53:09+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://hepatichealth.gr/page-sitemap.xml</loc>
		<lastmod>2023-04-26T06:32:15+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://hepatichealth.gr/event-sitemap.xml</loc>
		<lastmod>2023-03-31T12:56:03+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://hepatichealth.gr/affiliates-sitemap.xml</loc>
		<lastmod>2022-09-23T12:26:12+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://hepatichealth.gr/elearning-module-sitemap.xml</loc>
		<lastmod>2023-03-31T12:57:11+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://hepatichealth.gr/category-sitemap.xml</loc>
		<lastmod>2023-03-31T12:53:09+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://hepatichealth.gr/post_tag-sitemap.xml</loc>
		<lastmod>2023-03-31T12:53:09+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://hepatichealth.gr/theme-sitemap.xml</loc>
		<lastmod>2023-03-31T12:55:16+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Yoast SEO -->