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
| //<![CDATA[ | |
| $(function(){ | |
| var $wrap = $("#js-section0101"); | |
| var imageArr = ["/asan/images/main/section0101_bg.png", "/asan/images/main/section0101_bg2.png", "/asan/images/main/section0101_bg3.png"]; | |
| var oldNum; | |
| var num = ~~(Math.random()*imageArr.length); | |
| if(window.localStorage){ | |
| oldNum = Number(window.localStorage.getItem('section0101_ranomNum')); | |
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
| 참고 : http://ogelacinyc.tistory.com/63 | |
| 단순하게 정리하면, | |
| 웹폰트로 select내의 option을 적용하려할때. | |
| IE8은 무조건 시스템 폰트을 인정 => 즉 나눔고딕을 시스템폰트로 설치해야만 보여짐. | |
| 그외는 select의 font-family속성을 인정. |
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 lang="ko" xml:lang="ko"> | |
| <head> | |
| <title>타이틀명 입력.</title> | |
| <meta http-equiv="X-UA-Compatible" content="IE=8" /> | |
| <meta name="viewport" content="width=1240"> | |
| <!--=== FOR FACEBOOK ===--> |
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 lang="ko"> | |
| <head> | |
| <title>타이틀명.</title> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, target-densitydpi=medium-dpi" /> | |
| <meta name="format-detection" content="telephone=no, address=no, email=no" /> |
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
| //jQuery Extend image OnOff : dstyle | |
| //이미지 배열에서 특정 인덱스만 온으로 바꿈. | |
| (function($){ | |
| $.fn.onoff = function(opt){ | |
| var o={ | |
| idx:0, | |
| ext:"gif", | |
| sep:"On" | |
| }; | |
| (($.type(opt)=="object")?$.extend(o,opt):(o.idx = opt+"")); |
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
| //jQuery Extend unClick : dstyle | |
| //href가 있을때 이벤트가 없어지도록 처리 | |
| (function($){ | |
| $.fn.unclick = function(){ | |
| this.each(function(n,m){ | |
| m.onclick=function(){ | |
| return false; | |
| } | |
| }); | |
| return 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
| //jQuery Extend addIdx : dstyle | |
| //each가 가능한 오브젝트에 .idx 라는 값을 넣는다. 이건 자신의 인덱스 순서. | |
| (function($){$.fn.addIdx = function(s){var s=(!s)?"idx":s;$(this).each(function(n,m){m[s] = n;});return this;};})(jQuery); |
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
| //jQuery Extend relativeSet : dstyle | |
| //IE7을 위해 position z-index순서를 적용해줌. | |
| (function($){$.fn.relativeSet=function(){$(this).each(function(i){$(this).css({"position":"relative","z-index":(99999-i)});});};})(jQuery); |
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
| //jQuery Extend dHeight : dstyle | |
| // 윈도우 높이와 문서의 높이를 비교하여 큰것을 리턴. | |
| (function($){$.windowHeight = function(){return (($(window).height()>$(document.body).height())?$(window).height():$(document.body).height());};})(jQuery); |
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
| /* | |
| http://www.w3schools.com/cssref/playit.asp?filename=playcss_text-decoration&preval=line-through | |
| s : 취소선 이라는 의미(strikethrough text.) | |
| del : 삭제됨 이라는 의미 (delete) | |
| 만약 쇼핑몰에서 원가를 할인하여, 제공하는 경우, 원가 라는 개념은 남기 떄문에, del을 사용할순 없다. 그렇기 떄문에 CSS만으로 처리함. | |
| / | |
| div{text-decoration:line-through;} |