diff --git a/.gitignore b/.gitignore deleted file mode 100644 index b9d6bd9..0000000 --- a/.gitignore +++ /dev/null @@ -1,215 +0,0 @@ -################# -## Eclipse -################# - -*.pydevproject -.project -.metadata -bin/ -tmp/ -*.tmp -*.bak -*.swp -*~.nib -local.properties -.classpath -.settings/ -.loadpath - -# External tool builders -.externalToolBuilders/ - -# Locally stored "Eclipse launch configurations" -*.launch - -# CDT-specific -.cproject - -# PDT-specific -.buildpath - - -################# -## Visual Studio -################# - -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. - -# User-specific files -*.suo -*.user -*.sln.docstates - -# Build results - -[Dd]ebug/ -[Rr]elease/ -x64/ -build/ -[Bb]in/ -[Oo]bj/ - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* - -*_i.c -*_p.c -*.ilk -*.meta -*.obj -*.pch -*.pdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*.log -*.vspscc -*.vssscc -.builds -*.pidb -*.log -*.scc - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opensdf -*.sdf -*.cachefile - -# Visual Studio profiler -*.psess -*.vsp -*.vspx - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# NCrunch -*.ncrunch* -.*crunch*.local.xml - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.Publish.xml -*.pubxml - -# NuGet Packages Directory -## TODO: If you have NuGet Package Restore enabled, uncomment the next line -#packages/ - -# Windows Azure Build Output -csx -*.build.csdef - -# Windows Store app package directory -AppPackages/ - -# Others -sql/ -*.Cache -ClientBin/ -[Ss]tyle[Cc]op.* -~$* -*~ -*.dbmdl -*.[Pp]ublish.xml -*.pfx -*.publishsettings - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file to a newer -# Visual Studio version. Backup files are not needed, because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm - -# SQL Server files -App_Data/*.mdf -App_Data/*.ldf - -############# -## Windows detritus -############# - -# Windows image file caches -Thumbs.db -ehthumbs.db - -# Folder config file -Desktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Mac crap -.DS_Store - - -############# -## Python -############# - -*.py[co] - -# Packages -*.egg -*.egg-info -dist/ -build/ -eggs/ -parts/ -var/ -sdist/ -develop-eggs/ -.installed.cfg - -# Installer logs -pip-log.txt - -# Unit test / coverage reports -.coverage -.tox - -#Translations -*.mo - -#Mr Developer -.mr.developer.cfg diff --git a/README.md b/README.md deleted file mode 100644 index a3f01f5..0000000 --- a/README.md +++ /dev/null @@ -1,197 +0,0 @@ -# jQuery MsgBox - -0.8.1 BETA - -## What is it? - -Firefox style simplist dialog form. - - -## How to install? - -before install, you must have [jQuery](http://jquery.com/download/) >= 1.5.0, I strongly recommand you have a lastest version. - -That's very simple. just download below lastest version, - - - [Minified (for production)](https://raw.github.com/composite/jQuery.MsgBox/master/jquery.msgbox.min.js) - - [Unminified (for development)](https://raw.github.com/composite/jQuery.MsgBox/master/jquery.msgbox.js) - -If you have bower? just type in your console. - -``` -bower install msgbox -``` - -Still not easy? OH PLZ... - -## How to use this? - -It's quiet simple. - -```html - - -``` - - alert("i'm alert"); - -> $.alert("i'm alert"); - - confirm("Are you sure?"); - -> $.confirm("Are you sure?"); - - prompt("please text me."); - -> $.prompt("please text me."); - -## Wait! YOU MUST SEE BEFORE USE THIS PLUGIN, -this plugin is can't replace as javascript standard function (alert, etc.) -because, this plugin cannot wait user action while showing dialog. -If you want get user's action, put a callback function in next of message param. -when user clicked in a dialog button, such as OK or cancel, msgbox will call your defined function. - -Please don't.. -```js -form.submit=function(){ - //All MsgBox function returns MsgBox Container Object. so it'll return always true. - if($.confirm('Are you sure to save it?')){ - return true;//Page will changed without your confirm. - } - return false; -} -``` -**So, what can I do?** - -```js -form.submit=function(){ - if(!form.confirm){//Use variables or DOM objects or whatever you want. - $.confirm('Are you sure to save it?',function(answer){ - form.confirm=answer; - if(answer) form.submit();//submit again to verify confirm value. - }); - return false;//You should use this line to prevent page changes. - }else return true; -} -``` -* You can use another solution to solve this. - -## OK. so, How to use with callback function? - -jQuery.MsgBox can add your callback function for provide next action after user clicked. -It's Very simple. - -```js -$.alert("click me.",function(){ - $.alert('you are clicked!'); -}); -``` -```js -$.confirm("press OK or Cancel.",function(bool){ - $.alert('you are clicked '+(bool?'OK':'cancel')); -}); -``` -```js -$.prompt("what's your name?",function(string){ - $.alert('your name is '+string); -}); -``` - -## I want view live example. - -Sure. [here's an example](http://jsfiddle.net/preFy/ "live example"). - -## What browser can run with this plugin? - -first, jQuery 1.5 or later needed. -and, You can run with most popular major browser, -Internet Explorer 8 or above, Firefox 3 or above, Safari 4 or above, Chrome 10 or above, Opera 9 or above. -NOTE : Old school browser, such as IE 7 or lower is have a problem with CSS issue. -that's all. this plugin have NO images or other resources. - -## I want use as own style, is it possible? - -Yes. check out [Wiki](https://github.com/composite/jQuery.MsgBox/wiki) for detailed usage. - -## Wow! It's simple and cool! can I join with you for make better this plugin? - -Sure. contributes are welcome! just fork this plugin and get involved to make a better place for you and for me. - -## Hey, I'm using IE version under 9, Msgbox flicking when showing MsgBox. What's happening? - -Sorry. that is prevent changing width dynamically after center align on IE. I don't know it is bug, but I'll figure out it. - -## Goals - - - More Simplify and Optimization. - - Less Size and Unresolved Issues. - - **All Methods will returns Deferred Object instead of DOM Container** ??? Well, I'll think about it. - -## What's new? - -### 0.8.1 - - - Some code optimization. - - Use UglifyJS for minification, instead of YUI compressor. - -### 0.8.0 - - - Major UI changes: more compatibility to view, Wrapped more a div to centering layer using only CSS (but still vertical centering using JS). - - NEW property: onopen event property and $.msgbox.onopen static property; Fires after msgbox opened. - - NEW property: onclose event property and $.msgbox.onclose static property; Fires before msgbox closing. - - 2 new property for your own CSS or JS animation effect. onclose event also support jQuery Deferred Object. See [Wiki](https://github.com/composite/jQuery.MsgBox/wiki) for details. - -### 0.7.5 - - - console.log() for test will not fired in production mode. - -### 0.7.4 - - - Container add for prompt bug fixed. - - fixed prompt UI. - -### 0.7.3 (internal) - - - onresize event callback changed; this keyword will point to msgbox container. plain DOM, not jQuery. - -### 0.7.2 (internal) - - - remove static property **customStyle**. just add style `````` or `````` instead. - - Fixed minor UI bugs. - -### 0.7.1 (Internal) - - - Fixed some bug. - - console.log() for test is will not fired in production mode. - -### 0.7.0 (Internal) - - - Replaced inline style to inline CSS for more performance. - - Removed css property in $.msgbox() use $.msgbox.css or own standard CSS instead. - - input property of $.msgbox changed. You can set any human-view type (string, number, etc). if not want prompt, just set false or undefined or null. - - Fixed ENTER or ESC press event bug in input box - - new property: onresize; available on $.msgbox() or $.msgbox.onresize static property. You can prepare when window size changes. see wiki for details. - - new static property: customStyle; You want set own style instead of default style, just add your code : ```$.msgbox.customStyle = true;``` - -### 0.6.1 - - - Fixed forced true callback after press ENTER key. focused button will fired event if you press ENTER key. - -### 0.6.0 - - - Auto resizing added. Msgbox will show full size when window size less than alert size, If not, revert to original size. - -### 0.5.0 - - - Use <div> with white-space: pre; instead of <pre> for more better view of MsgBox with CSS Framework such as Bootstrap. - - Remove Browser compatibility for position:fixed is buggy under IE 7, so this will support jQuery over 1.8! I'll never test freaking old browsers. - - Remove jQuery in my repository, Use any available jQuery CDN in demo instead. - -## License - -(The MIT License) - -Copyright (c) 2011-2012 Ukjin 'composite' Yang - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/bower.json b/bower.json deleted file mode 100644 index a2797da..0000000 --- a/bower.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "msgbox", - "version": "0.8.1", - "description": "The Message box for web, Firefox style, User notification made simple.", - "keywords": ["alert","confirm","prompt","msgbox","dialog","notification","ui","simple"], - "authors": ["Composite"], - "license": "MIT", - "homepage": "https://github.com/composite/jQuery.MsgBox", - "main": ["jquery.msgbox.min.js"], - "ignore": ["*.json"], - "dependencies": {"jquery": ">= 1.5.0"}, - "devDependencies": {} -} diff --git a/demo.html b/demo.html deleted file mode 100644 index 5d004bc..0000000 --- a/demo.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - MsgBox 데모 - - - - - - - - - - - - - - \ No newline at end of file diff --git a/demo.min.html b/demo.min.html deleted file mode 100644 index 74abbbf..0000000 --- a/demo.min.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - MsgBox 데모 - - - - - - - - - - - - - - \ No newline at end of file diff --git a/images/bg_hr.png b/images/bg_hr.png new file mode 100644 index 0000000..7973bd6 Binary files /dev/null and b/images/bg_hr.png differ diff --git a/images/blacktocat.png b/images/blacktocat.png new file mode 100644 index 0000000..6e264fe Binary files /dev/null and b/images/blacktocat.png differ diff --git a/images/icon_download.png b/images/icon_download.png new file mode 100644 index 0000000..a2a287f Binary files /dev/null and b/images/icon_download.png differ diff --git a/images/sprite_download.png b/images/sprite_download.png new file mode 100644 index 0000000..f2babd5 Binary files /dev/null and b/images/sprite_download.png differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..e6d3f9c --- /dev/null +++ b/index.html @@ -0,0 +1,169 @@ + + + + + + + + + + + Jquery.msgbox + + + + + +
+
+ View on GitHub + +

