Skip to content

Instantly share code, notes, and snippets.

View riix's full-sized avatar

Park, Soon-Ghil riix

View GitHub Profile
@riix
riix / mediaquery.css
Created January 14, 2013 05:18
Mobile MediaQuery from Skeleton CSS Framework
/* 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; }
}
@riix
riix / blocksit.js
Created January 8, 2013 07:37
BlocksIt 를 이용한 MediaQuerie 대체 용법
var currentWidth = 1100;
$(window).resize(function() {
var winWidth = $(window).width();
var conWidth;
if(winWidth < 660) {
conWidth = 440;
col = 2
} else if(winWidth < 880) {
conWidth = 660;
col = 3
@riix
riix / browsehappy.html
Created January 8, 2013 02:00
Browse Happy
<!--[if lt IE 7]>
<div class="browsehappy">
인터넷 이용환경 개선 캠페인
- 사용하시는 브라우저는 <em>낡은 브라우저</em> 입니다.
<a href="http://browsehappy.com/" target="_blank">다른 브라우저로 업그레이드 하세요.</a>
</div>
<![endif]-->
@riix
riix / base64.php
Created January 4, 2013 05:23
base64 Encode
$filename = $_FILES['upload']['name'];
$filename = preg_replace("/([가-힣]+)/ise", 'base64_encode(\'$1\')', $filename);
$filename = str_replace(' ','', $filename);
@riix
riix / referrerBlock.php
Created December 28, 2012 04:44
Referrer block with PHP
if (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'ilbe.com') !== FALSE) {
header('Location: http://block-ilbe.owlize.net/trashcan/');
exit;
}
@riix
riix / activeX.js
Last active November 1, 2021 05:40
activeX.js
/****************************************************
* @version : 1.6
* @date :
* @author : 박한얼
* @organization : Daum Communications UI Dev.
----------------------------------------------------------------
- id와 name이 없을 경우는 daumActiveXObject[0~99]로 임의로 생성
- id와 name중 하나만 값을 넣을 경우, id와 name을 같은 값으로 설정
@riix
riix / ui.common.js
Last active December 10, 2015 03:48
ui.common.js
/*************************************************************************************************
* 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 || {});
@riix
riix / plug-ins.js
Last active December 10, 2015 03:48
plug-ins.js
/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
*/
jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOut
@riix
riix / media.css
Last active December 10, 2015 03:48
MediaQueries
@charset "utf-8";
/* =============================================================================
* Filename: media.css
* Author: riix, EPASS C&I
* Update: 2013-01-01
============================================================================= */
/* =============================================================================
Category : Handheld
@riix
riix / copyright.html
Created December 26, 2012 00:29
Copyright 표기