PageSourceSearch

https://aihub.or.kr/js/egovframework/com/cmm/aihubDownload.js?ver=1790851036308

js aihub.or.kr collected 2026-10-01 10:38:31 UTC 2,365 bytes, 80 lines download raw bytes

1/****************************************************************
2 *
3 * 파일명 : ajhubDownload
4 * 설  명 : innorix 다운 JavaScript
5****************************************************************/
6/**
7aidata - 데이터셋
8aifile - 저작도구 
9 */	
10// innorix 다운로드 클릭
11
12function checkDownload(dataSetSn, dataSe, autoolCode, s3FileCnt, dwldTkn, dataPckageSn) {
13	var dataTypes = ['aidata', 'aifile', 'aimodel'];
14	//var dataTypes = ['aidata', 'open', 'tool', 'contest'];
15	
16	if(typeof dataSetSn == "undefined" || dataSetSn == null || dataSetSn == ""){
17		console.log('dataSetSn null');
18		dataSetSn = '';
19	}
20	
21	if(dataSe == "aidata"){
22		if(typeof dwldTkn == "undefined" || dwldTkn == null || dwldTkn == ""){
23			console.log('emplyrSn null');
24			alert('로그인 후 시도해주세요.');
25			return false;
26		}
27		
28		
29		// s3파일 존재 유무
30		if(s3FileCnt == 0){
31			alert('데이터 준비중입니다.');
32			return false;
33		}
34	}
35	
36	if (dataTypes.includes(dataSe)) {
37		aidata_download(dataSetSn, dataSe, autoolCode, dwldTkn, dataPckageSn);
38	}
39}
40
41// innorix 다운로드 팝업
42function aidata_download(dataSetSn, dataSe, autoolCode, dwldTkn, dataPckageSn) {
43		var dataSn = !isEmpty(dataPckageSn) ? dataPckageSn : dataSetSn;
44		let _winName = "objectWin_"+dataSn;
45		
46		var params = '?';
47		
48		if(!isEmpty(dataPckageSn)){
49			params += 'dataPckageSn=' + dataPckageSn;
50		}else{
51			params += 'dataSetSn=' + dataSetSn;
52		}
53		
54		if(dataSe == "aifile" || dataSe == "aimodel" ){
55			params += '&autoolCode=' + autoolCode;
56		}
57		params += '&dataSe=' + dataSe + '&dwldTkn=' + dwldTkn;
58		
59		let url = 'https://sftp.aihub.or.kr/file/downloadList.do' + params;
60		
61		popupCenter(url, 640, 670 , _winName);
62		
63		let form = document.createElement("form");
64		
65		form.setAttribute("method", "post");
66		form.setAttribute("target", _winName);
67		form.setAttribute("action", url);
68		document.body.appendChild(form);
69		
70		form.submit();
71}
72
73// 팝업창 설정
74function popupCenter(href, w, h, winName) {
75		var xPos = (document.body.offsetWidth / 2) - (w / 2);
76		xPos += window.screenLeft;
77		var yPos = (document.body.offsetHeight / 2) - (h / 2) - 100;
78	
79		window.open(href, winName, "width=" + w + ", height=" + h + ", left=" + xPos + ", top=" + yPos + ", menubar=yes, status=yes, titlebar=no");
80}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.