Jquery.msgbox

+

Firefox style simplist dialog form.

+ +
+ Download this project as a .zip file + Download this project as a tar.gz file +
+
+
+ + +
+
+

+jQuery MsgBox

+ +

0.3.7 BETA

+ +

+What is it?

+ +

Firefox style simplist dialog form.

+ +

+How to use this?

+ +

It's quiet simple.

+ +
<script src="jquery.lastest.js"></script>
+<script src="jquery.msgbox.min.js"></script>
+
+ +

alert("i'm alert"); +-> $.alert("i'm alert");

+ +

confirm("Are you sure?"); +-> $.confirm("Are you sure?");

+ +

prompt("please text me."); +-> $.prompt("please text me.");

+ +

+Wait! YOU MUST SEE BEFORE USE THIS PLUGIN,

+ +

this plugin is can't replace as javascript standard function (alert, etc.) +because, this plugin cannot wait user action while showing dialog. +If you want get user's action, put a callback function in next of message param. +when user clicked in a dialog button, such as OK or cancel, msgbox will call your defined function.

+ +

Please don't..

+ +
form.submit=function(){
+    //All MsgBox function returns MsgBox Container Object. so it'll return always true.
+    if($.confirm('Are you sure to save it?')){
+        return true;//Page will changed without your confirm.
+    }
+    return false;
+}
+
+ +

So, what can I do?

+ +
form.submit=function(){
+    if(!form.confirm){//Use variables or DOM objects or whatever you want.
+        $.confirm('Are you sure to save it?',function(answer){
+            form.confirm=answer;
+            if(answer) form.submit();//submit again to verify confirm value.
+        });
+        return false;//You should use this line to prevent page changes.
+    }else return true;
+}
+
+ +
    +
  • You can use another solution to solve this.
  • +

+OK. so, How to use with callback function?

+ +

jQuery.MsgBox can add your callback function for provide next action after user clicked. +It's Very simple.

+ +
$.alert("click me.",function(){
+    $.alert('you clicked');
+});
+
+ +
$.confirm("press OK or Cancel.",function(bool){
+    $.alert('you clicked'+(bool?'OK':'cancel'));
+});
+
+ +
$.prompt("what's your name?",function(string){
+    $.alert('your name is '+string);
+});
+
+ +

+I want view live example.

+ +

OK. here's an example.

+ +

+What browser can run with this plugin?

+ +

