1. 스크립트 파일을 추가한다. 웹 2개 모바일 2개
모바일은 jquery.ui.touch-punch.min.js 파일을 다운받아 하나더 추가한다.
주소 : https://github.com/furf/jquery-ui-touch-punch
//웹용 스크립트 파일
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
//모바일용 스크립트 파일
<script src="http://code.jquery.com/jquery.min.js"></script>
사용시...
2017년 1월 29일 일요일
Jquery 숫자만 입력하기
$("#phone").keyup(function(){$(this).val( $(this).val().replace(/[^0-9]/g,"") );}...
sublime Text SFTP 기본 설정
{
// The tab key will cycle through the settings when first created
// Visit http://wbond.net/sublime_packages/sftp/settings for help
// sftp, ftp or ftps
"type": "ftp",
"save_before_upload": true, //저장하기 전에 업로드할지 여부를 체크한다.
"upload_on_save": true, // 업로드 하면서 저장할지 여부를 체크한다
"sync_down_on_open":...
2017년 1월 26일 목요일
facebook 페이지에 app 추가하기
https://www.facebook.com/dialog/pagetab? app_id=YOUR_APP_ID &redirect_uri=YOUR_URL
참고 URL : https://developers.facebook.com/docs/pages/t...
2017년 1월 18일 수요일
iframe 에서 부모창 접근하기
부모창 소스
<html>
<body>
<iframe id="test1" frameborder="0" src="test.jsp"></ifame>
<body>
<html>
이라고 가정한다면
test.jsp 소스에서
parent.document.getElementById(부모창에 있는 iframe아이디)
를 통해 iframe 속성에 접근한다.
test.jsp 안에서 부모에 있는 iframe 창의 높이를 수정해서 보여줄려고 한다면
onload 나 document.ready 를 활용해서
parent.document.getElementById("test1").height = document.body.offsetHeight;
을...
2017년 1월 14일 토요일
APM_SETUP 에서 Facebook needs the CURL PHP extension 에러 처리 방법
Curl 깔리지 않아서 나는 에러이다.
1. APM_Setup\Server\PHP5\ext\php_curl.dll 파일 확인후
2 php.ini 파일에 extension=php_curl.dll 주석을 해제한다...
mac sublimext 실행 방법
1. mac 에서 응용프로그램에서 sublimext 에 넣어두고
2. 터미널 실행
3. 아래 주소 입력
4. sudo /Applications/Sublime\ Text.app/Contents/MacOS/Sublime\ T...