A Pen by richard park on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Atom |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<head> | |
<style type="text/css"> | |
<!-- | |
#foo { | |
padding: 10px; | |
background: #fff; | |
border: solid 10px #ff0000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* URL encode / decode | |
* http://www.webtoolkit.info/ | |
* | |
**/ | |
var Url = { | |
// public method for url encoding |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
// 목록 마지막 요소 흐림처리 | |
$('ul.list-a').addClass('infinite-scroll'); | |
}); | |
var count = 2; | |
// 스크롤 이벤트 | |
$(window).on('scroll',function () { | |
infiniteScroll(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************************************************************* | |
* ui.mobile.js | |
* | |
* @Author : 박순길 | |
* @Version 0.5 | |
* | |
* @Searching List | |
* browser : Browser Detect | |
* | |
************************************************************************************************/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var deferCount = 0; // 중복 실행 방지 | |
$(window).on('load', function(){ | |
if(deferCount < 1) defer(); | |
++deferCount; | |
}); | |
function defer(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<meta http-equiv="content-language" content="kr" /> | |
<meta http-equiv="content-style-type" content="text/css" /> | |
<meta http-equiv="pragma" content="no-cache" /> | |
<meta http-equiv="cache-control" content="no-cache" /> | |
<meta http-equiv="imagetoolbar" content="no" /> | |
<title>Thumbnail Gallery</title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var timeStamp = new Date().getTime(); | |
document.write('<script type="text/javascript" src="../js/ui.js?timeStamp='+timeStamp+'" charset="utf-8"><\/script>'); | |
// or | |
document.write('<script type="text/javascript" src="../js/ui.js?timeStamp='+Math.floor(+new Date()/1000)+'" charset="utf-8"><\/script>'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript">document.write('<script type="text/javascript" src="../js/ui.js?rand='+(parseInt(Math.random()*1000))+'" charset="utf-8"><\/script>');</script> |