From 35428e35f7c8e47ca0d3fe4396d47f6c530c0963 Mon Sep 17 00:00:00 2001 From: Sergey Date: Sun, 1 May 2016 14:19:47 +0300 Subject: [PATCH] added "dist" folder for bower #24 --- .gitignore | 1 + dist/css/theme-minimal/jcf.css | 1 + dist/js/jcf.angular.js | 4 ++++ dist/js/jcf.button.js | 9 +++++++++ dist/js/jcf.checkbox.js | 9 +++++++++ dist/js/jcf.common.js | 1 + dist/js/jcf.file.js | 9 +++++++++ dist/js/jcf.js | 9 +++++++++ dist/js/jcf.number.js | 9 +++++++++ dist/js/jcf.radio.js | 9 +++++++++ dist/js/jcf.range.js | 9 +++++++++ dist/js/jcf.scrollable.js | 9 +++++++++ dist/js/jcf.select.js | 9 +++++++++ dist/js/jcf.textarea.js | 9 +++++++++ gulpfile.js | 22 ++++++++++++++++++++++ package.json | 11 ++++++++++- 16 files changed, 129 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100755 dist/css/theme-minimal/jcf.css create mode 100644 dist/js/jcf.angular.js create mode 100644 dist/js/jcf.button.js create mode 100755 dist/js/jcf.checkbox.js create mode 100644 dist/js/jcf.common.js create mode 100644 dist/js/jcf.file.js create mode 100755 dist/js/jcf.js create mode 100644 dist/js/jcf.number.js create mode 100755 dist/js/jcf.radio.js create mode 100644 dist/js/jcf.range.js create mode 100755 dist/js/jcf.scrollable.js create mode 100644 dist/js/jcf.select.js create mode 100644 dist/js/jcf.textarea.js create mode 100644 gulpfile.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules diff --git a/dist/css/theme-minimal/jcf.css b/dist/css/theme-minimal/jcf.css new file mode 100755 index 0000000..78269d3 --- /dev/null +++ b/dist/css/theme-minimal/jcf.css @@ -0,0 +1 @@ +.jcf-radio{border-radius:9px}.jcf-radio span{display:none;position:absolute;top:3px;left:3px;right:3px;bottom:3px;background:#777;border-radius:100%}.jcf-radio input[type=radio]{position:absolute;height:100%;width:100%;border:0;margin:0;left:0;top:0}.jcf-radio.jcf-checked span{display:block}.jcf-checkbox,.jcf-radio{vertical-align:middle;display:inline-block;position:relative;overflow:hidden;cursor:default;background:#fff;border:1px solid #777;margin:0 3px 0 0;height:16px;width:16px}.jcf-checkbox span{position:absolute;display:none;height:4px;width:8px;top:50%;left:50%;margin:-7px 0 0 -6px;border:3px solid #777;border-width:0 0 3px 3px;-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865483, M12=0.7071067811865467, M21=-0.7071067811865467, M22=0.7071067811865483, SizingMethod='auto expand')"}:root .jcf-checkbox span{margin:-4px 0 0 -5px}.jcf-checkbox input[type=checkbox]{position:absolute;width:100%;height:100%;border:0;margin:0;left:0;top:0}.jcf-checkbox.jcf-checked span{display:block}.jcf-button,.jcf-file{display:inline-block;position:relative;overflow:hidden;background:#fff}.jcf-button{vertical-align:top;border:1px solid #777;margin:0 10px 10px 0;padding:5px 10px}.jcf-button .jcf-real-element{position:absolute;min-height:100%;min-width:100%;outline:none;opacity:0;padding:0;margin:0;border:0;bottom:0;right:0;left:0;top:0}.jcf-file{white-space:nowrap}.jcf-file .jcf-real-element{position:absolute;font-size:200px;height:200px;margin:0;right:0;top:0}.jcf-file .jcf-fake-input,.jcf-file .jcf-upload-button{display:inline-block;vertical-align:top;white-space:nowrap;overflow:hidden;border:1px solid #777;line-height:28px;height:28px}.jcf-file .jcf-fake-input{text-overflow:ellipsis;font-size:13px;width:125px;padding:0 8px}.jcf-file .jcf-upload-button{margin:0 0 0 -1px;padding:0 10px}.jcf-scrollable-wrapper{box-sizing:content-box;position:relative}.jcf-scrollbar-vertical{position:absolute;cursor:default;background:#e3e3e3;width:14px;bottom:0;right:0;top:0}.jcf-scrollbar-vertical .jcf-scrollbar-dec,.jcf-scrollbar-vertical .jcf-scrollbar-inc{background:#bbb;height:14px;width:14px;left:0;top:0}.jcf-scrollbar-vertical .jcf-scrollbar-inc{top:auto;bottom:0}.jcf-scrollbar-vertical .jcf-scrollbar-handle{background:#888;height:1px;width:14px}.jcf-scrollbar-horizontal{position:absolute;background:#e3e3e3;right:auto;top:auto;left:0;bottom:0;width:1px;height:14px}.jcf-scrollbar-horizontal .jcf-scrollbar-dec,.jcf-scrollbar-horizontal .jcf-scrollbar-inc{display:inline-block;vertical-align:top;overflow:hidden;background:#bbb;height:14px;width:14px}.jcf-scrollbar-horizontal .jcf-scrollbar-inc{left:auto;right:0}.jcf-scrollbar-horizontal .jcf-scrollbar-slider{display:inline-block;position:relative;height:14px}.jcf-scrollbar-horizontal .jcf-scrollbar-handle{position:absolute;background:#888;height:14px}.jcf-scrollbar.jcf-inactive .jcf-scrollbar-handle{visibility:hidden}.jcf-scrollbar.jcf-inactive .jcf-scrollbar-dec,.jcf-scrollbar.jcf-inactive .jcf-scrollbar-inc{background:#e3e3e3}.jcf-select{display:inline-block;vertical-align:top;position:relative;border:1px solid #777;background:#fff;margin:0 0 12px;min-width:150px;height:26px}.jcf-select select{z-index:1;left:0;top:0}.jcf-select .jcf-select-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;cursor:default;display:block;font-size:13px;line-height:26px;margin:0 35px 0 8px}.jcf-select .jcf-select-opener{position:absolute;text-align:center;background:#aaa;width:26px;bottom:0;right:0;top:0}body>.jcf-select-drop{position:absolute;margin:-1px 0 0;z-index:9999}body>.jcf-select-drop.jcf-drop-flipped{margin:1px 0 0}.jcf-select .jcf-select-drop{position:absolute;margin-top:0;z-index:9999;top:100%;left:-1px;right:-1px}.jcf-select .jcf-drop-flipped{bottom:100%;top:auto}.jcf-select.jcf-compact-multiple{max-width:220px}.jcf-select.jcf-compact-multiple .jcf-select-opener:before{display:inline-block;padding-top:2px;content:'...'}.jcf-select-drop .jcf-select-drop-content{border:1px solid red}.jcf-select-drop.jcf-compact-multiple .jcf-hover{background:0 0}.jcf-select-drop.jcf-compact-multiple .jcf-selected{background:#e6e6e6;color:#000}.jcf-select-drop.jcf-compact-multiple .jcf-selected:before{display:inline-block;content:'';height:4px;width:8px;margin:-7px 5px 0 -3px;border:3px solid #777;border-width:0 0 3px 3px;-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865483, M12=0.7071067811865467, M21=-0.7071067811865467, M22=0.7071067811865483, SizingMethod='auto expand')"}.jcf-list-box{overflow:hidden;display:inline-block;border:1px solid #b8c3c9;min-width:200px;margin:0 15px}.jcf-list,.jcf-list .jcf-list-content{vertical-align:top;display:inline-block;width:100%}.jcf-list{position:relative;background:#fff;line-height:14px;font-size:12px}.jcf-list .jcf-list-content{overflow:auto}.jcf-list ul{list-style:none;padding:0;margin:0}.jcf-list .jcf-option,.jcf-list ul li{overflow:hidden;display:block}.jcf-list .jcf-overflow{overflow:auto}.jcf-list .jcf-option{white-space:nowrap;cursor:default;padding:5px 9px;color:#656565;min-height:14px;height:1%}.jcf-list .jcf-disabled{background:#fff!important;color:#aaa!important}.jcf-list-box .jcf-selected,.jcf-select-drop .jcf-hover{background:#e6e6e6;color:#000}.jcf-list .jcf-optgroup-caption{white-space:nowrap;font-weight:700;display:block;padding:5px 9px;cursor:default;color:#000}.jcf-list .jcf-optgroup .jcf-option{padding-left:30px}.jcf-textarea{border:1px solid #b8c3c9;box-sizing:content-box;display:inline-block;position:relative}.jcf-textarea .jcf-scrollbar-horizontal{display:none;height:0}.jcf-textarea textarea{padding:8px 10px;border:none;margin:0}.jcf-textarea .jcf-resize{position:absolute;text-align:center;cursor:se-resize;background:#e3e3e3;font-weight:700;line-height:15px;text-indent:1px;font-size:12px;height:15px;width:14px;bottom:0;right:0}.jcf-textarea .jcf-resize:before{border:1px solid #000;border-width:0 1px 1px 0;display:block;margin:4px 0 0 3px;width:6px;height:6px;content:''}.jcf-number{display:inline-block;position:relative;height:32px}.jcf-number input{-moz-appearance:textfield;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border:1px solid #777;padding:3px 27px 3px 7px;margin:0;height:100%}.jcf-number input::-webkit-inner-spin-button,.jcf-number input::-webkit-outer-spin-button{-webkit-appearance:none}.jcf-number .jcf-btn-dec,.jcf-number .jcf-btn-inc{position:absolute;background:#aaa;width:20px;height:15px;right:1px}.jcf-number .jcf-btn-inc{top:1px}.jcf-number .jcf-btn-dec{top:auto;bottom:1px}.jcf-number .jcf-btn-dec:hover,.jcf-number .jcf-btn-inc:hover{background:#e6e6e6}.jcf-number.jcf-disabled .jcf-btn-dec:hover,.jcf-number.jcf-disabled .jcf-btn-inc:hover{background:#aaa}.jcf-number .jcf-btn-dec:before,.jcf-number .jcf-btn-inc:before{position:absolute;content:'';width:0;height:0;top:50%;left:50%;border:4px solid #aaa}.jcf-number .jcf-btn-inc:before{margin:-6px 0 0 -4px;border-color:transparent transparent #000 transparent}.jcf-number .jcf-btn-dec:before{margin:-1px 0 0 -4px;border-color:#000 transparent transparent transparent}.jcf-number .jcf-btn-dec.jcf-disabled:before,.jcf-number .jcf-btn-inc.jcf-disabled:before,.jcf-number.jcf-disabled .jcf-btn-dec:before,.jcf-number.jcf-disabled .jcf-btn-inc:before{opacity:.3}.jcf-number.jcf-disabled input{background:#ddd}.jcf-range{display:inline-block;min-width:200px;margin:0 10px;width:130px}.jcf-range .jcf-range-track{margin:0 20px 0 0;position:relative;display:block;height:10px}.jcf-range .jcf-range-wrapper{position:relative;background:#e5e5e5;border-radius:5px;display:block;margin:5px 0}.jcf-range.jcf-vertical{min-width:0;width:auto}.jcf-range.jcf-vertical .jcf-range-wrapper{margin:0;width:10px;height:auto;padding:20px 0 0}.jcf-range.jcf-vertical .jcf-range-track{height:180px;width:10px}.jcf-range.jcf-vertical .jcf-range-handle{left:-5px;top:auto}.jcf-range .jcf-range-display-wrapper{position:absolute;min-height:10px;min-width:10px;left:10px;right:10px}.jcf-range .jcf-range-display{border-radius:5px;position:absolute;background:#888;width:10px;height:10px}.jcf-range .jcf-range-display.jcf-range-min{margin:0 0 0 -10px;padding:0 0 0 10px}.jcf-range .jcf-range-display.jcf-range-max{margin:0 -10px 0 0;padding:0 10px 0 0}.jcf-range.jcf-vertical .jcf-range-display-wrapper{left:auto;right:auto;top:10px;bottom:10px}.jcf-range.jcf-vertical .jcf-range-display.jcf-range-min{margin:0 0 -10px;padding:0 0 10px}.jcf-range.jcf-vertical .jcf-range-display.jcf-range-max{margin:-10px 0 0;padding:10px 0 0}.jcf-range .jcf-range-handle{position:absolute;background:#aaa;border-radius:19px;width:19px;height:19px;margin:-4px 0 0;z-index:1;top:0;left:0}.jcf-range .jcf-range-mark{position:absolute;overflow:hidden;background:#000;width:1px;height:3px;top:-7px;margin:0 0 0 9px}.jcf-range.jcf-vertical .jcf-range-mark{margin:0 0 9px;left:14px;top:auto;width:3px;height:1px}.jcf-range .jcf-active-handle{z-index:2}.jcf-range.jcf-focus .jcf-active-handle{border:1px solid red;margin:-5px 0 0 -1px}.jcf-range.jcf-disabled{background:0 0!important;opacity:.3}.jcf-disabled{background:#ddd!important}.jcf-focus,.jcf-focus *{border-color:red!important} \ No newline at end of file diff --git a/dist/js/jcf.angular.js b/dist/js/jcf.angular.js new file mode 100644 index 0000000..50204bc --- /dev/null +++ b/dist/js/jcf.angular.js @@ -0,0 +1,4 @@ +/* + * JCF directive for basic AngularJS 1.x integration + */ +angular.module("jcf",[]).directive("jcf",function(){return{restrict:"A",link:function(c,n,e){jcf.replace(n),c.$watch(e.ngModel,function(c){jcf.refresh(n)}),c.$on("$destroy",function(){jcf.destroy(n)})}}}); \ No newline at end of file diff --git a/dist/js/jcf.button.js b/dist/js/jcf.button.js new file mode 100644 index 0000000..14cca61 --- /dev/null +++ b/dist/js/jcf.button.js @@ -0,0 +1,9 @@ +/*! + * JavaScript Custom Forms : Button Module + * + * Copyright 2014-2015 PSD2HTML - http://psd2html.com/jcf + * Released under the MIT license (LICENSE.txt) + * + * Version: 1.2.1 + */ +!function(t){t.addModule(function(t){"use strict";return{name:"Button",selector:'button, input[type="button"], input[type="submit"], input[type="reset"]',options:{realElementClass:"jcf-real-element",fakeStructure:'',buttonContent:".jcf-button-content"},matchElement:function(t){return t.is(this.selector)},init:function(){this.initStructure(),this.attachEvents(),this.refresh()},initStructure:function(){this.page=t("html"),this.realElement=t(this.options.element).addClass(this.options.realElementClass),this.fakeElement=t(this.options.fakeStructure).insertBefore(this.realElement),this.buttonContent=this.fakeElement.find(this.options.buttonContent),this.fakeElement.css({position:"relative"}),this.realElement.prependTo(this.fakeElement).css({position:"absolute",opacity:0})},attachEvents:function(){this.realElement.on({focus:this.onFocus,"jcf-pointerdown":this.onPress})},onPress:function(){this.fakeElement.addClass(this.options.pressedClass),this.page.on("jcf-pointerup",this.onRelease)},onRelease:function(){this.fakeElement.removeClass(this.options.pressedClass),this.page.off("jcf-pointerup",this.onRelease)},onFocus:function(){this.fakeElement.addClass(this.options.focusClass),this.realElement.on("blur",this.onBlur)},onBlur:function(){this.fakeElement.removeClass(this.options.focusClass),this.realElement.off("blur",this.onBlur)},refresh:function(){this.buttonContent.html(this.realElement.html()||this.realElement.val()),this.fakeElement.toggleClass(this.options.disabledClass,this.realElement.is(":disabled"))},destroy:function(){this.realElement.removeClass(this.options.realElementClass).insertBefore(this.fakeElement),this.fakeElement.remove(),this.realElement.off({focus:this.onFocus,blur:this.onBlur,"jcf-pointerdown":this.onPress}),this.realElement.css({position:"",opacity:""})}}})}(jcf); \ No newline at end of file diff --git a/dist/js/jcf.checkbox.js b/dist/js/jcf.checkbox.js new file mode 100755 index 0000000..0e1e438 --- /dev/null +++ b/dist/js/jcf.checkbox.js @@ -0,0 +1,9 @@ +/*! + * JavaScript Custom Forms : Checkbox Module + * + * Copyright 2014-2015 PSD2HTML - http://psd2html.com/jcf + * Released under the MIT license (LICENSE.txt) + * + * Version: 1.2.1 + */ +!function(e){e.addModule(function(e){"use strict";return{name:"Checkbox",selector:'input[type="checkbox"]',options:{wrapNative:!0,checkedClass:"jcf-checked",uncheckedClass:"jcf-unchecked",labelActiveClass:"jcf-label-active",fakeStructure:''},matchElement:function(e){return e.is(":checkbox")},init:function(){this.initStructure(),this.attachEvents(),this.refresh()},initStructure:function(){this.doc=e(document),this.realElement=e(this.options.element),this.fakeElement=e(this.options.fakeStructure).insertAfter(this.realElement),this.labelElement=this.getLabelFor(),this.options.wrapNative?this.realElement.appendTo(this.fakeElement).css({position:"absolute",height:"100%",width:"100%",opacity:0,margin:0}):this.realElement.addClass(this.options.hiddenClass)},attachEvents:function(){this.realElement.on({focus:this.onFocus,click:this.onRealClick}),this.fakeElement.on("click",this.onFakeClick),this.fakeElement.on("jcf-pointerdown",this.onPress)},onRealClick:function(e){var t=this;this.savedEventObject=e,setTimeout(function(){t.refresh()},0)},onFakeClick:function(e){this.options.wrapNative&&this.realElement.is(e.target)||this.realElement.is(":disabled")||(delete this.savedEventObject,this.stateChecked=this.realElement.prop("checked"),this.realElement.prop("checked",!this.stateChecked),this.fireNativeEvent(this.realElement,"click"),this.savedEventObject&&this.savedEventObject.isDefaultPrevented()?this.realElement.prop("checked",this.stateChecked):this.fireNativeEvent(this.realElement,"change"),delete this.savedEventObject)},onFocus:function(){this.pressedFlag&&this.focusedFlag||(this.focusedFlag=!0,this.fakeElement.addClass(this.options.focusClass),this.realElement.on("blur",this.onBlur))},onBlur:function(){this.pressedFlag||(this.focusedFlag=!1,this.fakeElement.removeClass(this.options.focusClass),this.realElement.off("blur",this.onBlur))},onPress:function(e){this.focusedFlag||"mouse"!==e.pointerType||this.realElement.focus(),this.pressedFlag=!0,this.fakeElement.addClass(this.options.pressedClass),this.doc.on("jcf-pointerup",this.onRelease)},onRelease:function(e){this.focusedFlag&&"mouse"===e.pointerType&&this.realElement.focus(),this.pressedFlag=!1,this.fakeElement.removeClass(this.options.pressedClass),this.doc.off("jcf-pointerup",this.onRelease)},getLabelFor:function(){var t=this.realElement.closest("label"),s=this.realElement.prop("id");return!t.length&&s&&(t=e('label[for="'+s+'"]')),t.length?t:null},refresh:function(){var e=this.realElement.is(":checked"),t=this.realElement.is(":disabled");this.fakeElement.toggleClass(this.options.checkedClass,e).toggleClass(this.options.uncheckedClass,!e).toggleClass(this.options.disabledClass,t),this.labelElement&&this.labelElement.toggleClass(this.options.labelActiveClass,e)},destroy:function(){this.options.wrapNative?this.realElement.insertBefore(this.fakeElement).css({position:"",width:"",height:"",opacity:"",margin:""}):this.realElement.removeClass(this.options.hiddenClass),this.fakeElement.off("jcf-pointerdown",this.onPress),this.fakeElement.remove(),this.doc.off("jcf-pointerup",this.onRelease),this.realElement.off({focus:this.onFocus,click:this.onRealClick})}}})}(jcf); \ No newline at end of file diff --git a/dist/js/jcf.common.js b/dist/js/jcf.common.js new file mode 100644 index 0000000..7e938a3 --- /dev/null +++ b/dist/js/jcf.common.js @@ -0,0 +1 @@ +"use strict";window.jcf=require("./jcf"),require("./jcf.button"),require("./jcf.checkbox"),require("./jcf.file"),require("./jcf.number"),require("./jcf.radio"),require("./jcf.range"),require("./jcf.scrollable"),require("./jcf.select"),require("./jcf.textarea"),module.exports=window.jcf,delete window.jcf; \ No newline at end of file diff --git a/dist/js/jcf.file.js b/dist/js/jcf.file.js new file mode 100644 index 0000000..59679ed --- /dev/null +++ b/dist/js/jcf.file.js @@ -0,0 +1,9 @@ +/*! + * JavaScript Custom Forms : File Module + * + * Copyright 2014-2015 PSD2HTML - http://psd2html.com/jcf + * Released under the MIT license (LICENSE.txt) + * + * Version: 1.2.1 + */ +!function(e){e.addModule(function(e){"use strict";return{name:"File",selector:'input[type="file"]',options:{fakeStructure:'',buttonText:"Choose file",placeholderText:"No file chosen",realElementClass:"jcf-real-element",extensionPrefixClass:"jcf-extension-",selectedFileBlock:".jcf-fake-input",buttonTextBlock:".jcf-button-content"},matchElement:function(e){return e.is('input[type="file"]')},init:function(){this.initStructure(),this.attachEvents(),this.refresh()},initStructure:function(){this.doc=e(document),this.realElement=e(this.options.element).addClass(this.options.realElementClass),this.fakeElement=e(this.options.fakeStructure).insertBefore(this.realElement),this.fileNameBlock=this.fakeElement.find(this.options.selectedFileBlock),this.buttonTextBlock=this.fakeElement.find(this.options.buttonTextBlock).text(this.options.buttonText),this.realElement.appendTo(this.fakeElement).css({position:"absolute",opacity:0})},attachEvents:function(){this.realElement.on({"jcf-pointerdown":this.onPress,change:this.onChange,focus:this.onFocus})},onChange:function(){this.refresh()},onFocus:function(){this.fakeElement.addClass(this.options.focusClass),this.realElement.on("blur",this.onBlur)},onBlur:function(){this.fakeElement.removeClass(this.options.focusClass),this.realElement.off("blur",this.onBlur)},onPress:function(){this.fakeElement.addClass(this.options.pressedClass),this.doc.on("jcf-pointerup",this.onRelease)},onRelease:function(){this.fakeElement.removeClass(this.options.pressedClass),this.doc.off("jcf-pointerup",this.onRelease)},getFileName:function(){var t="",s=this.realElement.prop("files");return s&&s.length?e.each(s,function(e,s){t+=(e>0?", ":"")+s.name}):t=this.realElement.val().replace(/^[\s\S]*(?:\\|\/)([\s\S^\\\/]*)$/g,"$1"),t},getFileExtension:function(){var e=this.realElement.val();return e.lastIndexOf(".")<0?"":e.substring(e.lastIndexOf(".")+1).toLowerCase()},updateExtensionClass:function(){var e=this.getFileExtension(),t=this.fakeElement.prop("className"),s=t.replace(new RegExp("(\\s|^)"+this.options.extensionPrefixClass+"[^ ]+","gi"),"");this.fakeElement.prop("className",s),e&&this.fakeElement.addClass(this.options.extensionPrefixClass+e)},refresh:function(){var e=this.getFileName()||this.options.placeholderText;this.fakeElement.toggleClass(this.options.disabledClass,this.realElement.is(":disabled")),this.fileNameBlock.text(e),this.updateExtensionClass()},destroy:function(){this.realElement.insertBefore(this.fakeElement).removeClass(this.options.realElementClass).css({position:"",opacity:""}),this.fakeElement.remove(),this.realElement.off({"jcf-pointerdown":this.onPress,change:this.onChange,focus:this.onFocus,blur:this.onBlur}),this.doc.off("jcf-pointerup",this.onRelease)}}})}(jcf); \ No newline at end of file diff --git a/dist/js/jcf.js b/dist/js/jcf.js new file mode 100755 index 0000000..4060192 --- /dev/null +++ b/dist/js/jcf.js @@ -0,0 +1,9 @@ +/*! + * JavaScript Custom Forms + * + * Copyright 2014-2015 PSD2HTML - http://psd2html.com/jcf + * Released under the MIT license (LICENSE.txt) + * + * Version: 1.2.1 + */ +!function(e,t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):e.jcf=t(jQuery)}(this,function(e){"use strict";var t="1.2.1",n=[],o={optionsKey:"jcf",dataKey:"jcf-instance",rtlClass:"jcf-rtl",focusClass:"jcf-focus",pressedClass:"jcf-pressed",disabledClass:"jcf-disabled",hiddenClass:"jcf-hidden",resetAppearanceClass:"jcf-reset-appearance",unselectableClass:"jcf-unselectable"},a="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,i=/Windows Phone/.test(navigator.userAgent);o.isMobileDevice=!(!a&&!i);var r=function(){var t=e("