first, jQuery 1.4 or later needed. +and, You can run with most popular major browser, +Internet Explorer 8 or above, Firefox 3 or above, Safari 4 or above, Chrome 10 or above, Opera 9 or above. +NOTE : Old school browser, such as IE 7 or lower is have a problem with CSS issue. +that's all. this plugin have NO images or other resources.

+ +

+Wow! It's simple and cool! can I join with you for make better this plugin?

+ +

Sure. contributes are welcome! just fork this plugin and get involved to make a better place for you and for me.

+ +

+Goals

+ +
    +
  • More Simplify and Optimization.
  • +
  • Less Size and Unresolved Issues.
  • +
  • All Methods will returns Deferred Object instead of DOM Container
  • +

+License

+ +

(The MIT License)

+ +

Copyright (c) 2011-2012 Ukjin 'composite' Yang ukjinplant@msn.com

+ +

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

+ +

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

+ +

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+
+
+ + + + + + + + diff --git a/javascripts/main.js b/javascripts/main.js new file mode 100644 index 0000000..d8135d3 --- /dev/null +++ b/javascripts/main.js @@ -0,0 +1 @@ +console.log('This would be the main JS file.'); diff --git a/jquery.msgbox.js b/jquery.msgbox.js deleted file mode 100644 index 607a007..0000000 --- a/jquery.msgbox.js +++ /dev/null @@ -1,355 +0,0 @@ -/************************************************************************************** - * jQuery MsgBox 0.8.1 - * by composite (ukjinplant@msn.com) - * http://blog.hazard.kr - * This project licensed under a MIT License. - **************************************************************************************/; -(function ($) { - if(!window.console){ - window.console = {}; - window.console.log = $.noop; - } - var fixed = 'fixed', div = 'div', kp = 'keypress', rs = 'resize', mb = 'msgbox-', dmb = '.' + mb, cst = mb + '-style', btn = 'button', clk = 'click', legacy = 'v' == '\v' //IE 8 대응. - ,isCssDef = function(css){ - return !css || css == 'auto'; - },$$ = function(tag){return $(document.createElement(tag));}; - - //첫 메시지박스 실행시 스타일시트 삽입 - var styleGen = function(style, repl){ - if(styleGen.once && !repl) return; - style = style || {}; - var css = styleGen.style ? styleGen.style : (styleGen.style = $$('style').addClass(cst).attr('type','text/css')), builder = []; - - for(var part in style){ - if(!style[part]){continue;} - var cs = style[part]; - - builder.push(dmb + part); - builder.push('{'); - - for(var name in cs){ - if(legacy){ - switch(name){ - case 'opacity':builder.push('filter:alpha(opacity=' + (+(cs[name].substring(0,1) == '.' ? ('0'+cs[name]) : cs[name]) * 100 || 100) + ');');break; - default:builder.push(name + ':' + cs[name] + ';');break; - } - }else{ - builder.push(name + ':' + cs[name] + ';'); - } - } - - builder.push('}'); - } - - css.each(function(){ // IE 8 때문에 별도의 방법 사용 - var cont = builder.join(''); - if(legacy){ // IE 문제 해결 - this.styleSheet.cssText = cont; - }else{ // 나머지는 표준대로 - this.innerHTML = cont; - } - }).appendTo('head'); - styleGen.once = true; - } - - //함수 실행부 - $.msgbox = function (msg, options) { - //옵션 가공 - options = $.extend({}, $.msgbox.options, options); - - //스타일 생성 - if(!$(cst).length){styleGen($.msgbox.css);} - - //변수 및 요소 정의 - var io = {}, - cok = mb + 'ok', - cno = mb + 'no', - pw = 'password', - styles = options.css || {}, - t = !0, - f = !1, - p = options.input !== false && options.input != undefined && options.input != null, - q = !!options.confirm, - iae = function(e) { //포커스된 요소가 메시지박스 아니면 메시지박스로 강제 포커스 이동 - setTimeout(function(){ - var act=$(document.activeElement),ms=[dmb+'input',dmb+btn]; - if(act.length&&(act.is(ms[0])||act.is(ms[1]))){ - //console.log('good.'); - } - else $C.find(ms+'').eq(0).focus(); - },0); - }, - $W = $(window), - //경고창 - $C = $$(div).addClass(mb + 'container').append($$(div).addClass(mb + 'ui').addClass(mb + (p ? 'prompt' : (q ? 'confirm' : 'alert')))).children(), - //경고창 배경 - $M = $$(div).addClass(mb + 'modal'), - //경고 내용 - $T = $$(div).addClass(mb + 'msg').html(msg).appendTo($C), - //입력 모드시 입력창 - $I = p ? - $("
").addClass(mb + 'inbox').children() - .addClass(mb + 'input').bind('keydown',function(e){//탭의 역순 시 마지막 버튼 포커스 - var code = e.which; - if(code == 9 && e.shiftKey){ - e.preventDefault(); - $C.find(dmb+btn).filter(':last').focus(); - }else{ - switch(code){ - case 13://엔터는 확인 - e.preventDefault(); - $C.find(btn + '.' + cok).trigger(clk); - return false; - case 27://ESC는 취소 - e.preventDefault(); - $C.find(btn + '.' + (p || q ? cno : cok)).trigger(clk); - break; - } - } - }).bind('blur',iae).end().appendTo($C) - : null, - //경고 버튼 나열 - $B = $$(div).addClass(mb + 'buttons').appendTo($C), - //기본 버튼 - $BT = $$(btn).addClass(mb + btn).bind('keydown',function(e){ - if(this!=document.activeElement) return; - - e.stopPropagation(); - var code = e.which,that=$(this),target,shift=e.shiftKey; - switch (code) { - case 9://탭키 누르면 다음 버튼 및 입력창 포커스 - case 39://오른쪽키 누르면 다음 버튼으로만 포커스 - e.preventDefault(); - if(target=that[code==9&&shift?'prev':'next'](btn),target.length) target.focus(); - else if(code==9){ - if(target=$C.find(dmb+'input'),target.length) target.select(); - else if(target=that[shift?'next':'prev'](btn),target.length) target.focus(); - } - break; - case 37://왼쪽키는 이전 버튼으로만 포커스 - e.preventDefault(); - if(target=that.prev(btn),target.length) target.focus(); - break; - case 27://ESC는 무조건 취소처리 - e.preventDefault(); - $C.find(btn + '.' + (p || q ? cno : cok)).trigger(clk); - break; - } - }).bind('blur',iae), - //버튼 원형 - $BS = [ - $BT.clone(t).addClass(cok).text(q ? options.yes : options.ok).appendTo($B), p || q ? $BT.clone(t).addClass(cno).text(options.no).appendTo($B) : null]; //경고 버튼들 - $C.add($M).bind('keydown',function(){}); - $.extend($C[0], {container: $C.parent()[0],modal: $M[0], msg: $T[0], inbox: $I ? $I[0] : null, buttons: $B[0]}); - //입력 모드시 조치사항 - if (p) { - options.confirm = t; //확인 모드 맞음. - if (options.input !== true) $I.children().val(options.input); - } - //윈도우 리사이징에 대한 메시지박스 반응 - $W.bind(rs,io[rs] = function() { - if(!io.firstWidth){ - io.firstUnder = true; - io.firstWidth = $C.outerWidth(); - //console.log(io.firstWidth); - } - var isOver = $W.width() - 20 <= io.firstWidth; - if (!$.isFunction(options.onresize)){ - if($.isFunction($.msgbox.onresize)){ - $.msgbox.onresize.call($C[0], io); - } - }else{ - options.onresize.call($C[0], io); - } - }); - //경고창 비활성화 전 - io.before = function (e) { - e.stopPropagation(); - var code = window.event ? window.event.keyCode : e.which; - //전역 메시지박스에도 before가 붙으므로 격리. - if(e.target.type=='text'&&!code){ - $C.find(btn + '.' + (p || q ? cno : cok)).trigger(clk); - return f; - } - switch (code) { - case 13: - $C.find(btn + ':focus').trigger('click'); - return f; - case 27: - $C.find(btn + '.' + (p || q ? cno : cok)).trigger(clk); - return f; - } - }; - //body에 삽입 후 레이아웃 잡기 - var kt = dmb + 'ui,' + dmb + 'modal', - $D = $(document.documentElement || document.body).append($M).append($C.parent()).bind(kp, io.before); - //경고창 비활성화 후 - io.after = function (b, v) { - var isok = $(b).hasClass(cok); - switch (t) { - case p: - options.submit.call($C[0], isok ? v : null); - break; - case q: - options.submit.call($C[0], isok); - break; - default: - options.submit.call($C[0]); - break; - } - $D.unbind(kp, io.before); - $W.unbind(rs, io[rs]); - }; - //공통 경고 클릭 시 조치 - $C.delegate(btn, clk, function (e) { - var cleanup = function(){ - $C.parent().add($M).remove(); - },onclose = options.onclose || $.msgbox.onclose; - - io.after(this, p ? $I.children().val() : null); - - if($.isFunction(onclose)) $.when(onclose.call($C[0], p ? I.children().val() : $(this).hasClass(cok))).always(cleanup); - else cleanup(); - }); - - var prepare = function(){ - //레이아웃 자동정렬 - $W.trigger(rs); - //경고창 포커스 - if (p) $C.find('input:text').select(); - else $C.find(btn + ':eq(0)').focus(); - //onopen 이벤트 발생 - var onopen = options.onopen || $.msgbox.onopen; - if($.isFunction(onopen)) onopen.call($C[0], options); - }; - - if(legacy){setTimeout(prepare,0);} - else{prepare();} - - return $C; - }; - $.extend($.msgbox, { - strings: { - ok: 'OK', - yes: 'OK', - no: 'Cancel' - }, - css: { - container: { - 'position': fixed, - 'left': '50%', - 'top': '32%', - 'z-index': '9001' - }, - ui: { - 'border': '1px solid black', - 'font': '9pt verdana,gulim,sans-serif', - 'background-color': 'white', - 'position': 'relative', - 'left': '-50%', - 'top': '32%', - 'overflow': 'hidden', - 'float': 'right' - }, - modal: { - 'position': fixed, - 'left': '0', - 'top': '0', - 'right': '0', - 'bottom': '0', - 'background-color': 'black', - 'opacity': '.4', - 'z-index': '9000' - }, - msg: { - 'padding': '2em 4em', - 'overflow': 'hidden', - 'font-family': 'verdana,gulim,sans-serif', - //'max-width':(screen.availWidth*0.9)+'px', - 'white-space': 'pre-wrap', - 'word-wrap': 'break-word' - }, - buttons: { - 'padding': '1em', - 'background-color': '#eee', - 'text-align': 'right', - 'overflow': 'hidden' - }, - button: { - 'width': '72px', - 'margin': 'auto .25em' - }, - inbox: { - 'width': '90%', - 'margin': '-1em auto 1em', - 'border': '1px inset #3D7BAD' - }, - input: { - 'width': '99%', - 'display': 'block', - 'border': '0' - } - }, - onresize: function(io){ - var $C = $(this), $P = $C.parent(); - if(!io.firstWidth){ - io.firstUnder = true; - io.firstWidth = $C.outerWidth(); - //console.log(io.firstWidth); - } - var isOver = $(window).width() - 20 <= io.firstWidth; - if(isOver && !io.isOver){ - //console.log('OVER'); - io.isOver = true; - $P.css({ - 'left': '10px', - 'right': '10px', - 'margin-top': ~~ (-$C.outerHeight() * 0.32) + 'px', - 'min-width': '' - }); - $C.css({position:'static'}); - }else if((!isOver && io.isOver) || io.firstUnder){ - //console.log('UNDER'); - io.firstUnder = false; - io.isOver = false; - $P.css({ - 'left': '', - 'right': '', - 'margin-top': ~~ (-$C.outerHeight() * 0.32) + 'px', - 'min-width': io.firstWidth + 'px' - }); - $C.css({position:''}); - } - } - }); - $.msgbox.options = { - submit: function () {}, - confirm: false, - //input:false, - //onresize: function(){}, - //onopen: function(){}, - //onclose: function(){}, - ok: $.msgbox.strings.ok, - yes: $.msgbox.strings.yes, - no: $.msgbox.strings.no - }; - $.alert = function (msg, callback) { - return $.msgbox(msg, { - submit: callback - }); - }; - $.confirm = function (msg, callback) { - return $.msgbox(msg, { - confirm: true, - submit: callback - }); - }; - $.prompt = function (msg, val, callback, pw) { - var shift = $.isFunction(val); - return $.msgbox(msg, { - input: shift ? true : val, - submit: shift ? val : callback, - password: shift ? callback : pw - }); - }; -})(jQuery); \ No newline at end of file diff --git a/jquery.msgbox.min.js b/jquery.msgbox.min.js deleted file mode 100644 index 0ac1a94..0000000 --- a/jquery.msgbox.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/************************************************************************************** - * jQuery MsgBox 0.8.1 - * by composite (ukjinplant@msn.com) - * http://blog.hazard.kr - * This project licensed under a MIT License. - **************************************************************************************/; -!function(a){window.console||(window.console={},window.console.log=a.noop);var b="fixed",c="div",d="keypress",e="resize",f="msgbox-",g="."+f,h=f+"-style",i="button",j="click",k=!1,m=function(b){return a(document.createElement(b))},n=function(a,b){if(!n.once||b){a=a||{};var c=n.style?n.style:n.style=m("style").addClass(h).attr("type","text/css"),d=[];for(var e in a)if(a[e]){var f=a[e];d.push(g+e),d.push("{");for(var i in f)if(k)switch(i){case"opacity":d.push("filter:alpha(opacity="+(100*+("."==f[i].substring(0,1)?"0"+f[i]:f[i])||100)+");");break;default:d.push(i+":"+f[i]+";")}else d.push(i+":"+f[i]+";");d.push("}")}c.each(function(){var a=d.join("");k?this.styleSheet.cssText=a:this.innerHTML=a}).appendTo("head"),n.once=!0}};a.msgbox=function(b,l){l=a.extend({},a.msgbox.options,l),a(h).length||n(a.msgbox.css);var o={},p=f+"ok",q=f+"no",r="password",t=(l.css||{},!0),u=!1,v=l.input!==!1&&void 0!=l.input&&null!=l.input,w=!!l.confirm,x=function(){setTimeout(function(){var b=a(document.activeElement),c=[g+"input",g+i];b.length&&(b.is(c[0])||b.is(c[1]))||z.find(c+"").eq(0).focus()},0)},y=a(window),z=m(c).addClass(f+"container").append(m(c).addClass(f+"ui").addClass(f+(v?"prompt":w?"confirm":"alert"))).children(),A=m(c).addClass(f+"modal"),B=m(c).addClass(f+"msg").html(b).appendTo(z),C=v?a("
").addClass(f+"inbox").children().addClass(f+"input").bind("keydown",function(a){var b=a.which;if(9==b&&a.shiftKey)a.preventDefault(),z.find(g+i).filter(":last").focus();else switch(b){case 13:return a.preventDefault(),z.find(i+"."+p).trigger(j),!1;case 27:a.preventDefault(),z.find(i+"."+(v||w?q:p)).trigger(j)}}).bind("blur",x).end().appendTo(z):null,D=m(c).addClass(f+"buttons").appendTo(z),E=m(i).addClass(f+i).bind("keydown",function(b){if(this==document.activeElement){b.stopPropagation();var e,c=b.which,d=a(this),f=b.shiftKey;switch(c){case 9:case 39:b.preventDefault(),e=d[9==c&&f?"prev":"next"](i),e.length?e.focus():9==c&&(e=z.find(g+"input"),e.length?e.select():(e=d[f?"next":"prev"](i),e.length&&e.focus()));break;case 37:b.preventDefault(),e=d.prev(i),e.length&&e.focus();break;case 27:b.preventDefault(),z.find(i+"."+(v||w?q:p)).trigger(j)}}}).bind("blur",x);[E.clone(t).addClass(p).text(w?l.yes:l.ok).appendTo(D),v||w?E.clone(t).addClass(q).text(l.no).appendTo(D):null],z.add(A).bind("keydown",function(){}),a.extend(z[0],{container:z.parent()[0],modal:A[0],msg:B[0],inbox:C?C[0]:null,buttons:D[0]}),v&&(l.confirm=t,l.input!==!0&&C.children().val(l.input)),y.bind(e,o[e]=function(){o.firstWidth||(o.firstUnder=!0,o.firstWidth=z.outerWidth()),y.width()-20<=o.firstWidth,a.isFunction(l.onresize)?l.onresize.call(z[0],o):a.isFunction(a.msgbox.onresize)&&a.msgbox.onresize.call(z[0],o)}),o.before=function(a){a.stopPropagation();var b=window.event?window.event.keyCode:a.which;if("text"==a.target.type&&!b)return z.find(i+"."+(v||w?q:p)).trigger(j),u;switch(b){case 13:return z.find(i+":focus").trigger("click"),u;case 27:return z.find(i+"."+(v||w?q:p)).trigger(j),u}};var H=a(document.documentElement||document.body).append(A).append(z.parent()).bind(d,o.before);o.after=function(b,c){var f=a(b).hasClass(p);switch(t){case v:l.submit.call(z[0],f?c:null);break;case w:l.submit.call(z[0],f);break;default:l.submit.call(z[0])}H.unbind(d,o.before),y.unbind(e,o[e])},z.delegate(i,j,function(){var c=function(){z.parent().add(A).remove()},d=l.onclose||a.msgbox.onclose;o.after(this,v?C.children().val():null),a.isFunction(d)?a.when(d.call(z[0],v?I.children().val():a(this).hasClass(p))).always(c):c()});var J=function(){y.trigger(e),v?z.find("input:text").select():z.find(i+":eq(0)").focus();var b=l.onopen||a.msgbox.onopen;a.isFunction(b)&&b.call(z[0],l)};return k?setTimeout(J,0):J(),z},a.extend(a.msgbox,{strings:{ok:"OK",yes:"OK",no:"Cancel"},css:{container:{position:b,left:"50%",top:"32%","z-index":"9001"},ui:{border:"1px solid black",font:"9pt verdana,gulim,sans-serif","background-color":"white",position:"relative",left:"-50%",top:"32%",overflow:"hidden","float":"right"},modal:{position:b,left:"0",top:"0",right:"0",bottom:"0","background-color":"black",opacity:".4","z-index":"9000"},msg:{padding:"2em 4em",overflow:"hidden","font-family":"verdana,gulim,sans-serif","white-space":"pre-wrap","word-wrap":"break-word"},buttons:{padding:"1em","background-color":"#eee","text-align":"right",overflow:"hidden"},button:{width:"72px",margin:"auto .25em"},inbox:{width:"90%",margin:"-1em auto 1em",border:"1px inset #3D7BAD"},input:{width:"99%",display:"block",border:"0"}},onresize:function(b){var c=a(this),d=c.parent();b.firstWidth||(b.firstUnder=!0,b.firstWidth=c.outerWidth());var e=a(window).width()-20<=b.firstWidth;e&&!b.isOver?(b.isOver=!0,d.css({left:"10px",right:"10px","margin-top":~~(.32*-c.outerHeight())+"px","min-width":""}),c.css({position:"static"})):(!e&&b.isOver||b.firstUnder)&&(b.firstUnder=!1,b.isOver=!1,d.css({left:"",right:"","margin-top":~~(.32*-c.outerHeight())+"px","min-width":b.firstWidth+"px"}),c.css({position:""}))}}),a.msgbox.options={submit:function(){},confirm:!1,ok:a.msgbox.strings.ok,yes:a.msgbox.strings.yes,no:a.msgbox.strings.no},a.alert=function(b,c){return a.msgbox(b,{submit:c})},a.confirm=function(b,c){return a.msgbox(b,{confirm:!0,submit:c})},a.prompt=function(b,c,d,e){var f=a.isFunction(c);return a.msgbox(b,{input:f?!0:c,submit:f?c:d,password:f?d:e})}}(jQuery); \ No newline at end of file diff --git a/msgbox.jquery.json b/msgbox.jquery.json deleted file mode 100644 index 3c50cb4..0000000 --- a/msgbox.jquery.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "msgbox", - "title": "jQuery MsgBox", - "description": "The Message box for web, Firefox style, User notification made simple.", - "keywords": ["alert","confirm","prompt","msgbox","dialog","notification","ui","simple"], - "version": "0.8.1", - "author": { - "name": "Composite", - "url": "http://hazard.kr/" - }, - "maintainers": [ - { - "name": "Composite", - "email": "ukjinplant@msn.com", - "url": "http://hazard.kr/" - } - ], - "licenses": [ - { - "type": "MIT", - "url": "http://opensource.org/licenses/MIT" - } - ], - "bugs": "https://github.com/composite/jQuery.MsgBox/issues", - "homepage": "https://github.com/composite/jQuery.MsgBox", - "docs": "https://github.com/composite/jQuery.MsgBox/wiki", - "download": "https://raw.github.com/composite/jQuery.MsgBox/master/jquery.msgbox.min.js", - "dependencies": { - "jquery": ">=1.5" - } -} \ No newline at end of file diff --git a/params.json b/params.json new file mode 100644 index 0000000..0376261 --- /dev/null +++ b/params.json @@ -0,0 +1 @@ +{"name":"Jquery.msgbox","tagline":"Firefox style simplist dialog form.","body":"jQuery MsgBox\r\n=============\r\n\r\n0.3.7 BETA\r\n\r\nWhat is it?\r\n-----------\r\n\r\nFirefox style simplist dialog form.\r\n\r\n\r\nHow to use this?\r\n----------------\r\n\r\nIt's quiet simple.\r\n\r\n```html\r\n\r\n\r\n```\r\n\r\nalert(\"i'm alert\");\r\n-> $.alert(\"i'm alert\");\r\n\r\nconfirm(\"Are you sure?\");\r\n-> $.confirm(\"Are you sure?\");\r\n\r\nprompt(\"please text me.\");\r\n-> $.prompt(\"please text me.\");\r\n\r\nWait! YOU MUST SEE BEFORE USE THIS PLUGIN,\r\n------------------------------------------\r\nthis plugin is can't replace as javascript standard function (alert, etc.)\r\nbecause, this plugin cannot wait user action while showing dialog.\r\nIf you want get user's action, put a callback function in next of message param.\r\nwhen user clicked in a dialog button, such as OK or cancel, msgbox will call your defined function.\r\n\r\nPlease don't..\r\n```js\r\nform.submit=function(){\r\n //All MsgBox function returns MsgBox Container Object. so it'll return always true.\r\n if($.confirm('Are you sure to save it?')){\r\n return true;//Page will changed without your confirm.\r\n }\r\n return false;\r\n}\r\n```\r\n**So, what can I do?**\r\n```js\r\nform.submit=function(){\r\n if(!form.confirm){//Use variables or DOM objects or whatever you want.\r\n $.confirm('Are you sure to save it?',function(answer){\r\n form.confirm=answer;\r\n if(answer) form.submit();//submit again to verify confirm value.\r\n });\r\n return false;//You should use this line to prevent page changes.\r\n }else return true;\r\n}\r\n```\r\n* You can use another solution to solve this.\r\n\r\nOK. so, How to use with callback function?\r\n------------------------------------------\r\n\r\njQuery.MsgBox can add your callback function for provide next action after user clicked.\r\nIt's Very simple.\r\n\r\n```js\r\n$.alert(\"click me.\",function(){\r\n $.alert('you clicked');\r\n});\r\n```\r\n```js\r\n$.confirm(\"press OK or Cancel.\",function(bool){\r\n $.alert('you clicked'+(bool?'OK':'cancel'));\r\n});\r\n```\r\n```js\r\n$.prompt(\"what's your name?\",function(string){\r\n $.alert('your name is '+string);\r\n});\r\n```\r\n\r\nI want view live example.\r\n-------------------------\r\n\r\nOK. [here's an example](http://jsfiddle.net/preFy/ \"live example\"). \r\n\r\nWhat browser can run with this plugin?\r\n--------------------------------------\r\nfirst, jQuery 1.4 or later needed.\r\nand, You can run with most popular major browser,\r\nInternet Explorer 8 or above, Firefox 3 or above, Safari 4 or above, Chrome 10 or above, Opera 9 or above.\r\nNOTE : Old school browser, such as IE 7 or lower is have a problem with CSS issue.\r\nthat's all. this plugin have NO images or other resources.\r\n\r\nWow! It's simple and cool! can I join with you for make better this plugin?\r\n---------------------------------------------------------------------------\r\n\r\nSure. contributes are welcome! just fork this plugin and get involved to make a better place for you and for me.\r\n\r\nGoals\r\n-----\r\n\r\n - More Simplify and Optimization.\r\n - Less Size and Unresolved Issues.\r\n - **All Methods will returns Deferred Object instead of DOM Container**\r\n\r\n\r\nLicense\r\n-------\r\n\r\n(The MIT License)\r\n\r\nCopyright (c) 2011-2012 Ukjin 'composite' Yang \r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."} \ No newline at end of file diff --git a/stylesheets/pygment_trac.css b/stylesheets/pygment_trac.css new file mode 100644 index 0000000..e65cedf --- /dev/null +++ b/stylesheets/pygment_trac.css @@ -0,0 +1,70 @@ +.highlight .hll { background-color: #ffffcc } +.highlight { background: #f0f3f3; } +.highlight .c { color: #0099FF; font-style: italic } /* Comment */ +.highlight .err { color: #AA0000; background-color: #FFAAAA } /* Error */ +.highlight .k { color: #006699; font-weight: bold } /* Keyword */ +.highlight .o { color: #555555 } /* Operator */ +.highlight .cm { color: #0099FF; font-style: italic } /* Comment.Multiline */ +.highlight .cp { color: #009999 } /* Comment.Preproc */ +.highlight .c1 { color: #0099FF; font-style: italic } /* Comment.Single */ +.highlight .cs { color: #0099FF; font-weight: bold; font-style: italic } /* Comment.Special */ +.highlight .gd { background-color: #FFCCCC; border: 1px solid #CC0000 } /* Generic.Deleted */ +.highlight .ge { font-style: italic } /* Generic.Emph */ +.highlight .gr { color: #FF0000 } /* Generic.Error */ +.highlight .gh { color: #003300; font-weight: bold } /* Generic.Heading */ +.highlight .gi { background-color: #CCFFCC; border: 1px solid #00CC00 } /* Generic.Inserted */ +.highlight .go { color: #AAAAAA } /* Generic.Output */ +.highlight .gp { color: #000099; font-weight: bold } /* Generic.Prompt */ +.highlight .gs { font-weight: bold } /* Generic.Strong */ +.highlight .gu { color: #003300; font-weight: bold } /* Generic.Subheading */ +.highlight .gt { color: #99CC66 } /* Generic.Traceback */ +.highlight .kc { color: #006699; font-weight: bold } /* Keyword.Constant */ +.highlight .kd { color: #006699; font-weight: bold } /* Keyword.Declaration */ +.highlight .kn { color: #006699; font-weight: bold } /* Keyword.Namespace */ +.highlight .kp { color: #006699 } /* Keyword.Pseudo */ +.highlight .kr { color: #006699; font-weight: bold } /* Keyword.Reserved */ +.highlight .kt { color: #007788; font-weight: bold } /* Keyword.Type */ +.highlight .m { color: #FF6600 } /* Literal.Number */ +.highlight .s { color: #CC3300 } /* Literal.String */ +.highlight .na { color: #330099 } /* Name.Attribute */ +.highlight .nb { color: #336666 } /* Name.Builtin */ +.highlight .nc { color: #00AA88; font-weight: bold } /* Name.Class */ +.highlight .no { color: #336600 } /* Name.Constant */ +.highlight .nd { color: #9999FF } /* Name.Decorator */ +.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */ +.highlight .ne { color: #CC0000; font-weight: bold } /* Name.Exception */ +.highlight .nf { color: #CC00FF } /* Name.Function */ +.highlight .nl { color: #9999FF } /* Name.Label */ +.highlight .nn { color: #00CCFF; font-weight: bold } /* Name.Namespace */ +.highlight .nt { color: #330099; font-weight: bold } /* Name.Tag */ +.highlight .nv { color: #003333 } /* Name.Variable */ +.highlight .ow { color: #000000; font-weight: bold } /* Operator.Word */ +.highlight .w { color: #bbbbbb } /* Text.Whitespace */ +.highlight .mf { color: #FF6600 } /* Literal.Number.Float */ +.highlight .mh { color: #FF6600 } /* Literal.Number.Hex */ +.highlight .mi { color: #FF6600 } /* Literal.Number.Integer */ +.highlight .mo { color: #FF6600 } /* Literal.Number.Oct */ +.highlight .sb { color: #CC3300 } /* Literal.String.Backtick */ +.highlight .sc { color: #CC3300 } /* Literal.String.Char */ +.highlight .sd { color: #CC3300; font-style: italic } /* Literal.String.Doc */ +.highlight .s2 { color: #CC3300 } /* Literal.String.Double */ +.highlight .se { color: #CC3300; font-weight: bold } /* Literal.String.Escape */ +.highlight .sh { color: #CC3300 } /* Literal.String.Heredoc */ +.highlight .si { color: #AA0000 } /* Literal.String.Interpol */ +.highlight .sx { color: #CC3300 } /* Literal.String.Other */ +.highlight .sr { color: #33AAAA } /* Literal.String.Regex */ +.highlight .s1 { color: #CC3300 } /* Literal.String.Single */ +.highlight .ss { color: #FFCC33 } /* Literal.String.Symbol */ +.highlight .bp { color: #336666 } /* Name.Builtin.Pseudo */ +.highlight .vc { color: #003333 } /* Name.Variable.Class */ +.highlight .vg { color: #003333 } /* Name.Variable.Global */ +.highlight .vi { color: #003333 } /* Name.Variable.Instance */ +.highlight .il { color: #FF6600 } /* Literal.Number.Integer.Long */ + +.type-csharp .highlight .k { color: #0000FF } +.type-csharp .highlight .kt { color: #0000FF } +.type-csharp .highlight .nf { color: #000000; font-weight: normal } +.type-csharp .highlight .nc { color: #2B91AF } +.type-csharp .highlight .nn { color: #000000 } +.type-csharp .highlight .s { color: #A31515 } +.type-csharp .highlight .sc { color: #A31515 } diff --git a/stylesheets/stylesheet.css b/stylesheets/stylesheet.css new file mode 100644 index 0000000..7a08b01 --- /dev/null +++ b/stylesheets/stylesheet.css @@ -0,0 +1,423 @@ +/******************************************************************************* +Slate Theme for GitHub Pages +by Jason Costello, @jsncostello +*******************************************************************************/ + +@import url(pygment_trac.css); + +/******************************************************************************* +MeyerWeb Reset +*******************************************************************************/ + +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, hgroup, +menu, nav, output, ruby, section, summary, +time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font: inherit; + vertical-align: baseline; +} + +/* HTML5 display-role reset for older browsers */ +article, aside, details, figcaption, figure, +footer, header, hgroup, menu, nav, section { + display: block; +} + +ol, ul { + list-style: none; +} + +table { + border-collapse: collapse; + border-spacing: 0; +} + +/******************************************************************************* +Theme Styles +*******************************************************************************/ + +body { + box-sizing: border-box; + color:#373737; + background: #212121; + font-size: 16px; + font-family: 'Myriad Pro', Calibri, Helvetica, Arial, sans-serif; + line-height: 1.5; + -webkit-font-smoothing: antialiased; +} + +h1, h2, h3, h4, h5, h6 { + margin: 10px 0; + font-weight: 700; + color:#222222; + font-family: 'Lucida Grande', 'Calibri', Helvetica, Arial, sans-serif; + letter-spacing: -1px; +} + +h1 { + font-size: 36px; + font-weight: 700; +} + +h2 { + padding-bottom: 10px; + font-size: 32px; + background: url('../images/bg_hr.png') repeat-x bottom; +} + +h3 { + font-size: 24px; +} + +h4 { + font-size: 21px; +} + +h5 { + font-size: 18px; +} + +h6 { + font-size: 16px; +} + +p { + margin: 10px 0 15px 0; +} + +footer p { + color: #f2f2f2; +} + +a { + text-decoration: none; + color: #007edf; + text-shadow: none; + + transition: color 0.5s ease; + transition: text-shadow 0.5s ease; + -webkit-transition: color 0.5s ease; + -webkit-transition: text-shadow 0.5s ease; + -moz-transition: color 0.5s ease; + -moz-transition: text-shadow 0.5s ease; + -o-transition: color 0.5s ease; + -o-transition: text-shadow 0.5s ease; + -ms-transition: color 0.5s ease; + -ms-transition: text-shadow 0.5s ease; +} + +a:hover, a:focus {text-decoration: underline;} + +footer a { + color: #F2F2F2; + text-decoration: underline; +} + +em { + font-style: italic; +} + +strong { + font-weight: bold; +} + +img { + position: relative; + margin: 0 auto; + max-width: 739px; + padding: 5px; + margin: 10px 0 10px 0; + border: 1px solid #ebebeb; + + box-shadow: 0 0 5px #ebebeb; + -webkit-box-shadow: 0 0 5px #ebebeb; + -moz-box-shadow: 0 0 5px #ebebeb; + -o-box-shadow: 0 0 5px #ebebeb; + -ms-box-shadow: 0 0 5px #ebebeb; +} + +p img { + display: inline; + margin: 0; + padding: 0; + vertical-align: middle; + text-align: center; + border: none; +} + +pre, code { + width: 100%; + color: #222; + background-color: #fff; + + font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace; + font-size: 14px; + + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; +} + +pre { + width: 100%; + padding: 10px; + box-shadow: 0 0 10px rgba(0,0,0,.1); + overflow: auto; +} + +code { + padding: 3px; + margin: 0 3px; + box-shadow: 0 0 10px rgba(0,0,0,.1); +} + +pre code { + display: block; + box-shadow: none; +} + +blockquote { + color: #666; + margin-bottom: 20px; + padding: 0 0 0 20px; + border-left: 3px solid #bbb; +} + + +ul, ol, dl { + margin-bottom: 15px +} + +ul { + list-style: inside; + padding-left: 20px; +} + +ol { + list-style: decimal inside; + padding-left: 20px; +} + +dl dt { + font-weight: bold; +} + +dl dd { + padding-left: 20px; + font-style: italic; +} + +dl p { + padding-left: 20px; + font-style: italic; +} + +hr { + height: 1px; + margin-bottom: 5px; + border: none; + background: url('../images/bg_hr.png') repeat-x center; +} + +table { + border: 1px solid #373737; + margin-bottom: 20px; + text-align: left; + } + +th { + font-family: 'Lucida Grande', 'Helvetica Neue', Helvetica, Arial, sans-serif; + padding: 10px; + background: #373737; + color: #fff; + } + +td { + padding: 10px; + border: 1px solid #373737; + } + +form { + background: #f2f2f2; + padding: 20px; +} + +/******************************************************************************* +Full-Width Styles +*******************************************************************************/ + +.outer { + width: 100%; +} + +.inner { + position: relative; + max-width: 640px; + padding: 20px 10px; + margin: 0 auto; +} + +#forkme_banner { + display: block; + position: absolute; + top:0; + right: 10px; + z-index: 10; + padding: 10px 50px 10px 10px; + color: #fff; + background: url('../images/blacktocat.png') #0090ff no-repeat 95% 50%; + font-weight: 700; + box-shadow: 0 0 10px rgba(0,0,0,.5); + border-bottom-left-radius: 2px; + border-bottom-right-radius: 2px; +} + +#header_wrap { + background: #212121; + background: -moz-linear-gradient(top, #373737, #212121); + background: -webkit-linear-gradient(top, #373737, #212121); + background: -ms-linear-gradient(top, #373737, #212121); + background: -o-linear-gradient(top, #373737, #212121); + background: linear-gradient(top, #373737, #212121); +} + +#header_wrap .inner { + padding: 50px 10px 30px 10px; +} + +#project_title { + margin: 0; + color: #fff; + font-size: 42px; + font-weight: 700; + text-shadow: #111 0px 0px 10px; +} + +#project_tagline { + color: #fff; + font-size: 24px; + font-weight: 300; + background: none; + text-shadow: #111 0px 0px 10px; +} + +#downloads { + position: absolute; + width: 210px; + z-index: 10; + bottom: -40px; + right: 0; + height: 70px; + background: url('../images/icon_download.png') no-repeat 0% 90%; +} + +.zip_download_link { + display: block; + float: right; + width: 90px; + height:70px; + text-indent: -5000px; + overflow: hidden; + background: url(../images/sprite_download.png) no-repeat bottom left; +} + +.tar_download_link { + display: block; + float: right; + width: 90px; + height:70px; + text-indent: -5000px; + overflow: hidden; + background: url(../images/sprite_download.png) no-repeat bottom right; + margin-left: 10px; +} + +.zip_download_link:hover { + background: url(../images/sprite_download.png) no-repeat top left; +} + +.tar_download_link:hover { + background: url(../images/sprite_download.png) no-repeat top right; +} + +#main_content_wrap { + background: #f2f2f2; + border-top: 1px solid #111; + border-bottom: 1px solid #111; +} + +#main_content { + padding-top: 40px; +} + +#footer_wrap { + background: #212121; +} + + + +/******************************************************************************* +Small Device Styles +*******************************************************************************/ + +@media screen and (max-width: 480px) { + body { + font-size:14px; + } + + #downloads { + display: none; + } + + .inner { + min-width: 320px; + max-width: 480px; + } + + #project_title { + font-size: 32px; + } + + h1 { + font-size: 28px; + } + + h2 { + font-size: 24px; + } + + h3 { + font-size: 21px; + } + + h4 { + font-size: 18px; + } + + h5 { + font-size: 14px; + } + + h6 { + font-size: 12px; + } + + code, pre { + min-width: 320px; + max-width: 480px; + font-size: 11px; + } + +}