편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.
최신판 | 당신의 편집 | ||
4번째 줄: | 4번째 줄: | ||
==문제상황== | ==문제상황== | ||
*raw.githubusercontent.com 로 접근하면 거부됨 | *raw.githubusercontent.com 로 접근하면 거부됨 | ||
< | <source lang='html5'> | ||
<link rel="stylesheet" href="//raw.githubusercontent.com/xdan/datetimepicker/master/jquery.datetimepicker.css"> | <link rel="stylesheet" href="//raw.githubusercontent.com/xdan/datetimepicker/master/jquery.datetimepicker.css"> | ||
<script src="//raw.githubusercontent.com/xdan/datetimepicker/master/jquery.datetimepicker.js"></script> | <script src="//raw.githubusercontent.com/xdan/datetimepicker/master/jquery.datetimepicker.js"></script> | ||
</ | </source> | ||
{{인용문| | {{인용문| | ||
datetimepicker2.php:1 Refused to execute script from 'http://raw.githubusercontent.com/xdan/datetimepicker/master/jquery.datetimepicker.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled. | datetimepicker2.php:1 Refused to execute script from 'http://raw.githubusercontent.com/xdan/datetimepicker/master/jquery.datetimepicker.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled. | ||
13번째 줄: | 13번째 줄: | ||
==해결방법== | ==해결방법== | ||
* | *cdn.rawgit.com 로 접근하면 사용 가능<ref>정확하게는... rawgit.com은 non-production판, cdn.rawgit.com은 production판</ref> | ||
<source lang='html5'> | |||
<link rel="stylesheet" href="//cdn.rawgit.com/xdan/datetimepicker/master/jquery.datetimepicker.css"> | |||
<script src="//cdn.rawgit.com/xdan/datetimepicker/master/jquery.datetimepicker.js"></script> | |||
</source> | |||
< | |||
<link rel="stylesheet" href=" | |||
<script src="/ | |||
</ | |||
==같이 보기== | ==같이 보기== | ||
*[[JQuery 날짜시간선택기 datetimepicker]] | *[[JQuery 날짜시간선택기 datetimepicker]] | ||
*[[GitHub]] | *[[GitHub]] | ||
*[[CDN]] | *[[CDN]] | ||
==참고== | ==주석== | ||
<references/> | |||
==참고 자료== | |||
*http://stackoverflow.com/questions/17341122/link-and-execute-external-javascript-file-hosted-on-github | *http://stackoverflow.com/questions/17341122/link-and-execute-external-javascript-file-hosted-on-github | ||
[[분류: GitHub]] | [[분류: GitHub]] | ||
[[분류: CDN]] | [[분류: CDN]] |