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
// Dependency: CountUp.js: https://github.com/inorganik/CountUp.js | |
(function ($) { | |
$.fn.countup = function (params) { | |
// make sure dependency is present | |
if (typeof CountUp !== 'function') { | |
console.error('countUp.js is a required dependency of countUp-jquery.js.'); | |
return; | |
} |
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 $.fn.onVisible runs callback function once the specified element is visible. | |
* callback: A function to execute at the time when the element is visible. | |
* example: $(selector).onVisible(callback); | |
*/ | |
(function($) { | |
$.fn.onVisible = function (callback) { | |
var self = this; |
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
/* All Desktop */ | |
@media only screen and (min-width: 767px) { | |
21body { border: solid 10px #00ffff; } | |
} | |
/* Smaller than standard 960 (devices and browsers) */ | |
@media only screen and (max-width: 959px) { | |
body { border: solid 10px #555555; } | |
} |
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.common.js | |
* @Author : 박순길 | |
* @Version 0.6 | |
* | |
************************************************************************************************/ | |
// Console-polyfill. MIT license. Make it safe to do console.log() always. | |
(function(con){ var method; var dummy = function() {}; var methods = ('assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn,memory').split(','); while (method = methods.pop()) { con[method] = con[method] || dummy; } })(window.console = window.console || {}); |
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
@charset "utf-8"; | |
/* ============================================================================= | |
* Filename: base.css | |
* Author: riix, EPASS C&I | |
* Update: 2013-01-01 | |
============================================================================= */ | |
/* ============================================================================= | |
Category : HTML5 Display Definitions | |
============================================================================= */ |
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
@charset "utf-8"; | |
@import url('../css/guide.css'); | |
/* Normalize ------------------------------------------------ */ | |
html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } | |
html, body { margin: 0px; padding: 0px; } | |
body, p, h1, h2, h3, h4, h5, h6, ul, ol, li, dl, dt, dd, table, th, td, form, fieldset, legend, input, textarea, button, select {-webkit-text-size-adjust: 100%; } | |
header, footer, section, article, aside, nav, hgroup, details, menu, figure, figcaption { display: block; } | |
em, address { font-style: normal; } |
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
$(window).scroll(function() { | |
if ($(window).scrollTop() > 175 ) { | |
$('.sticky').css({'position' : 'fixed', 'top' : 0}); | |
} else { | |
$('.sticky').css({'position' : 'relative', 'top' : 'none'}); | |
} | |
}); |
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
// Switch StyleSheets With jQuery | |
$('link[media='screen']').attr('href', 'Alternative.css'); | |
// 동적 생성으로 DOM 객체 추가하기 | |
var $newDiv = $('<div></div>'); | |
$newDiv.attr("id","newDiv").appendTo("body"); | |
// 양 객체 사이에 다른 요소 삽입하기 | |
$("p:not(:last-of-type)").after("<br />"); |
NewerOlder