PDF rausgenommen

This commit is contained in:
aschwarz
2023-01-23 11:03:31 +01:00
parent 82d562a322
commit a6523903eb
28078 changed files with 4247552 additions and 2 deletions

View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2015 Jonathan Peterson (@Eonasdan)
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.

View File

@ -0,0 +1,20 @@
# Bootstrap 3 Date/Time Picker
![GitHub version](https://badge.fury.io/gh/Eonasdan%2Fbootstrap-datetimepicker.png)   ![Travis](https://travis-ci.org/Eonasdan/bootstrap-datetimepicker.svg?branch=development)
![DateTimePicker](http://i.imgur.com/nfnvh5g.png)
## [View the manual and demos](http://eonasdan.github.io/bootstrap-datetimepicker/)
## [Installation instructions](http://eonasdan.github.io/bootstrap-datetimepicker/Installing/)
## [Change Log](http://eonasdan.github.io/bootstrap-datetimepicker/Changelog/)
### This issue tracker is no longer actively monitored.
# Version 5
Version 5 is being completely rewritten in ES6 and modularized as Tempus Dominus.
v5 is [in alpha](https://github.com/tempusdominus/bootstrap-3).

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

322
msd2/myoos/admin/js/plugins/html5shiv.js vendored Normal file
View File

@ -0,0 +1,322 @@
/**
* @preserve HTML5 Shiv 3.7.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
*/
;(function(window, document) {
/*jshint evil:true */
/** version */
var version = '3.7.2';
/** Preset options */
var options = window.html5 || {};
/** Used to skip problem elements */
var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i;
/** Not all elements can be cloned in IE **/
var saveClones = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i;
/** Detect whether the browser supports default html5 styles */
var supportsHtml5Styles;
/** Name of the expando, to work with multiple documents or to re-shiv one document */
var expando = '_html5shiv';
/** The id for the the documents expando */
var expanID = 0;
/** Cached data for each document */
var expandoData = {};
/** Detect whether the browser supports unknown elements */
var supportsUnknownElements;
(function() {
try {
var a = document.createElement('a');
a.innerHTML = '<xyz></xyz>';
//if the hidden property is implemented we can assume, that the browser supports basic HTML5 Styles
supportsHtml5Styles = ('hidden' in a);
supportsUnknownElements = a.childNodes.length == 1 || (function() {
// assign a false positive if unable to shiv
(document.createElement)('a');
var frag = document.createDocumentFragment();
return (
typeof frag.cloneNode == 'undefined' ||
typeof frag.createDocumentFragment == 'undefined' ||
typeof frag.createElement == 'undefined'
);
}());
} catch(e) {
// assign a false positive if detection fails => unable to shiv
supportsHtml5Styles = true;
supportsUnknownElements = true;
}
}());
/*--------------------------------------------------------------------------*/
/**
* Creates a style sheet with the given CSS text and adds it to the document.
* @private
* @param {Document} ownerDocument The document.
* @param {String} cssText The CSS text.
* @returns {StyleSheet} The style element.
*/
function addStyleSheet(ownerDocument, cssText) {
var p = ownerDocument.createElement('p'),
parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement;
p.innerHTML = 'x<style>' + cssText + '</style>';
return parent.insertBefore(p.lastChild, parent.firstChild);
}
/**
* Returns the value of `html5.elements` as an array.
* @private
* @returns {Array} An array of shived element node names.
*/
function getElements() {
var elements = html5.elements;
return typeof elements == 'string' ? elements.split(' ') : elements;
}
/**
* Extends the built-in list of html5 elements
* @memberOf html5
* @param {String|Array} newElements whitespace separated list or array of new element names to shiv
* @param {Document} ownerDocument The context document.
*/
function addElements(newElements, ownerDocument) {
var elements = html5.elements;
if(typeof elements != 'string'){
elements = elements.join(' ');
}
if(typeof newElements != 'string'){
newElements = newElements.join(' ');
}
html5.elements = elements +' '+ newElements;
shivDocument(ownerDocument);
}
/**
* Returns the data associated to the given document
* @private
* @param {Document} ownerDocument The document.
* @returns {Object} An object of data.
*/
function getExpandoData(ownerDocument) {
var data = expandoData[ownerDocument[expando]];
if (!data) {
data = {};
expanID++;
ownerDocument[expando] = expanID;
expandoData[expanID] = data;
}
return data;
}
/**
* returns a shived element for the given nodeName and document
* @memberOf html5
* @param {String} nodeName name of the element
* @param {Document} ownerDocument The context document.
* @returns {Object} The shived element.
*/
function createElement(nodeName, ownerDocument, data){
if (!ownerDocument) {
ownerDocument = document;
}
if(supportsUnknownElements){
return ownerDocument.createElement(nodeName);
}
if (!data) {
data = getExpandoData(ownerDocument);
}
var node;
if (data.cache[nodeName]) {
node = data.cache[nodeName].cloneNode();
} else if (saveClones.test(nodeName)) {
node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode();
} else {
node = data.createElem(nodeName);
}
// Avoid adding some elements to fragments in IE < 9 because
// * Attributes like `name` or `type` cannot be set/changed once an element
// is inserted into a document/fragment
// * Link elements with `src` attributes that are inaccessible, as with
// a 403 response, will cause the tab/window to crash
// * Script elements appended to fragments will execute when their `src`
// or `text` property is set
return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node) : node;
}
/**
* returns a shived DocumentFragment for the given document
* @memberOf html5
* @param {Document} ownerDocument The context document.
* @returns {Object} The shived DocumentFragment.
*/
function createDocumentFragment(ownerDocument, data){
if (!ownerDocument) {
ownerDocument = document;
}
if(supportsUnknownElements){
return ownerDocument.createDocumentFragment();
}
data = data || getExpandoData(ownerDocument);
var clone = data.frag.cloneNode(),
i = 0,
elems = getElements(),
l = elems.length;
for(;i<l;i++){
clone.createElement(elems[i]);
}
return clone;
}
/**
* Shivs the `createElement` and `createDocumentFragment` methods of the document.
* @private
* @param {Document|DocumentFragment} ownerDocument The document.
* @param {Object} data of the document.
*/
function shivMethods(ownerDocument, data) {
if (!data.cache) {
data.cache = {};
data.createElem = ownerDocument.createElement;
data.createFrag = ownerDocument.createDocumentFragment;
data.frag = data.createFrag();
}
ownerDocument.createElement = function(nodeName) {
//abort shiv
if (!html5.shivMethods) {
return data.createElem(nodeName);
}
return createElement(nodeName, ownerDocument, data);
};
ownerDocument.createDocumentFragment = Function('h,f', 'return function(){' +
'var n=f.cloneNode(),c=n.createElement;' +
'h.shivMethods&&(' +
// unroll the `createElement` calls
getElements().join().replace(/[\w\-:]+/g, function(nodeName) {
data.createElem(nodeName);
data.frag.createElement(nodeName);
return 'c("' + nodeName + '")';
}) +
');return n}'
)(html5, data.frag);
}
/*--------------------------------------------------------------------------*/
/**
* Shivs the given document.
* @memberOf html5
* @param {Document} ownerDocument The document to shiv.
* @returns {Document} The shived document.
*/
function shivDocument(ownerDocument) {
if (!ownerDocument) {
ownerDocument = document;
}
var data = getExpandoData(ownerDocument);
if (html5.shivCSS && !supportsHtml5Styles && !data.hasCSS) {
data.hasCSS = !!addStyleSheet(ownerDocument,
// corrects block display not defined in IE6/7/8/9
'article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}' +
// adds styling not present in IE6/7/8/9
'mark{background:#FF0;color:#000}' +
// hides non-rendered elements
'template{display:none}'
);
}
if (!supportsUnknownElements) {
shivMethods(ownerDocument, data);
}
return ownerDocument;
}
/*--------------------------------------------------------------------------*/
/**
* The `html5` object is exposed so that more elements can be shived and
* existing shiving can be detected on iframes.
* @type Object
* @example
*
* // options can be changed before the script is included
* html5 = { 'elements': 'mark section', 'shivCSS': false, 'shivMethods': false };
*/
var html5 = {
/**
* An array or space separated string of node names of the elements to shiv.
* @memberOf html5
* @type Array|String
*/
'elements': options.elements || 'abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video',
/**
* current version of html5shiv
*/
'version': version,
/**
* A flag to indicate that the HTML5 style sheet should be inserted.
* @memberOf html5
* @type Boolean
*/
'shivCSS': (options.shivCSS !== false),
/**
* Is equal to true if a browser supports creating unknown/HTML5 elements
* @memberOf html5
* @type boolean
*/
'supportsUnknownElements': supportsUnknownElements,
/**
* A flag to indicate that the document's `createElement` and `createDocumentFragment`
* methods should be overwritten.
* @memberOf html5
* @type Boolean
*/
'shivMethods': (options.shivMethods !== false),
/**
* A string to describe the type of `html5` object ("default" or "default print").
* @memberOf html5
* @type String
*/
'type': 'default',
// shivs the document according to the specified `html5` object options
'shivDocument': shivDocument,
//creates a shived element
createElement: createElement,
//creates a shived documentFragment
createDocumentFragment: createDocumentFragment,
//extends list of elements
addElements: addElements
};
/*--------------------------------------------------------------------------*/
// expose html5
window.html5 = html5;
// shiv the document
shivDocument(document);
}(this, document));

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,451 @@
/*
* jQuery Storage API Plugin
*
* Copyright (c) 2013 Julien Maurel
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
* Project home:
* https://github.com/julien-maurel/jQuery-Storage-API
*
* Version: 1.7.5
*
*/
(function (factory) {
if(typeof define==='function' && define.amd){
// AMD
define(['jquery'],factory);
}else if(typeof exports==='object') {
// CommonJS
factory(require('jquery'));
}else {
// Browser globals
factory(jQuery);
}
}(function($){
// Prefix to use with cookie fallback
var cookie_local_prefix="ls_";
var cookie_session_prefix="ss_";
// Get items from a storage
function _get(storage){
var l=arguments.length,s=window[storage],a=arguments,a1=a[1],vi,ret,tmp;
if(l<2) throw new Error('Minimum 2 arguments must be given');
else if($.isArray(a1)){
// If second argument is an array, return an object with value of storage for each item in this array
ret={};
for(var i in a1){
vi=a1[i];
try{
ret[vi]=JSON.parse(s.getItem(vi));
}catch(e){
ret[vi]=s.getItem(vi);
}
}
return ret;
}else if(l==2){
// If only 2 arguments, return value directly
try{
return JSON.parse(s.getItem(a1));
}catch(e){
return s.getItem(a1);
}
}else{
// If more than 2 arguments, parse storage to retrieve final value to return it
// Get first level
try{
ret=JSON.parse(s.getItem(a1));
}catch(e){
throw new ReferenceError(a1+' is not defined in this storage');
}
// Parse next levels
for(var i=2;i<l-1;i++){
ret=ret[a[i]];
if(ret===undefined) throw new ReferenceError([].slice.call(a,1,i+1).join('.')+' is not defined in this storage');
}
// If last argument is an array, return an object with value for each item in this array
// Else return value normally
if($.isArray(a[i])){
tmp=ret;
ret={};
for(var j in a[i]){
ret[a[i][j]]=tmp[a[i][j]];
}
return ret;
}else{
return ret[a[i]];
}
}
}
// Set items of a storage
function _set(storage){
var l=arguments.length,s=window[storage],a=arguments,a1=a[1],a2=a[2],vi,to_store={},tmp;
if(l<2 || !$.isPlainObject(a1) && l<3) throw new Error('Minimum 3 arguments must be given or second parameter must be an object');
else if($.isPlainObject(a1)){
// If first argument is an object, set values of storage for each property of this object
for(var i in a1){
vi=a1[i];
if(!$.isPlainObject(vi)) s.setItem(i,vi);
else s.setItem(i,JSON.stringify(vi));
}
return a1;
}else if(l==3){
// If only 3 arguments, set value of storage directly
if(typeof a2==='object') s.setItem(a1,JSON.stringify(a2));
else s.setItem(a1,a2);
return a2;
}else{
// If more than 3 arguments, parse storage to retrieve final node and set value
// Get first level
try{
tmp=s.getItem(a1);
if(tmp!=null) {
to_store=JSON.parse(tmp);
}
}catch(e){
}
tmp=to_store;
// Parse next levels and set value
for(var i=2;i<l-2;i++){
vi=a[i];
if(!tmp[vi] || !$.isPlainObject(tmp[vi])) tmp[vi]={};
tmp=tmp[vi];
}
tmp[a[i]]=a[i+1];
s.setItem(a1,JSON.stringify(to_store));
return to_store;
}
}
// Remove items from a storage
function _remove(storage){
var l=arguments.length,s=window[storage],a=arguments,a1=a[1],to_store,tmp;
if(l<2) throw new Error('Minimum 2 arguments must be given');
else if($.isArray(a1)){
// If first argument is an array, remove values from storage for each item of this array
for(var i in a1){
s.removeItem(a1[i]);
}
return true;
}else if(l==2){
// If only 2 arguments, remove value from storage directly
s.removeItem(a1);
return true;
}else{
// If more than 2 arguments, parse storage to retrieve final node and remove value
// Get first level
try{
to_store=tmp=JSON.parse(s.getItem(a1));
}catch(e){
throw new ReferenceError(a1+' is not defined in this storage');
}
// Parse next levels and remove value
for(var i=2;i<l-1;i++){
tmp=tmp[a[i]];
if(tmp===undefined) throw new ReferenceError([].slice.call(a,1,i).join('.')+' is not defined in this storage');
}
// If last argument is an array,remove value for each item in this array
// Else remove value normally
if($.isArray(a[i])){
for(var j in a[i]){
delete tmp[a[i][j]];
}
}else{
delete tmp[a[i]];
}
s.setItem(a1,JSON.stringify(to_store));
return true;
}
}
// Remove all items from a storage
function _removeAll(storage, reinit_ns){
var keys=_keys(storage);
for(var i in keys){
_remove(storage,keys[i]);
}
// Reinitialize all namespace storages
if(reinit_ns){
for(var i in $.namespaceStorages){
_createNamespace(i);
}
}
}
// Check if items of a storage are empty
function _isEmpty(storage){
var l=arguments.length,a=arguments,s=window[storage],a1=a[1];
if(l==1){
// If only one argument, test if storage is empty
return (_keys(storage).length==0);
}else if($.isArray(a1)){
// If first argument is an array, test each item of this array and return true only if all items are empty
for(var i=0; i<a1.length;i++){
if(!_isEmpty(storage,a1[i])) return false;
}
return true;
}else{
// If more than 1 argument, try to get value and test it
try{
var v=_get.apply(this, arguments);
// Convert result to an object (if last argument is an array, _get return already an object) and test each item
if(!$.isArray(a[l-1])) v={'totest':v};
for(var i in v){
if(!(
($.isPlainObject(v[i]) && $.isEmptyObject(v[i])) ||
($.isArray(v[i]) && !v[i].length) ||
(!v[i])
)) return false;
}
return true;
}catch(e){
return true;
}
}
}
// Check if items of a storage exist
function _isSet(storage){
var l=arguments.length,a=arguments,s=window[storage],a1=a[1];
if(l<2) throw new Error('Minimum 2 arguments must be given');
if($.isArray(a1)){
// If first argument is an array, test each item of this array and return true only if all items exist
for(var i=0; i<a1.length;i++){
if(!_isSet(storage,a1[i])) return false;
}
return true;
}else{
// For other case, try to get value and test it
try{
var v=_get.apply(this, arguments);
// Convert result to an object (if last argument is an array, _get return already an object) and test each item
if(!$.isArray(a[l-1])) v={'totest':v};
for(var i in v){
if(!(v[i]!==undefined && v[i]!==null)) return false;
}
return true;
}catch(e){
return false;
}
}
}
// Get keys of a storage or of an item of the storage
function _keys(storage){
var l=arguments.length,s=window[storage],a=arguments,a1=a[1],keys=[],o={};
// If more than 1 argument, get value from storage to retrieve keys
// Else, use storage to retrieve keys
if(l>1){
o=_get.apply(this,a);
}else{
o=s;
}
if(o && o._cookie){
// If storage is a cookie, use $.cookie to retrieve keys
for(var key in $.cookie()){
if(key!='') {
keys.push(key.replace(o._prefix,''));
}
}
}else{
for(var i in o){
keys.push(i);
}
}
return keys;
}
// Create new namespace storage
function _createNamespace(name){
if(!name || typeof name!="string") throw new Error('First parameter must be a string');
if(storage_available){
if(!window.localStorage.getItem(name)) window.localStorage.setItem(name,'{}');
if(!window.sessionStorage.getItem(name)) window.sessionStorage.setItem(name,'{}');
}else{
if(!window.localCookieStorage.getItem(name)) window.localCookieStorage.setItem(name,'{}');
if(!window.sessionCookieStorage.getItem(name)) window.sessionCookieStorage.setItem(name,'{}');
}
var ns={
localStorage:$.extend({},$.localStorage,{_ns:name}),
sessionStorage:$.extend({},$.sessionStorage,{_ns:name})
};
if($.cookie){
if(!window.cookieStorage.getItem(name)) window.cookieStorage.setItem(name,'{}');
ns.cookieStorage=$.extend({},$.cookieStorage,{_ns:name});
}
$.namespaceStorages[name]=ns;
return ns;
}
// Test if storage is natively available on browser
function _testStorage(name){
var foo='jsapi';
try{
if(!window[name]) return false;
window[name].setItem(foo,foo);
window[name].removeItem(foo);
return true;
}catch(e){
return false;
}
}
// Check if storages are natively available on browser
var storage_available=_testStorage('localStorage');
// Namespace object
var storage={
_type:'',
_ns:'',
_callMethod:function(f,a){
var p=[this._type],a=Array.prototype.slice.call(a),a0=a[0];
if(this._ns) p.push(this._ns);
if(typeof a0==='string' && a0.indexOf('.')!==-1){
a.shift();
[].unshift.apply(a,a0.split('.'));
}
[].push.apply(p,a);
return f.apply(this,p);
},
// Get items. If no parameters and storage have a namespace, return all namespace
get:function(){
return this._callMethod(_get,arguments);
},
// Set items
set:function(){
var l=arguments.length,a=arguments,a0=a[0];
if(l<1 || !$.isPlainObject(a0) && l<2) throw new Error('Minimum 2 arguments must be given or first parameter must be an object');
// If first argument is an object and storage is a namespace storage, set values individually
if($.isPlainObject(a0) && this._ns){
for(var i in a0){
_set(this._type,this._ns,i,a0[i]);
}
return a0;
}else{
var r=this._callMethod(_set,a);
if(this._ns) return r[a0.split('.')[0]];
else return r;
}
},
// Delete items
remove:function(){
if(arguments.length<1) throw new Error('Minimum 1 argument must be given');
return this._callMethod(_remove,arguments);
},
// Delete all items
removeAll:function(reinit_ns){
if(this._ns){
_set(this._type,this._ns,{});
return true;
}else{
return _removeAll(this._type, reinit_ns);
}
},
// Items empty
isEmpty:function(){
return this._callMethod(_isEmpty,arguments);
},
// Items exists
isSet:function(){
if(arguments.length<1) throw new Error('Minimum 1 argument must be given');
return this._callMethod(_isSet,arguments);
},
// Get keys of items
keys:function(){
return this._callMethod(_keys,arguments);
}
};
// Use jquery.cookie for compatibility with old browsers and give access to cookieStorage
if($.cookie){
// sessionStorage is valid for one window/tab. To simulate that with cookie, we set a name for the window and use it for the name of the cookie
if(!window.name) window.name=Math.floor(Math.random()*100000000);
var cookie_storage={
_cookie:true,
_prefix:'',
_expires:null,
_path:null,
_domain:null,
setItem:function(n,v){
$.cookie(this._prefix+n,v,{expires:this._expires,path:this._path,domain:this._domain});
},
getItem:function(n){
return $.cookie(this._prefix+n);
},
removeItem:function(n){
return $.removeCookie(this._prefix+n);
},
clear:function(){
for(var key in $.cookie()){
if(key!=''){
if(!this._prefix && key.indexOf(cookie_local_prefix)===-1 && key.indexOf(cookie_session_prefix)===-1 || this._prefix && key.indexOf(this._prefix)===0) {
$.removeCookie(key);
}
}
}
},
setExpires:function(e){
this._expires=e;
return this;
},
setPath:function(p){
this._path=p;
return this;
},
setDomain:function(d){
this._domain=d;
return this;
},
setConf:function(c){
if(c.path) this._path=c.path;
if(c.domain) this._domain=c.domain;
if(c.expires) this._expires=c.expires;
return this;
},
setDefaultConf:function(){
this._path=this._domain=this._expires=null;
}
};
if(!storage_available){
window.localCookieStorage=$.extend({},cookie_storage,{_prefix:cookie_local_prefix,_expires:365*10});
window.sessionCookieStorage=$.extend({},cookie_storage,{_prefix:cookie_session_prefix+window.name+'_'});
}
window.cookieStorage=$.extend({},cookie_storage);
// cookieStorage API
$.cookieStorage=$.extend({},storage,{
_type:'cookieStorage',
setExpires:function(e){window.cookieStorage.setExpires(e); return this;},
setPath:function(p){window.cookieStorage.setPath(p); return this;},
setDomain:function(d){window.cookieStorage.setDomain(d); return this;},
setConf:function(c){window.cookieStorage.setConf(c); return this;},
setDefaultConf:function(){window.cookieStorage.setDefaultConf(); return this;}
});
}
// Get a new API on a namespace
$.initNamespaceStorage=function(ns){ return _createNamespace(ns); };
if(storage_available) {
// localStorage API
$.localStorage=$.extend({},storage,{_type:'localStorage'});
// sessionStorage API
$.sessionStorage=$.extend({},storage,{_type:'sessionStorage'});
}else{
// localStorage API
$.localStorage=$.extend({},storage,{_type:'localCookieStorage'});
// sessionStorage API
$.sessionStorage=$.extend({},storage,{_type:'sessionCookieStorage'});
}
// List of all namespace storage
$.namespaceStorages={};
// Remove all items in all storages
$.removeAllStorages=function(reinit_ns){
$.localStorage.removeAll(reinit_ns);
$.sessionStorage.removeAll(reinit_ns);
if($.cookieStorage) $.cookieStorage.removeAll(reinit_ns);
if(!reinit_ns){
$.namespaceStorages={};
}
}
}));

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,22 @@
Copyright (c) JS Foundation and other contributors
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.

View File

@ -0,0 +1,61 @@
[![Join the chat at https://gitter.im/moment/moment](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/moment/moment?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] [![MIT License][license-image]][license-url] [![Build Status][travis-image]][travis-url]
[![Coverage Status](https://coveralls.io/repos/moment/moment/badge.svg?branch=develop)](https://coveralls.io/r/moment/moment?branch=develop)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmoment%2Fmoment.svg?type=shield)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmoment%2Fmoment?ref=badge_shield)
A lightweight JavaScript date library for parsing, validating, manipulating, and formatting dates.
**[Documentation](http://momentjs.com/docs/)**
## Port to ECMAScript 6 (version 2.10.0)
Moment 2.10.0 does not bring any new features, but the code is now written in
ECMAScript 6 modules and placed inside `src/`. Previously `moment.js`, `locale/*.js` and
`test/moment/*.js`, `test/locale/*.js` contained the source of the project. Now
the source is in `src/`, temporary build (ECMAScript 5) files are placed under
`build/umd/` (for running tests during development), and the `moment.js` and
`locale/*.js` files are updated only on release.
If you want to use a particular revision of the code, make sure to run
`grunt transpile update-index`, so `moment.js` and `locales/*.js` are synced
with `src/*`. We might place that in a commit hook in the future.
## Upgrading to 2.0.0
There are a number of small backwards incompatible changes with version 2.0.0. [See the full descriptions here](https://gist.github.com/timrwood/e72f2eef320ed9e37c51#backwards-incompatible-changes)
* Changed language ordinal method to return the number + ordinal instead of just the ordinal.
* Changed two digit year parsing cutoff to match strptime.
* Removed `moment#sod` and `moment#eod` in favor of `moment#startOf` and `moment#endOf`.
* Removed `moment.humanizeDuration()` in favor of `moment.duration().humanize()`.
* Removed the lang data objects from the top level namespace.
* Duplicate `Date` passed to `moment()` instead of referencing it.
## [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
## [Contributing](https://github.com/moment/moment/blob/develop/CONTRIBUTING.md)
We're looking for co-maintainers! If you want to become a master of time please
write to [ichernev](https://github.com/ichernev).
## License
Moment.js is freely distributable under the terms of the [MIT license](https://github.com/moment/moment/blob/develop/LICENSE).
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmoment%2Fmoment.svg?type=large)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmoment%2Fmoment?ref=badge_large)
[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat
[license-url]: LICENSE
[npm-url]: https://npmjs.org/package/moment
[npm-version-image]: http://img.shields.io/npm/v/moment.svg?style=flat
[npm-downloads-image]: http://img.shields.io/npm/dm/moment.svg?style=flat
[travis-url]: http://travis-ci.org/moment/moment
[travis-image]: http://img.shields.io/travis/moment/moment/develop.svg?style=flat

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.ar = jQuery.extend(window.ParsleyConfig.i18n.ar || {}, {
defaultMessage: "تأكد من صحة القيمة المدخل",
type: {
email: "تأكد من إدخال بريد الكتروني صحيح",
url: "تأكد من إدخال رابط صحيح",
number: "تأكد من إدخال رقم",
integer: "تأكد من إدخال عدد صحيح بدون كسور",
digits: "تأكد من إدخال رقم",
alphanum: "تأكد من إدخال حروف وأرقام فقط"
},
notblank: "تأكد من تعبئة الحقل",
required: "هذا الحقل مطلوب",
pattern: "القيمة المدخلة غير صحيحة",
min: "القيمة المدخلة يجب أن تكون أكبر من %s.",
max: "القيمة المدخلة يجب أن تكون أصغر من %s.",
range: "القيمة المدخلة يجب أن تكون بين %s و %s.",
minlength: "القيمة المدخلة قصيرة جداً . تأكد من إدخال %s حرف أو أكثر",
maxlength: "القيمة المدخلة طويلة . تأكد من إدخال %s حرف أو أقل",
length: "القيمة المدخلة غير صحيحة. تأكد من إدخال بين %s و %s خانة",
mincheck: "يجب اختيار %s خيار على الأقل.",
maxcheck: "يجب اختيار%s خيار أو أقل",
check: "يجب اختيار بين %s و %s خيار.",
equalto: "تأكد من تطابق القيمتين المدخلة."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('ar', window.ParsleyConfig.i18n.ar, true);
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.bg = jQuery.extend(window.ParsleyConfig.i18n.bg || {}, {
defaultMessage: "Невалидна стойност.",
type: {
email: "Невалиден имейл адрес.",
url: "Невалиден URL адрес.",
number: "Невалиден номер.",
integer: "Невалиден номер.",
digits: "Невалидни цифри.",
alphanum: "Стойността трябва да садържа само букви или цифри."
},
notblank: "Полето е задължително.",
required: "Полето е задължително.",
pattern: "Невалидна стойност.",
min: "Стойността трябва да бъде по-голяма или равна на %s.",
max: "Стойността трябва да бъде по-малка или равна на %s.",
range: "Стойността трябва да бъде между %s и %s.",
minlength: "Стойността е прекалено кратка. Мин. дължина: %s символа.",
maxlength: "Стойността е прекалено дълга. Макс. дължина: %s символа.",
length: "Дължината на стойността трябва да бъде между %s и %s символа.",
mincheck: "Трябва да изберете поне %s стойности.",
maxcheck: "Трябва да изберете най-много %s стойности.",
check: "Трябва да изберете между %s и %s стойности.",
equalto: "Стойността трябва да съвпада."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('bg', window.ParsleyConfig.i18n.bg, true);
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.ca = jQuery.extend(window.ParsleyConfig.i18n.ca || {}, {
defaultMessage: "Aquest valor sembla ser invàlid.",
type: {
email: "Aquest valor ha de ser una adreça de correu electrònic vàlida.",
url: "Aquest valor ha de ser una URL vàlida.",
number: "Aquest valor ha de ser un nombre vàlid.",
integer: "Aquest valor ha de ser un nombre enter vàlid.",
digits: "Aquest valor només pot contenir dígits.",
alphanum: "Aquest valor ha de ser alfanumèric."
},
notblank: "Aquest valor no pot ser buit.",
required: "Aquest valor és obligatori.",
pattern: "Aquest valor és incorrecte.",
min: "Aquest valor no pot ser menor que %s.",
max: "Aquest valor no pot ser major que %s.",
range: "Aquest valor ha d'estar entre %s i %s.",
minlength: "Aquest valor és massa curt. La longitud mínima és de %s caràcters.",
maxlength: "Aquest valor és massa llarg. La longitud màxima és de %s caràcters.",
length: "La longitud d'aquest valor ha de ser d'entre %s i %s caràcters.",
mincheck: "Has de marcar un mínim de %s opcions.",
maxcheck: "Has de marcar un màxim de %s opcions.",
check: "Has de marcar entre %s i %s opcions.",
equalto: "Aquest valor ha de ser el mateix."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('ca', window.ParsleyConfig.i18n.ca, true);
}));

View File

@ -0,0 +1,36 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
window.ParsleyConfig.i18n.cs = jQuery.extend(window.ParsleyConfig.i18n.cs || {}, {
dateiso: "Tato položka musí být datum ve formátu RRRR-MM-DD.",
minwords: "Tato položka musí mít délku nejméně %s slov.",
maxwords: "Tato položka musí mít délku nejvíce %s slov.",
words: "Tato položka musí být od %s do %s slov dlouhá.",
gt: "Tato hodnota musí být větší.",
gte: "Tato hodnota musí být větší nebo rovna.",
lt: "Tato hodnota musí být menší.",
lte: "Tato hodnota musí být menší nebo rovna."
});
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.cs = jQuery.extend(window.ParsleyConfig.i18n.cs || {}, {
defaultMessage: "Tato položka je neplatná.",
type: {
email: "Tato položka musí být e-mailová adresa.",
url: "Tato položka musí být platná URL adresa.",
number: "Tato položka musí být číslo.",
integer: "Tato položka musí být celé číslo.",
digits: "Tato položka musí být kladné celé číslo.",
alphanum: "Tato položka musí být alfanumerická."
},
notblank: "Tato položka nesmí být prázdná.",
required: "Tato položka je povinná.",
pattern: "Tato položka je neplatná.",
min: "Tato položka musí být větší nebo rovna %s.",
max: "Tato položka musí být menší nebo rovna %s.",
range: "Tato položka musí být v rozsahu od %s do %s.",
minlength: "Tato položka musí mít nejméně %s znaků.",
maxlength: "Tato položka musí mít nejvíce %s znaků.",
length: "Tato položka musí mít délku od %s do %s znaků.",
mincheck: "Je nutné vybrat alespoň %s možností.",
maxcheck: "Je nutné vybrat nejvýše %s možností.",
check: "Je nutné vybrat od %s do %s možností.",
equalto: "Tato položka musí být stejná."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('cs', window.ParsleyConfig.i18n.cs, true);
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.da = jQuery.extend(window.ParsleyConfig.i18n.da || {}, {
defaultMessage: "Indtast venligst en korrekt værdi.",
type: {
email: "Indtast venligst en korrekt emailadresse.",
url: "Indtast venligst en korrekt internetadresse.",
number: "Indtast venligst et tal.",
integer: "Indtast venligst et heltal.",
digits: "Dette felt må kun bestå af tal.",
alphanum: "Dette felt skal indeholde både tal og bogstaver."
},
notblank: "Dette felt må ikke være tomt.",
required: "Dette felt er påkrævet.",
pattern: "Ugyldig indtastning.",
min: "Dette felt skal indeholde et tal som er større end eller lig med %s.",
max: "Dette felt skal indeholde et tal som er mindre end eller lig med %s.",
range: "Dette felt skal indeholde et tal mellem %s og %s.",
minlength: "Indtast venligst mindst %s tegn.",
maxlength: "Dette felt kan højst indeholde %s tegn.",
length: "Længden af denne værdi er ikke korrekt. Værdien skal være mellem %s og %s tegn lang.",
mincheck: "Vælg mindst %s muligheder.",
maxcheck: "Vælg op til %s muligheder.",
check: "Vælg mellem %s og %s muligheder.",
equalto: "De to felter er ikke ens."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('da', window.ParsleyConfig.i18n.da, true);
}));

View File

@ -0,0 +1,36 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
window.ParsleyConfig.i18n.de = jQuery.extend(window.ParsleyConfig.i18n.de || {}, {
dateiso: "Die Eingabe muss ein gültiges Datum sein (YYYY-MM-DD).",
minwords: "Die Eingabe ist zu kurz. Sie muss aus %s oder mehr Wörtern bestehen.",
maxwords: "Die Eingabe ist zu lang. Sie muss aus %s oder weniger Wörtern bestehen.",
words: "Die Länge der Eingabe ist ungültig. Sie muss zwischen %s und %s Wörter enthalten.",
gt: "Die Eingabe muss größer sein.",
gte: "Die Eingabe muss größer oder gleich sein.",
lt: "Die Eingabe muss kleiner sein.",
lte: "Die Eingabe muss kleiner oder gleich sein."
});
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.de = jQuery.extend(window.ParsleyConfig.i18n.de || {}, {
defaultMessage: "Die Eingabe scheint nicht korrekt zu sein.",
type: {
email: "Die Eingabe muss eine gültige E-Mail-Adresse sein.",
url: "Die Eingabe muss eine gültige URL sein.",
number: "Die Eingabe muss eine Zahl sein.",
integer: "Die Eingabe muss eine Zahl sein.",
digits: "Die Eingabe darf nur Ziffern enthalten.",
alphanum: "Die Eingabe muss alphanumerisch sein."
},
notblank: "Die Eingabe darf nicht leer sein.",
required: "Dies ist ein Pflichtfeld.",
pattern: "Die Eingabe scheint ungültig zu sein.",
min: "Die Eingabe muss größer oder gleich %s sein.",
max: "Die Eingabe muss kleiner oder gleich %s sein.",
range: "Die Eingabe muss zwischen %s und %s liegen.",
minlength: "Die Eingabe ist zu kurz. Es müssen mindestens %s Zeichen eingegeben werden.",
maxlength: "Die Eingabe ist zu lang. Es dürfen höchstens %s Zeichen eingegeben werden.",
length: "Die Länge der Eingabe ist ungültig. Es müssen zwischen %s und %s Zeichen eingegeben werden.",
mincheck: "Wählen Sie mindestens %s Angaben aus.",
maxcheck: "Wählen Sie maximal %s Angaben aus.",
check: "Wählen Sie zwischen %s und %s Angaben.",
equalto: "Dieses Feld muss dem anderen entsprechen."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('de', window.ParsleyConfig.i18n.de, true);
}));

View File

@ -0,0 +1,37 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
window.ParsleyConfig.i18n.el = jQuery.extend(window.ParsleyConfig.i18n.el || {}, {
dateiso: "Η τιμή πρέπει να είναι μια έγκυρη ημερομηνία (YYYY-MM-DD).",
minwords: "Το κείμενο είναι πολύ μικρό. Πρέπει να έχει %s ή και περισσότερες λέξεις.",
maxwords: "Το κείμενο είναι πολύ μεγάλο. Πρέπει να έχει %s ή και λιγότερες λέξεις.",
words: "Το μήκος του κειμένου είναι μη έγκυρο. Πρέπει να είναι μεταξύ %s και %s λεξεων.",
gt: "Η τιμή πρέπει να είναι μεγαλύτερη.",
gte: "Η τιμή πρέπει να είναι μεγαλύτερη ή ίση.",
lt: "Η τιμή πρέπει να είναι μικρότερη.",
lte: "Η τιμή πρέπει να είναι μικρότερη ή ίση.",
notequalto: "Η τιμή πρέπει να είναι διαφορετική."
});
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.el = jQuery.extend(window.ParsleyConfig.i18n.el || {}, {
defaultMessage: "Η τιμή φαίνεται να είναι μη έγκυρη.",
type: {
email: "Η τιμή πρέπει να είναι ένα έγκυρο email.",
url: "Η τιμή πρέπει να είναι ένα έγκυρο url.",
number: "Η τιμή πρέπει να είναι ένας έγκυρος αριθμός.",
integer: "Η τιμή πρέπει να είναι ένας έγκυρος ακέραιος.",
digits: "Η τιμή πρέπει να είναι ψηφία.",
alphanum: "Η τιμή πρέπει να είναι αλφαριθμητικό."
},
notblank: "Η τιμή δεν πρέπει να είναι κενή.",
required: "Η τιμή αυτή απαιτείται.",
pattern: "Η τιμή φαίνεται να είναι μη έγκυρη.",
min: "Η τιμή πρέπει να είναι μεγαλύτερη ή ίση με %s.",
max: "Η τιμή πρέπει να είναι μικρότερη ή ίση με %s.",
range: "Η τιμή πρέπει να είναι μεταξύ %s και %s.",
minlength: "Το κείμενο είναι πολύ μικρό. Πρέπει να είναι %s ή και περισσότεροι χαρακτήρες.",
maxlength: "Η κείμενο είναι πολύ μεγάλο. Πρέπει να είναι %s ή και λιγότεροι χαρακτήρες.",
length: "Το μήκος του κειμένου είναι μη έγκυρο. Πρέπει να είναι μεταξύ %s και %s χαρακτήρων.",
mincheck: "Πρέπει να επιλέξετε τουλάχιστον %s επιλογές.",
maxcheck: "Πρέπει να επιλέξετε %s ή λιγότερες επιλογές.",
check: "Πρέπει να επιλέξετε μεταξύ %s και %s επίλογων.",
equalto: "Η τιμή πρέπει να είναι η ίδια."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('el', window.ParsleyConfig.i18n.el, true);
}));

View File

@ -0,0 +1,37 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
window.ParsleyConfig.i18n.en = jQuery.extend(window.ParsleyConfig.i18n.en || {}, {
dateiso: "This value should be a valid date (YYYY-MM-DD).",
minwords: "This value is too short. It should have %s words or more.",
maxwords: "This value is too long. It should have %s words or fewer.",
words: "This value length is invalid. It should be between %s and %s words long.",
gt: "This value should be greater.",
gte: "This value should be greater or equal.",
lt: "This value should be less.",
lte: "This value should be less or equal.",
notequalto: "This value should be different."
});
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.en = jQuery.extend(window.ParsleyConfig.i18n.en || {}, {
defaultMessage: "This value seems to be invalid.",
type: {
email: "This value should be a valid email.",
url: "This value should be a valid url.",
number: "This value should be a valid number.",
integer: "This value should be a valid integer.",
digits: "This value should be digits.",
alphanum: "This value should be alphanumeric."
},
notblank: "This value should not be blank.",
required: "This value is required.",
pattern: "This value seems to be invalid.",
min: "This value should be greater than or equal to %s.",
max: "This value should be lower than or equal to %s.",
range: "This value should be between %s and %s.",
minlength: "This value is too short. It should have %s characters or more.",
maxlength: "This value is too long. It should have %s characters or fewer.",
length: "This value length is invalid. It should be between %s and %s characters long.",
mincheck: "You must select at least %s choices.",
maxcheck: "You must select %s choices or fewer.",
check: "You must select between %s and %s choices.",
equalto: "This value should be the same."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('en', window.ParsleyConfig.i18n.en, true);
}));

View File

@ -0,0 +1,54 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
window.ParsleyConfig.i18n.es = jQuery.extend(window.ParsleyConfig.i18n.es || {}, {
defaultMessage: "Este valor parece ser inválido.",
type: {
email: "Este valor debe ser un correo válido.",
url: "Este valor debe ser una URL válida.",
number: "Este valor debe ser un número válido.",
integer: "Este valor debe ser un número válido.",
digits: "Este valor debe ser un dígito válido.",
alphanum: "Este valor debe ser alfanumérico."
},
notblank: "Este valor no debe estar en blanco.",
required: "Este valor es requerido.",
pattern: "Este valor es incorrecto.",
min: "Este valor no debe ser menor que %s.",
max: "Este valor no debe ser mayor que %s.",
range: "Este valor debe estar entre %s y %s.",
minlength: "Este valor es muy corto. La longitud mínima es de %s caracteres.",
maxlength: "Este valor es muy largo. La longitud máxima es de %s caracteres.",
length: "La longitud de este valor debe estar entre %s y %s caracteres.",
mincheck: "Debe seleccionar al menos %s opciones.",
maxcheck: "Debe seleccionar %s opciones o menos.",
check: "Debe seleccionar entre %s y %s opciones.",
equalto: "Este valor debe ser idéntico."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('es', window.ParsleyConfig.i18n.es, true);
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.fa = jQuery.extend(window.ParsleyConfig.i18n.fa || {}, {
defaultMessage: "این مقدار صحیح نمی باشد",
type: {
email: "این مقدار باید یک ایمیل معتبر باشد",
url: "این مقدار باید یک آدرس معتبر باشد",
number: "این مقدار باید یک عدد معتبر باشد",
integer: "این مقدار باید یک عدد صحیح معتبر باشد",
digits: "این مقدار باید یک عدد باشد",
alphanum: "این مقدار باید حروف الفبا باشد"
},
notblank: "این مقدار نباید خالی باشد",
required: "این مقدار باید وارد شود",
pattern: "این مقدار به نظر می رسد نامعتبر است",
min: "این مقدیر باید بزرگتر با مساوی %s باشد",
max: "این مقدار باید کمتر و یا مساوی %s باشد",
range: "این مقدار باید بین %s و %s باشد",
minlength: "این مقدار بیش از حد کوتاه است. باید %s کاراکتر یا بیشتر باشد.",
maxlength: "این مقدار بیش از حد طولانی است. باید %s کاراکتر یا کمتر باشد.",
length: "این مقدار نامعتبر است و باید بین %s و %s باشد",
mincheck: "شما حداقل باید %s گزینه را انتخاب کنید.",
maxcheck: "شما حداکثر می‌توانید %s انتخاب داشته باشید.",
check: "باید بین %s و %s مورد انتخاب کنید",
equalto: "این مقدار باید یکسان باشد"
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('fa', window.ParsleyConfig.i18n.fa, true);
}));

View File

@ -0,0 +1,29 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
window.ParsleyConfig.i18n.fi = jQuery.extend(window.ParsleyConfig.i18n.fi || {}, {
dateiso: "Sy&ouml;t&auml; oikea p&auml;iv&auml;m&auml;&auml;r&auml; (YYYY-MM-DD)."
});
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.fi = jQuery.extend(window.ParsleyConfig.i18n.fi || {}, {
defaultMessage: "Sy&ouml;tetty arvo on virheellinen.",
type: {
email: "S&auml;hk&ouml;postiosoite on virheellinen.",
url: "Url-osoite on virheellinen.",
number: "Sy&ouml;t&auml; numero.",
integer: "Sy&ouml;t&auml; kokonaisluku.",
digits: "Sy&ouml;t&auml; ainoastaan numeroita.",
alphanum: "Sy&ouml;t&auml; ainoastaan kirjaimia tai numeroita."
},
notblank: "T&auml;m&auml; kentt&auml;&auml; ei voi j&auml;tt&auml;&auml; tyhj&auml;ksi.",
required: "T&auml;m&auml; kentt&auml; on pakollinen.",
pattern: "Sy&ouml;tetty arvo on virheellinen.",
min: "Sy&ouml;t&auml; arvo joka on yht&auml; suuri tai suurempi kuin %s.",
max: "Sy&ouml;t&auml; arvo joka on pienempi tai yht&auml; suuri kuin %s.",
range: "Sy&ouml;t&auml; arvo v&auml;lilt&auml;: %s-%s.",
minlength: "Sy&ouml;tetyn arvon t&auml;ytyy olla v&auml;hint&auml;&auml;n %s merkki&auml; pitk&auml;.",
maxlength: "Sy&ouml;tetty arvo saa olla enint&auml;&auml;n %s merkki&auml; pitk&auml;.",
length: "Sy&ouml;tetyn arvon t&auml;ytyy olla v&auml;hint&auml;&auml;n %s ja enint&auml;&auml;n %s merkki&auml; pitk&auml;.",
mincheck: "Valitse v&auml;hint&auml;&auml;n %s vaihtoehtoa.",
maxcheck: "Valitse enint&auml;&auml;n %s vaihtoehtoa.",
check: "Valitse %s-%s vaihtoehtoa.",
equalto: "Salasanat eiv&auml;t t&auml;sm&auml;&auml;."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('fi', window.ParsleyConfig.i18n.fi, true);
}));

View File

@ -0,0 +1,30 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
window.ParsleyConfig.i18n.fr = jQuery.extend(window.ParsleyConfig.i18n.fr || {}, {
dateiso: "Cette valeur n'est pas une date valide (YYYY-MM-DD).",
notequalto: "Cette valeur doit être différente."
});
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.fr = jQuery.extend(window.ParsleyConfig.i18n.fr || {}, {
defaultMessage: "Cette valeur semble non valide.",
type: {
email: "Cette valeur n'est pas une adresse email valide.",
url: "Cette valeur n'est pas une URL valide.",
number: "Cette valeur doit être un nombre.",
integer: "Cette valeur doit être un entier.",
digits: "Cette valeur doit être numérique.",
alphanum: "Cette valeur doit être alphanumérique."
},
notblank: "Cette valeur ne peut pas être vide.",
required: "Ce champ est requis.",
pattern: "Cette valeur semble non valide.",
min: "Cette valeur ne doit pas être inférieure à %s.",
max: "Cette valeur ne doit pas excéder %s.",
range: "Cette valeur doit être comprise entre %s et %s.",
minlength: "Cette chaîne est trop courte. Elle doit avoir au minimum %s caractères.",
maxlength: "Cette chaîne est trop longue. Elle doit avoir au maximum %s caractères.",
length: "Cette valeur doit contenir entre %s et %s caractères.",
mincheck: "Vous devez sélectionner au moins %s choix.",
maxcheck: "Vous devez sélectionner %s choix maximum.",
check: "Vous devez sélectionner entre %s et %s choix.",
equalto: "Cette valeur devrait être identique."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('fr', window.ParsleyConfig.i18n.fr, true);
}));

View File

@ -0,0 +1,29 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
window.ParsleyConfig.i18n.he = jQuery.extend(window.ParsleyConfig.i18n.he || {}, {
dateiso: "ערך זה צריך להיות תאריך בפורמט (YYYY-MM-DD)."
});
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.he = jQuery.extend(window.ParsleyConfig.i18n.he || {}, {
defaultMessage: "נראה כי ערך זה אינו תקף.",
type: {
email: "ערך זה צריך להיות כתובת אימייל.",
url: "ערך זה צריך להיות URL תקף.",
number: "ערך זה צריך להיות מספר.",
integer: "ערך זה צריך להיות מספר שלם.",
digits: "ערך זה צריך להיות ספרתי.",
alphanum: "ערך זה צריך להיות אלפאנומרי."
},
notblank: "ערך זה אינו יכול להשאר ריק.",
required: "ערך זה דרוש.",
pattern: "נראה כי ערך זה אינו תקף.",
min: "ערך זה צריך להיות לכל הפחות %s.",
max: "ערך זה צריך להיות לכל היותר %s.",
range: "ערך זה צריך להיות בין %s ל-%s.",
minlength: "ערך זה קצר מידי. הוא צריך להיות לכל הפחות %s תווים.",
maxlength: "ערך זה ארוך מידי. הוא צריך להיות לכל היותר %s תווים.",
length: "ערך זה אינו באורך תקף. האורך צריך להיות בין %s ל-%s תווים.",
mincheck: "אנא בחר לפחות %s אפשרויות.",
maxcheck: "אנא בחר לכל היותר %s אפשרויות.",
check: "אנא בחר בין %s ל-%s אפשרויות.",
equalto: "ערך זה צריך להיות זהה."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('he', window.ParsleyConfig.i18n.he, true);
}));

View File

@ -0,0 +1,29 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
window.ParsleyConfig.i18n.id = jQuery.extend(window.ParsleyConfig.i18n.id || {}, {
dateiso: "Harus tanggal yang valid (YYYY-MM-DD)."
});
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.id = jQuery.extend(window.ParsleyConfig.i18n.id || {}, {
defaultMessage: "tidak valid",
type: {
email: "email tidak valid",
url: "url tidak valid",
number: "nomor tidak valid",
integer: "integer tidak valid",
digits: "harus berupa digit",
alphanum: "harus berupa alphanumeric"
},
notblank: "tidak boleh kosong",
required: "tidak boleh kosong",
pattern: "tidak valid",
min: "harus lebih besar atau sama dengan %s.",
max: "harus lebih kecil atau sama dengan %s.",
range: "harus dalam rentang %s dan %s.",
minlength: "terlalu pendek, minimal %s karakter atau lebih.",
maxlength: "terlalu panjang, maksimal %s karakter atau kurang.",
length: "panjang karakter harus dalam rentang %s dan %s",
mincheck: "pilih minimal %s pilihan",
maxcheck: "pilih maksimal %s pilihan",
check: "pilih antar %s dan %s pilihan",
equalto: "harus sama"
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('id', window.ParsleyConfig.i18n.id, true);
}));

View File

@ -0,0 +1,29 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
window.ParsleyConfig.i18n.it = jQuery.extend(window.ParsleyConfig.i18n.it || {}, {
dateiso: "Inserire una data valida (AAAA-MM-GG)."
});
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.it = jQuery.extend(window.ParsleyConfig.i18n.it || {}, {
defaultMessage: "Questo valore sembra essere non valido.",
type: {
email: "Questo valore deve essere un indirizzo email valido.",
url: "Questo valore deve essere un URL valido.",
number: "Questo valore deve essere un numero valido.",
integer: "Questo valore deve essere un numero valido.",
digits: "Questo valore deve essere di tipo numerico.",
alphanum: "Questo valore deve essere di tipo alfanumerico."
},
notblank: "Questo valore non deve essere vuoto.",
required: "Questo valore è richiesto.",
pattern: "Questo valore non è corretto.",
min: "Questo valore deve essere maggiore di %s.",
max: "Questo valore deve essere minore di %s.",
range: "Questo valore deve essere compreso tra %s e %s.",
minlength: "Questo valore è troppo corto. La lunghezza minima è di %s caratteri.",
maxlength: "Questo valore è troppo lungo. La lunghezza massima è di %s caratteri.",
length: "La lunghezza di questo valore deve essere compresa fra %s e %s caratteri.",
mincheck: "Devi scegliere almeno %s opzioni.",
maxcheck: "Devi scegliere al più %s opzioni.",
check: "Devi scegliere tra %s e %s opzioni.",
equalto: "Questo valore deve essere identico."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('it', window.ParsleyConfig.i18n.it, true);
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.ja = jQuery.extend(window.ParsleyConfig.i18n.ja || {}, {
defaultMessage: "無効な値です。",
type: {
email: "正しいメールアドレスを入力してください。",
url: "正しいURLを入力してください。",
number: "正しい数字を入力してください。",
integer: "正しい数値を入力してください。",
digits: "正しい桁数で入力してください。",
alphanum: "正しい英数字を入力してください。"
},
notblank: "この値を入力してください",
required: "この値は必須です。",
pattern: "この値は無効です。",
min: "%s 以上の値にしてください。",
max: "%s 以下の値にしてください。",
range: "%s から %s の値にしてください。",
minlength: "%s 文字以上で入力してください。",
maxlength: "%s 文字以下で入力してください。",
length: "%s から %s 文字の間で入力してください。",
mincheck: "%s 個以上選択してください。",
maxcheck: "%s 個以下選択してください。",
check: "%s から %s 個選択してください。",
equalto: "値が違います。"
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('ja', window.ParsleyConfig.i18n.ja, true);
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.ko = jQuery.extend(window.ParsleyConfig.i18n.ko || {}, {
defaultMessage: "입력하신 내용이 올바르지 않습니다.",
type: {
email: "입력하신 이메일이 유효하지 않습니다.",
url: "입력하신 URL이 유효하지 않습니다.",
number: "입력하신 전화번호가 올바르지 않습니다.",
integer: "입력하신 URL이 유효하지 않습니다.",
digits: "숫자를 입력하여 주십시오.",
alphanum: "입력하신 내용은 알파벳과 숫자의 조합이어야 합니다."
},
notblank: "공백은 입력하실 수 없습니다.",
required: "필수 입력사항입니다.",
pattern: "입력하신 내용이 올바르지 않습니다.",
min: "입력하신 내용이 %s보다 크거나 같아야 합니다. ",
max: "입력하신 내용이 %s보다 작거나 같아야 합니다.",
range: "입력하신 내용이 %s보다 크고 %s 보다 작아야 합니다.",
minlength: "%s 이상의 글자수를 입력하십시오. ",
maxlength: "%s 이하의 글자수를 입력하십시오. ",
length: "입력하신 내용의 글자수가 %s보다 크고 %s보다 작아야 합니다.",
mincheck: "최소한 %s개를 선택하여 주십시오. ",
maxcheck: "%s개 또는 그보다 적게 선택하여 주십시오.",
check: "선택하신 내용이 %s보다 크거나 %s보다 작아야 합니다.",
equalto: "같은 값을 입력하여 주십시오."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('ko', window.ParsleyConfig.i18n.ko, true);
}));

View File

@ -0,0 +1,36 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
window.ParsleyConfig.i18n.ms_MY = jQuery.extend(window.ParsleyConfig.i18n.ms_MY || {}, {
dateiso: "Nilai hendaklah berbentuk tarikh yang sah (YYYY-MM-DD).",
minwords: "Ayat terlalu pendek. Ianya perlu sekurang-kurangnya %s patah perkataan.",
maxwords: "Ayat terlalu panjang. Ianya tidak boleh melebihi %s patah perkataan.",
words: "Panjang ayat tidak sah. Jumlah perkataan adalah diantara %s hingga %s patah perkataan.",
gt: "Nilai lebih besar diperlukan.",
gte: "Nilai hendaklah lebih besar atau sama.",
lt: "Nilai lebih kecil diperlukan.",
lte: "Nilai hendaklah lebih kecil atau sama."
});
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.ms_MY = jQuery.extend(window.ParsleyConfig.i18n.ms_MY || {}, {
defaultMessage: "Nilai tidak sah.",
type: {
email: "Nilai mestilah dalam format emel yang sah.",
url: "Nilai mestilah dalam bentuk url yang sah.",
number: "Hanya nombor dibenarkan.",
integer: "Hanya integer dibenarkan.",
digits: "Hanya angka dibenarkan.",
alphanum: "Hanya alfanumerik dibenarkan."
},
notblank: "Nilai ini tidak boleh kosong.",
required: "Nilai ini wajib diisi.",
pattern: "Bentuk nilai ini tidak sah.",
min: "Nilai perlu lebih besar atau sama dengan %s.",
max: "Nilai perlu lebih kecil atau sama dengan %s.",
range: "Nilai perlu berada antara %s hingga %s.",
minlength: "Nilai terlalu pendek. Ianya perlu sekurang-kurangnya %s huruf.",
maxlength: "Nilai terlalu panjang. Ianya tidak boleh melebihi %s huruf.",
length: "Panjang nilai tidak sah. Panjangnya perlu diantara %s hingga %s huruf.",
mincheck: "Anda mesti memilih sekurang-kurangnya %s pilihan.",
maxcheck: "Anda tidak boleh memilih lebih daripada %s pilihan.",
check: "Anda mesti memilih diantara %s hingga %s pilihan.",
equalto: "Nilai dimasukkan hendaklah sama."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('ms_MY', window.ParsleyConfig.i18n.ms_MY, true);
}));

View File

@ -0,0 +1,34 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
window.ParsleyConfig.i18n.nl = jQuery.extend(window.ParsleyConfig.i18n.nl || {}, {
dateiso: "Deze waarde moet een datum in het volgende formaat zijn: (YYYY-MM-DD).",
minwords: "Deze waarde moet minstens %s woorden bevatten.",
maxwords: "Deze waarde mag maximaal %s woorden bevatten.",
words: "Deze waarde moet tussen de %s en %s woorden bevatten.",
gt: "Deze waarde moet groter dan %s zijn.",
lt: "Deze waarde moet kleiner dan %s zijn."
});
}));

View File

@ -0,0 +1,52 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.nl = jQuery.extend(window.ParsleyConfig.i18n.nl || {}, {
defaultMessage: "Deze waarde lijkt onjuist.",
type: {
email: "Dit lijkt geen geldig e-mail adres te zijn.",
url: "Dit lijkt geen geldige URL te zijn.",
number: "Deze waarde moet een nummer zijn.",
integer: "Deze waarde moet een nummer zijn.",
digits: "Deze waarde moet numeriek zijn.",
alphanum: "Deze waarde moet alfanumeriek zijn."
},
notblank: "Deze waarde mag niet leeg zijn.",
required: "Dit veld is verplicht.",
pattern: "Deze waarde lijkt onjuist te zijn.",
min: "Deze waarde mag niet lager zijn dan %s.",
max: "Deze waarde mag niet groter zijn dan %s.",
range: "Deze waarde moet tussen %s en %s liggen.",
minlength: "Deze tekst is te kort. Deze moet uit minimaal %s karakters bestaan.",
maxlength: "Deze waarde is te lang. Deze mag maximaal %s karakters lang zijn.",
length: "Deze waarde moet tussen %s en %s karakters lang zijn.",
equalto: "Deze waardes moeten identiek zijn."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('nl', window.ParsleyConfig.i18n.nl, true);
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.no = jQuery.extend(window.ParsleyConfig.i18n.no || {}, {
defaultMessage: "Verdien er ugyldig.",
type: {
email: "Verdien må være en gyldig e-post.",
url: "Verdien må være en gyldig url.",
number: "Verdien må være et gyldig tall.",
integer: "Verdien må være et gyldig heltall.",
digits: "Verdien må være et siffer",
alphanum: "Verdien må være alfanumerisk"
},
notblank: "Verdien må ikke være blank.",
required: "Verdien er obligatorisk.",
pattern: "Verdien er ugyldig.",
min: "Verdien må være større eller lik %s.",
max: "Verdien må være mindre eller lik %s.",
range: "Verdien må være mellom %s and %s.",
minlength: "Verdien er for kort. Den burde bestå av minst %s tegn.",
maxlength: "Verdien er for lang. Den kan bestå av maksimalt %s tegn.",
length: "Verdilengden er ugyldig. Den må være mellom %s og %s tegn lang.",
mincheck: "Du må huke av minst %s valg.",
maxcheck: "Du må huke av %s valg eller mindre.",
check: "Du må huke av mellom %s og %s valg.",
equalto: "Verdien må være lik."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('no', window.ParsleyConfig.i18n.no, true);
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.pl = jQuery.extend(window.ParsleyConfig.i18n.pl || {}, {
defaultMessage: "Wartość wygląda na nieprawidłową",
type: {
email: "Wpisz poprawny adres e-mail.",
url: "Wpisz poprawny adres URL.",
number: "Wpisz poprawną liczbę.",
integer: "Dozwolone jedynie liczby człkowite.",
digits: "Dozwolone jedynie cyfry.",
alphanum: "Dozwolone jedynie znaki alfanumeryczne."
},
notblank: "Pole nie może zostać puste",
required: "Pole jest wymagane.",
pattern: "Wartość wygląda na nieprawidłową.",
min: "Wartość powinna być większa od %s.",
max: "Wartość powinna być mniejsza od %s.",
range: "Wartość powinna być większa od %s i mniejsza od %s.",
minlength: "Ilość znaków powinna wynosić %s lub więcej.",
maxlength: "Ilość znaków powinna wynosić %s lub mniej.",
length: "Ilość znaków powinna wynosić od %s do %s.",
mincheck: "Musisz wybrać minimum %s opcji.",
maxcheck: "Możesz wybrać maksymalnie %s opcji.",
check: "Minimalnie możesz wybrać od %s do %s opcji",
equalto: "Wartości nie są identyczne"
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('pl', window.ParsleyConfig.i18n.pl, true);
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n['pt-br'] = jQuery.extend(window.ParsleyConfig.i18n['pt-br'] || {}, {
defaultMessage: "Este valor parece ser inválido.",
type: {
email: "Este campo deve ser um email válido.",
url: "Este campo deve ser um URL válida.",
number: "Este campo deve ser um número válido.",
integer: "Este campo deve ser um inteiro válido.",
digits: "Este campo deve conter apenas dígitos.",
alphanum: "Este campo deve ser alfa numérico."
},
notblank: "Este campo não pode ficar vazio.",
required: "Este campo é obrigatório.",
pattern: "Este campo parece estar inválido.",
min: "Este campo deve ser maior ou igual a %s.",
max: "Este campo deve ser menor ou igual a %s.",
range: "Este campo deve estar entre %s e %s.",
minlength: "Este campo é pequeno demais. Ele deveria ter %s caracteres ou mais.",
maxlength: "Este campo é grande demais. Ele deveria ter %s caracteres ou menos.",
length: "O tamanho deste campo é inválido. Ele deveria ter entre %s e %s caracteres.",
mincheck: "Você deve escolher pelo menos %s opções.",
maxcheck: "Você deve escolher %s opções ou mais",
check: "Você deve escolher entre %s e %s opções.",
equalto: "Este valor deveria ser igual."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('pt-br', window.ParsleyConfig.i18n['pt-br'], true);
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n['pt-pt'] = jQuery.extend(window.ParsleyConfig.i18n['pt-pt'] || {}, {
defaultMessage: "Este valor parece ser inválido.",
type: {
email: "Este campo deve ser um email válido.",
url: "Este campo deve ser um URL válido.",
number: "Este campo deve ser um número válido.",
integer: "Este campo deve ser um número inteiro válido.",
digits: "Este campo deve conter apenas dígitos.",
alphanum: "Este campo deve ser alfanumérico."
},
notblank: "Este campo não pode ficar vazio.",
required: "Este campo é obrigatório.",
pattern: "Este campo parece estar inválido.",
min: "Este valor deve ser maior ou igual a %s.",
max: "Este valor deve ser menor ou igual a %s.",
range: "Este valor deve estar entre %s e %s.",
minlength: "Este campo é pequeno demais. Deve ter %s caracteres ou mais.",
maxlength: "Este campo é grande demais. Deve ter %s caracteres ou menos.",
length: "O tamanho deste campo é inválido. Ele deveria ter entre %s e %s caracteres.",
mincheck: "Escolha pelo menos %s opções.",
maxcheck: "Escolha %s opções ou mais",
check: "Escolha entre %s e %s opções.",
equalto: "Este valor deveria ser igual."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('pt-pt', window.ParsleyConfig.i18n['pt-pt'], true);
}));

View File

@ -0,0 +1,37 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
window.ParsleyConfig.i18n.ro = jQuery.extend(window.ParsleyConfig.i18n.ro || {}, {
dateiso: "Trebuie să fie o dată corectă (YYYY-MM-DD).",
minwords: "Textul e prea scurt. Trebuie să aibă cel puțin %s cuvinte.",
maxwords: "Textul e prea lung. Trebuie să aibă cel mult %s cuvinte.",
words: "Textul trebuie să aibă cel puțin %s și cel mult %s caractere.",
gt: "Valoarea ar trebui să fie mai mare.",
gte: "Valoarea ar trebui să fie mai mare sau egală.",
lt: "Valoarea ar trebui să fie mai mică.",
lte: "Valoarea ar trebui să fie mai mică sau egală.",
notequalto:"Valoarea ar trebui să fie diferită."
});
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.ro = jQuery.extend(window.ParsleyConfig.i18n.ro || {}, {
defaultMessage: "Acest câmp nu este completat corect.",
type: {
email: "Trebuie să scrii un email valid.",
url: "Trebuie să scrii un link valid",
number: "Trebuie să scrii un număr valid",
integer: "Trebuie să scrii un număr întreg valid",
digits: "Trebuie să conțină doar cifre.",
alphanum: "Trebuie să conțină doar cifre sau litere."
},
notblank: "Acest câmp nu poate fi lăsat gol.",
required: "Acest câmp trebuie să fie completat.",
pattern: "Acest câmp nu este completat corect.",
min: "Trebuie să fie ceva mai mare sau egal cu %s.",
max: "Trebuie să fie ceva mai mic sau egal cu %s.",
range: "Valoarea trebuie să fie între %s și %s.",
minlength: "Trebuie să scrii cel puțin %s caractere.",
maxlength: "Trebuie să scrii cel mult %s caractere.",
length: "Trebuie să scrii cel puțin %s și %s cel mult %s caractere.",
mincheck: "Trebuie să alegi cel puțin %s opțiuni.",
maxcheck: "Poți alege maxim %s opțiuni.",
check: "Trebuie să alegi între %s sau %s.",
equalto: "Trebuie să fie la fel."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('ro', window.ParsleyConfig.i18n.ro, true);
}));

View File

@ -0,0 +1,32 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
window.ParsleyConfig.i18n.ru = jQuery.extend(window.ParsleyConfig.i18n.ru || {}, {
dateiso: "Это значение должно быть корректной датой (ГГГГ-ММ-ДД).",
minwords: "Это значение должно содержать не менее %s слов.",
maxwords: "Это значение должно содержать не более %s слов.",
words: "Это значение должно содержать от %s до %s слов."
});
}));

View File

@ -0,0 +1,59 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
//Parsley localization for Russian language
//Evgeni Makarov
//github.com/emakarov
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.ru = jQuery.extend(window.ParsleyConfig.i18n.ru || {}, {
defaultMessage: "Некорректное значение.",
type: {
email: "Введите адрес электронной почты.",
url: "Введите URL адрес.",
number: "Введите число.",
integer: "Введите целое число.",
digits: "Введите только цифры.",
alphanum: "Введите буквенно-цифровое значение."
},
notblank: "Это поле должно быть заполнено.",
required: "Обязательное поле.",
pattern: "Это значение некорректно.",
min: "Это значение должно быть не менее чем %s.",
max: "Это значение должно быть не более чем %s.",
range: "Это значение должно быть от %s до %s.",
minlength: "Это значение должно содержать не менее %s символов.",
maxlength: "Это значение должно содержать не более %s символов.",
length: "Это значение должно содержать от %s до %s символов.",
mincheck: "Выберите не менее %s значений.",
maxcheck: "Выберите не более %s значений.",
check: "Выберите от %s до %s значений.",
equalto: "Это значение должно совпадать."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('ru', window.ParsleyConfig.i18n.ru, true);
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.sq = jQuery.extend(window.ParsleyConfig.i18n.sq || {}, {
defaultMessage: "Kjo vlere eshte e pasakte.",
type: {
email: "Duhet te jete nje email i vlefshem.",
url: "Duhet te jete nje URL e vlefshme.",
number: "Duhet te jete numer.",
integer: "Kjo vlere duhet te jete integer.",
digits: "Kjo vlere duhet te permbaje digit.",
alphanum: "Kjo vlere duhet te permbaje vetel alphanumeric."
},
notblank: "Nuk mund te lihet bosh.",
required: "Eshte e detyrueshme.",
pattern: "Kjo vlere eshte e pasakte.",
min: "Duhet te jete me e madhe ose baraz me %s.",
max: "Duhet te jete me e vogel ose baraz me %s.",
range: "Duhet te jete midis %s dhe %s.",
minlength: "Kjo vlere eshte shume e shkurter. Ajo duhet te permbaje min %s karaktere.",
maxlength: "Kjo vlere eshte shume e gjate. Ajo duhet te permbaje max %s karaktere.",
length: "Gjatesia e kesaj vlere eshte e pasakte. Ajo duhet te jete midis %s dhe %s karakteresh.",
mincheck: "Ju duhet te zgjidhni te pakten %s vlere.",
maxcheck: "Ju duhet te zgjidhni max %s vlera.",
check: "Ju mund te zgjidhni midis %s dhe %s vlerash.",
equalto: "Kjo vlere duhet te jete e njejte."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('sq', window.ParsleyConfig.i18n.sq, true);
}));

View File

@ -0,0 +1,29 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
window.ParsleyConfig.i18n.sv = jQuery.extend(window.ParsleyConfig.i18n.sv || {}, {
dateiso: "Ange ett giltigt datum (ÅÅÅÅ-MM-DD)."
});
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.sv = jQuery.extend(window.ParsleyConfig.i18n.sv || {}, {
defaultMessage: "Ogiltigt värde.",
type: {
email: "Ange en giltig e-postadress.",
url: "Ange en giltig URL.",
number: "Ange ett giltigt nummer.",
integer: "Ange ett heltal.",
digits: "Ange endast siffror.",
alphanum: "Ange endast bokstäver och siffror."
},
notblank: "Värdet får inte vara tomt.",
required: "Måste fyllas i.",
pattern: "Värdet är ej giltigt.",
min: "Värdet måste vara större än eller lika med %s.",
max: "Värdet måste vara mindre än eller lika med %s.",
range: "Värdet måste vara mellan %s och %s.",
minlength: "Värdet måste vara minst %s tecken.",
maxlength: "Värdet får maximalt innehålla %s tecken.",
length: "Värdet måste vara mellan %s och %s tecken.",
mincheck: "Minst %s val måste göras.",
maxcheck: "Maximalt %s val får göras.",
check: "Mellan %s och %s val måste göras.",
equalto: "Värdena måste vara lika."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('sv', window.ParsleyConfig.i18n.sv, true);
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.th = jQuery.extend(window.ParsleyConfig.i18n.th || {}, {
defaultMessage: "ค่านี้ดูเหมือนว่าจะไม่ถูกต้อง",
type: {
email: "ค่านี้ควรจะเป็นอีเมลที่ถูกต้อง",
url: "ค่านี้ควรจะเป็น url ที่ถูกต้อง",
number: "ค่านี้ควรจะเป็นตัวเลขที่ถูกต้อง",
integer: "ค่านี้ควรจะเป็นจำนวนเต็มที่ถูกต้อง",
digits: "ค่านี้ควรเป็นทศนิยมที่ถูกต้อง",
alphanum: "ค่านี้ควรเป็นอักขระตัวอักษรหรือตัวเลขที่ถูกต้อง"
},
notblank: "ค่านี้ไม่ควรจะว่าง",
required: "ค่านี้จำเป็น",
pattern: "ค่านี้ดูเหมือนว่าจะไม่ถูกต้อง",
min: "ค่านี้ควรมากกว่าหรือเท่ากับ %s.",
max: "ค่านี้ควรจะน้อยกว่าหรือเท่ากับ %s.",
range: "ค่ายี้ควรจะอยู่ระหว่าง %s และ %s.",
minlength: "ค่านี้สั้นเกินไป ควรจะมี %s อักขระหรือมากกว่า",
maxlength: "ค่านี้ยาวเกินไป ควรจะมี %s อักขระหรือน้อยกว่า",
length: "ความยาวของค่านี้ไม่ถูกต้อง ควรมีความยาวอยู่ระหว่าง %s และ %s อักขระ",
mincheck: "คุณควรเลือกอย่างน้อย %s ตัวเลือก",
maxcheck: "คุณควรเลือก %s ตัวเลือกหรือน้อยกว่า",
check: "คุณควรเลือกระหว่าง %s และ %s ตัวเลือก",
equalto: "ค่านี้ควรจะเหมือนกัน"
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('th', window.ParsleyConfig.i18n.th, true);
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.tr = jQuery.extend(window.ParsleyConfig.i18n.tr || {}, {
defaultMessage: "Girdiğiniz değer geçerli değil.",
type: {
email: "Geçerli bir e-mail adresi yazmanız gerekiyor.",
url: "Geçerli bir bağlantı adresi yazmanız gerekiyor.",
number: "Geçerli bir sayı yazmanız gerekiyor.",
integer: "Geçerli bir tamsayı yazmanız gerekiyor.",
digits: "Geçerli bir rakam yazmanız gerekiyor.",
alphanum: "Geçerli bir alfanümerik değer yazmanız gerekiyor."
},
notblank: "Bu alan boş bırakılamaz.",
required: "Bu alan boş bırakılamaz.",
pattern: "Girdiğiniz değer geçerli değil.",
min: "Bu alan %s değerinden büyük ya da bu değere eşit olmalı.",
max: "Bu alan %s değerinden küçük ya da bu değere eşit olmalı.",
range: "Bu alan %s ve %s değerleri arasında olmalı.",
minlength: "Bu alanın uzunluğu %s karakter veya daha fazla olmalı.",
maxlength: "Bu alanın uzunluğu %s karakter veya daha az olmalı.",
length: "Bu alanın uzunluğu %s ve %s karakter arasında olmalı.",
mincheck: "En az %s adet seçim yapmalısınız.",
maxcheck: "En fazla %s seçim yapabilirsiniz.",
check: "Bu alan için en az %s, en fazla %s seçim yapmalısınız.",
equalto: "Bu alanın değeri aynı olmalı."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('tr', window.ParsleyConfig.i18n.tr, true);
}));

View File

@ -0,0 +1,32 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
window.ParsleyConfig.i18n.uk = jQuery.extend(window.ParsleyConfig.i18n.uk || {}, {
dateiso: "Це значення має бути коректною датою (РРРР-ММ-ДД).",
minwords: "Це значення повинно містити не менше %s слів.",
maxwords: "Це значення повинно містити не більше %s слів.",
words: "Це значення повинно містити від %s до %s слів."
});
}));

View File

@ -0,0 +1,59 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// Parsley localization for Ukrainian language
// Alexander Shepetko
// https://github.com/ashep
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.uk = jQuery.extend(window.ParsleyConfig.i18n.uk || {}, {
defaultMessage: "Некоректне значення.",
type: {
email: "Введіть адресу електронної пошти.",
url: "Введіть URL-адресу.",
number: "Введіть число.",
integer: "Введіть ціле число.",
digits: "Введіть тільки цифри.",
alphanum: "Введіть буквено-цифрове значення."
},
notblank: "Це поле повинно бути заповнено.",
required: "Обов'язкове поле",
pattern: "Це значення некоректно.",
min: "Це значення повинно бути не менше ніж %s.",
max: "Це значення повинно бути не більше ніж %s.",
range: "Це значення повинно бути від %s до %s.",
minlength: "Це значення повинно містити не менше ніж %s символів.",
maxlength: "Це значення повинно містити не більше ніж %s символів.",
length: "Це значення повинно містити від %s до %s символів.",
mincheck: "Виберіть не менше %s значень.",
maxcheck: "Виберіть не більше %s значень.",
check: "Виберіть від %s до %s значень.",
equalto: "Це значення повинно збігатися."
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('uk', window.ParsleyConfig.i18n.uk, true);
}));

View File

@ -0,0 +1,29 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
window.ParsleyConfig.i18n.zh_cn = jQuery.extend(window.ParsleyConfig.i18n.zh_cn || {}, {
dateiso: "请输入正确格式的日期 (YYYY-MM-DD)."
});
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.zh_cn = jQuery.extend(window.ParsleyConfig.i18n.zh_cn || {}, {
defaultMessage: "不正确的值",
type: {
email: "请输入一个有效的电子邮箱地址",
url: "请输入一个有效的链接",
number: "请输入正确的数字",
integer: "请输入正确的整数",
digits: "请输入正确的号码",
alphanum: "请输入字母或数字"
},
notblank: "请输入值",
required: "必填项",
pattern: "格式不正确",
min: "输入值请大于或等于 %s",
max: "输入值请小于或等于 %s",
range: "输入值应该在 %s 到 %s 之间",
minlength: "请输入至少 %s 个字符",
maxlength: "请输入至多 %s 个字符",
length: "字符长度应该在 %s 到 %s 之间",
mincheck: "请至少选择 %s 个选项",
maxcheck: "请选择不超过 %s 个选项",
check: "请选择 %s 到 %s 个选项",
equalto: "输入值不同"
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('zh_cn', window.ParsleyConfig.i18n.zh_cn, true);
}));

View File

@ -0,0 +1,55 @@
/*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc2 - built Tue Oct 06 2015 10:20:13
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
module.exports = factory(require('jquery'));
} else {
// Register plugin with global jQuery object.
factory(jQuery);
}
}(function ($) {
// small hack for requirejs if jquery is loaded through map and not path
// see http://requirejs.org/docs/jquery.html
if ('undefined' === typeof $ && 'undefined' !== typeof window.jQuery)
$ = window.jQuery;
// ParsleyConfig definition if not already set
window.ParsleyConfig = window.ParsleyConfig || {};
window.ParsleyConfig.i18n = window.ParsleyConfig.i18n || {};
// Define then the messages
window.ParsleyConfig.i18n.zh_tw = jQuery.extend(window.ParsleyConfig.i18n.zh_tw || {}, {
defaultMessage: "這個值似乎是無效的。",
type: {
email: "請輸入一個有效的email。",
url: "請輸入一個有效的網址。",
number: "這個值應該是一個數字。",
integer: "這個值應該是一個整數數字。",
digits: "這個值應該是一個號碼。",
alphanum: "這個值應該是字母或數字。"
},
notblank: "這個值不應該為空值。",
required: "這個空格必須填寫。",
pattern: "這個值似乎是無效的。",
min: "輸入的值應該大於或等於 %s",
max: "輸入的值應該小於或等於 %s",
range: "這個值應該在 %s 和 %s 之間。",
minlength: "這個值至少要 %s 字元。",
maxlength: "這個值最多要 %s 字元。",
length: "字元長度應該在 %s 和 %s",
mincheck: "你至少要選擇 %s 個項目。",
maxcheck: "你最多可選擇 %s 個項目。",
check: "你必須選擇 %s 到 %s 個項目。",
equalto: "輸入值不同"
});
// If file is loaded after Parsley main file, auto-load locale
if ('undefined' !== typeof window.ParsleyValidator)
window.ParsleyValidator.addCatalog('zh_tw', window.ParsleyConfig.i18n.zh_tw, true);
}));

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,327 @@
/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */
/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */
window.matchMedia = window.matchMedia || (function(doc, undefined){
var bool,
docElem = doc.documentElement,
refNode = docElem.firstElementChild || docElem.firstChild,
// fakeBody required for <FF4 when executed in <head>
fakeBody = doc.createElement('body'),
div = doc.createElement('div');
div.id = 'mq-test-1';
div.style.cssText = "position:absolute;top:-100em";
fakeBody.style.background = "none";
fakeBody.appendChild(div);
return function(q){
div.innerHTML = '&shy;<style media="'+q+'"> #mq-test-1 { width: 42px; }</style>';
docElem.insertBefore(fakeBody, refNode);
bool = div.offsetWidth == 42;
docElem.removeChild(fakeBody);
return { matches: bool, media: q };
};
})(document);
/*! Respond.js v1.1.0: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */
(function( win ){
//exposed namespace
win.respond = {};
//define update even in native-mq-supporting browsers, to avoid errors
respond.update = function(){};
//expose media query support flag for external use
respond.mediaQueriesSupported = win.matchMedia && win.matchMedia( "only all" ).matches;
//if media queries are supported, exit here
if( respond.mediaQueriesSupported ){ return; }
//define vars
var doc = win.document,
docElem = doc.documentElement,
mediastyles = [],
rules = [],
appendedEls = [],
parsedSheets = {},
resizeThrottle = 30,
head = doc.getElementsByTagName( "head" )[0] || docElem,
base = doc.getElementsByTagName( "base" )[0],
links = head.getElementsByTagName( "link" ),
requestQueue = [],
//loop stylesheets, send text content to translate
ripCSS = function(){
var sheets = links,
sl = sheets.length,
i = 0,
//vars for loop:
sheet, href, media, isCSS;
for( ; i < sl; i++ ){
sheet = sheets[ i ],
href = sheet.href,
media = sheet.media,
isCSS = sheet.rel && sheet.rel.toLowerCase() === "stylesheet";
//only links plz and prevent re-parsing
if( !!href && isCSS && !parsedSheets[ href ] ){
// selectivizr exposes css through the rawCssText expando
if (sheet.styleSheet && sheet.styleSheet.rawCssText) {
translate( sheet.styleSheet.rawCssText, href, media );
parsedSheets[ href ] = true;
} else {
if( (!/^([a-zA-Z:]*\/\/)/.test( href ) && !base)
|| href.replace( RegExp.$1, "" ).split( "/" )[0] === win.location.host ){
requestQueue.push( {
href: href,
media: media
} );
}
}
}
}
makeRequests();
},
//recurse through request queue, get css text
makeRequests = function(){
if( requestQueue.length ){
var thisRequest = requestQueue.shift();
ajax( thisRequest.href, function( styles ){
translate( styles, thisRequest.href, thisRequest.media );
parsedSheets[ thisRequest.href ] = true;
makeRequests();
} );
}
},
//find media blocks in css text, convert to style blocks
translate = function( styles, href, media ){
var qs = styles.match( /@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi ),
ql = qs && qs.length || 0,
//try to get CSS path
href = href.substring( 0, href.lastIndexOf( "/" )),
repUrls = function( css ){
return css.replace( /(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g, "$1" + href + "$2$3" );
},
useMedia = !ql && media,
//vars used in loop
i = 0,
j, fullq, thisq, eachq, eql;
//if path exists, tack on trailing slash
if( href.length ){ href += "/"; }
//if no internal queries exist, but media attr does, use that
//note: this currently lacks support for situations where a media attr is specified on a link AND
//its associated stylesheet has internal CSS media queries.
//In those cases, the media attribute will currently be ignored.
if( useMedia ){
ql = 1;
}
for( ; i < ql; i++ ){
j = 0;
//media attr
if( useMedia ){
fullq = media;
rules.push( repUrls( styles ) );
}
//parse for styles
else{
fullq = qs[ i ].match( /@media *([^\{]+)\{([\S\s]+?)$/ ) && RegExp.$1;
rules.push( RegExp.$2 && repUrls( RegExp.$2 ) );
}
eachq = fullq.split( "," );
eql = eachq.length;
for( ; j < eql; j++ ){
thisq = eachq[ j ];
mediastyles.push( {
media : thisq.split( "(" )[ 0 ].match( /(only\s+)?([a-zA-Z]+)\s?/ ) && RegExp.$2 || "all",
rules : rules.length - 1,
hasquery: thisq.indexOf("(") > -1,
minw : thisq.match( /\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/ ) && parseFloat( RegExp.$1 ) + ( RegExp.$2 || "" ),
maxw : thisq.match( /\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/ ) && parseFloat( RegExp.$1 ) + ( RegExp.$2 || "" )
} );
}
}
applyMedia();
},
lastCall,
resizeDefer,
// returns the value of 1em in pixels
getEmValue = function() {
var ret,
div = doc.createElement('div'),
body = doc.body,
fakeUsed = false;
div.style.cssText = "position:absolute;font-size:1em;width:1em";
if( !body ){
body = fakeUsed = doc.createElement( "body" );
body.style.background = "none";
}
body.appendChild( div );
docElem.insertBefore( body, docElem.firstChild );
ret = div.offsetWidth;
if( fakeUsed ){
docElem.removeChild( body );
}
else {
body.removeChild( div );
}
//also update eminpx before returning
ret = eminpx = parseFloat(ret);
return ret;
},
//cached container for 1em value, populated the first time it's needed
eminpx,
//enable/disable styles
applyMedia = function( fromResize ){
var name = "clientWidth",
docElemProp = docElem[ name ],
currWidth = doc.compatMode === "CSS1Compat" && docElemProp || doc.body[ name ] || docElemProp,
styleBlocks = {},
lastLink = links[ links.length-1 ],
now = (new Date()).getTime();
//throttle resize calls
if( fromResize && lastCall && now - lastCall < resizeThrottle ){
clearTimeout( resizeDefer );
resizeDefer = setTimeout( applyMedia, resizeThrottle );
return;
}
else {
lastCall = now;
}
for( var i in mediastyles ){
var thisstyle = mediastyles[ i ],
min = thisstyle.minw,
max = thisstyle.maxw,
minnull = min === null,
maxnull = max === null,
em = "em";
if( !!min ){
min = parseFloat( min ) * ( min.indexOf( em ) > -1 ? ( eminpx || getEmValue() ) : 1 );
}
if( !!max ){
max = parseFloat( max ) * ( max.indexOf( em ) > -1 ? ( eminpx || getEmValue() ) : 1 );
}
// if there's no media query at all (the () part), or min or max is not null, and if either is present, they're true
if( !thisstyle.hasquery || ( !minnull || !maxnull ) && ( minnull || currWidth >= min ) && ( maxnull || currWidth <= max ) ){
if( !styleBlocks[ thisstyle.media ] ){
styleBlocks[ thisstyle.media ] = [];
}
styleBlocks[ thisstyle.media ].push( rules[ thisstyle.rules ] );
}
}
//remove any existing respond style element(s)
for( var i in appendedEls ){
if( appendedEls[ i ] && appendedEls[ i ].parentNode === head ){
head.removeChild( appendedEls[ i ] );
}
}
//inject active styles, grouped by media type
for( var i in styleBlocks ){
var ss = doc.createElement( "style" ),
css = styleBlocks[ i ].join( "\n" );
ss.type = "text/css";
ss.media = i;
//originally, ss was appended to a documentFragment and sheets were appended in bulk.
//this caused crashes in IE in a number of circumstances, such as when the HTML element had a bg image set, so appending beforehand seems best. Thanks to @dvelyk for the initial research on this one!
head.insertBefore( ss, lastLink.nextSibling );
if ( ss.styleSheet ){
ss.styleSheet.cssText = css;
}
else {
ss.appendChild( doc.createTextNode( css ) );
}
//push to appendedEls to track for later removal
appendedEls.push( ss );
}
},
//tweaked Ajax functions from Quirksmode
ajax = function( url, callback ) {
var req = xmlHttp();
if (!req){
return;
}
req.open( "GET", url, true );
req.onreadystatechange = function () {
if ( req.readyState != 4 || req.status != 200 && req.status != 304 ){
return;
}
callback( req.responseText );
}
if ( req.readyState == 4 ){
return;
}
req.send( null );
},
//define ajax obj
xmlHttp = (function() {
var xmlhttpmethod = false;
try {
xmlhttpmethod = new XMLHttpRequest();
}
catch( e ){
xmlhttpmethod = new ActiveXObject( "Microsoft.XMLHTTP" );
}
return function(){
return xmlhttpmethod;
};
})();
//translate CSS
ripCSS();
//expose update for re-running respond later on
respond.update = ripCSS;
//adjust on resize
function callMedia(){
applyMedia( true );
}
if( win.addEventListener ){
win.addEventListener( "resize", callMedia, false );
}
else if( win.attachEvent ){
win.attachEvent( "onresize", callMedia );
}
})(this);

View File

@ -0,0 +1,145 @@
/*!
* screenfull
* v2.0.0 - 2014-12-22
* (c) Sindre Sorhus; MIT License
*/
(function () {
'use strict';
var isCommonjs = typeof module !== 'undefined' && module.exports;
var keyboardAllowed = typeof Element !== 'undefined' && 'ALLOW_KEYBOARD_INPUT' in Element;
var fn = (function () {
var val;
var valLength;
var fnMap = [
[
'requestFullscreen',
'exitFullscreen',
'fullscreenElement',
'fullscreenEnabled',
'fullscreenchange',
'fullscreenerror'
],
// new WebKit
[
'webkitRequestFullscreen',
'webkitExitFullscreen',
'webkitFullscreenElement',
'webkitFullscreenEnabled',
'webkitfullscreenchange',
'webkitfullscreenerror'
],
// old WebKit (Safari 5.1)
[
'webkitRequestFullScreen',
'webkitCancelFullScreen',
'webkitCurrentFullScreenElement',
'webkitCancelFullScreen',
'webkitfullscreenchange',
'webkitfullscreenerror'
],
[
'mozRequestFullScreen',
'mozCancelFullScreen',
'mozFullScreenElement',
'mozFullScreenEnabled',
'mozfullscreenchange',
'mozfullscreenerror'
],
[
'msRequestFullscreen',
'msExitFullscreen',
'msFullscreenElement',
'msFullscreenEnabled',
'MSFullscreenChange',
'MSFullscreenError'
]
];
var i = 0;
var l = fnMap.length;
var ret = {};
for (; i < l; i++) {
val = fnMap[i];
if (val && val[1] in document) {
for (i = 0, valLength = val.length; i < valLength; i++) {
ret[fnMap[0][i]] = val[i];
}
return ret;
}
}
return false;
})();
var screenfull = {
request: function (elem) {
var request = fn.requestFullscreen;
elem = elem || document.documentElement;
// Work around Safari 5.1 bug: reports support for
// keyboard in fullscreen even though it doesn't.
// Browser sniffing, since the alternative with
// setTimeout is even worse.
if (/5\.1[\.\d]* Safari/.test(navigator.userAgent)) {
elem[request]();
} else {
elem[request](keyboardAllowed && Element.ALLOW_KEYBOARD_INPUT);
}
},
exit: function () {
document[fn.exitFullscreen]();
},
toggle: function (elem) {
if (this.isFullscreen) {
this.exit();
} else {
this.request(elem);
}
},
raw: fn
};
if (!fn) {
if (isCommonjs) {
module.exports = false;
} else {
window.screenfull = false;
}
return;
}
Object.defineProperties(screenfull, {
isFullscreen: {
get: function () {
return !!document[fn.fullscreenElement];
}
},
element: {
enumerable: true,
get: function () {
return document[fn.fullscreenElement];
}
},
enabled: {
enumerable: true,
get: function () {
// Coerce to boolean in case of old WebKit
return !!document[fn.fullscreenEnabled];
}
}
});
if (isCommonjs) {
module.exports = screenfull;
} else {
window.screenfull = screenfull;
}
})();

View File

@ -0,0 +1,6 @@
/*!
* screenfull
* v2.0.0 - 2014-12-22
* (c) Sindre Sorhus; MIT License
*/
!function(){"use strict";var a="undefined"!=typeof module&&module.exports,b="undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element,c=function(){for(var a,b,c=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],d=0,e=c.length,f={};e>d;d++)if(a=c[d],a&&a[1]in document){for(d=0,b=a.length;b>d;d++)f[c[0][d]]=a[d];return f}return!1}(),d={request:function(a){var d=c.requestFullscreen;a=a||document.documentElement,/5\.1[\.\d]* Safari/.test(navigator.userAgent)?a[d]():a[d](b&&Element.ALLOW_KEYBOARD_INPUT)},exit:function(){document[c.exitFullscreen]()},toggle:function(a){this.isFullscreen?this.exit():this.request(a)},raw:c};return c?(Object.defineProperties(d,{isFullscreen:{get:function(){return!!document[c.fullscreenElement]}},element:{enumerable:!0,get:function(){return document[c.fullscreenElement]}},enabled:{enumerable:!0,get:function(){return!!document[c.fullscreenEnabled]}}}),void(a?module.exports=d:window.screenfull=d)):void(a?module.exports=!1:window.screenfull=!1)}();

View File

@ -0,0 +1,464 @@
/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* Version: 1.3.0
*
*/
(function($) {
jQuery.fn.extend({
slimScroll: function(options) {
var defaults = {
// width in pixels of the visible scroll area
width : 'auto',
// height in pixels of the visible scroll area
height : '250px',
// width in pixels of the scrollbar and rail
size : '7px',
// scrollbar color, accepts any hex/color value
color: '#000',
// scrollbar position - left/right
position : 'right',
// distance in pixels between the side edge and the scrollbar
distance : '1px',
// default scroll position on load - top / bottom / $('selector')
start : 'top',
// sets scrollbar opacity
opacity : .4,
// enables always-on mode for the scrollbar
alwaysVisible : false,
// check if we should hide the scrollbar when user is hovering over
disableFadeOut : false,
// sets visibility of the rail
railVisible : false,
// sets rail color
railColor : '#333',
// sets rail opacity
railOpacity : .2,
// whether we should use jQuery UI Draggable to enable bar dragging
railDraggable : true,
// defautlt CSS class of the slimscroll rail
railClass : 'slimScrollRail',
// defautlt CSS class of the slimscroll bar
barClass : 'slimScrollBar',
// defautlt CSS class of the slimscroll wrapper
wrapperClass : 'slimScrollDiv',
// check if mousewheel should scroll the window if we reach top/bottom
allowPageScroll : false,
// scroll amount applied to each mouse wheel step
wheelStep : 20,
// scroll amount applied when user is using gestures
touchScrollStep : 200,
// sets border radius
borderRadius: '7px',
// sets border radius of the rail
railBorderRadius : '7px'
};
var o = $.extend(defaults, options);
// do it for every element that matches selector
this.each(function(){
var isOverPanel, isOverBar, isDragg, queueHide, touchDif,
barHeight, percentScroll, lastScroll,
divS = '<div></div>',
minBarHeight = 30,
releaseScroll = false;
// used in event handlers and for better minification
var me = $(this);
// ensure we are not binding it again
if (me.parent().hasClass(o.wrapperClass))
{
// start from last bar position
var offset = me.scrollTop();
// find bar and rail
bar = me.parent().find('.' + o.barClass);
rail = me.parent().find('.' + o.railClass);
getBarHeight();
// check if we should scroll existing instance
if ($.isPlainObject(options))
{
// Pass height: auto to an existing slimscroll object to force a resize after contents have changed
if ( 'height' in options && options.height == 'auto' ) {
me.parent().css('height', 'auto');
me.css('height', 'auto');
var height = me.parent().parent().height();
me.parent().css('height', height);
me.css('height', height);
}
if ('scrollTo' in options)
{
// jump to a static point
offset = parseInt(o.scrollTo);
}
else if ('scrollBy' in options)
{
// jump by value pixels
offset += parseInt(o.scrollBy);
}
else if ('destroy' in options)
{
// remove slimscroll elements
bar.remove();
rail.remove();
me.unwrap();
return;
}
// scroll content by the given offset
scrollContent(offset, false, true);
}
return;
}
// optionally set height to the parent's height
o.height = (o.height == 'auto') ? me.parent().height() : o.height;
// wrap content
var wrapper = $(divS)
.addClass(o.wrapperClass)
.css({
position: 'relative',
overflow: 'hidden',
width: o.width,
height: o.height
});
// update style for the div
me.css({
overflow: 'hidden',
width: o.width,
height: o.height
});
// create scrollbar rail
var rail = $(divS)
.addClass(o.railClass)
.css({
width: o.size,
height: '100%',
position: 'absolute',
top: 0,
display: (o.alwaysVisible && o.railVisible) ? 'block' : 'none',
'border-radius': o.railBorderRadius,
background: o.railColor,
opacity: o.railOpacity,
zIndex: 90
});
// create scrollbar
var bar = $(divS)
.addClass(o.barClass)
.css({
background: o.color,
width: o.size,
position: 'absolute',
top: 0,
opacity: o.opacity,
display: o.alwaysVisible ? 'block' : 'none',
'border-radius' : o.borderRadius,
BorderRadius: o.borderRadius,
MozBorderRadius: o.borderRadius,
WebkitBorderRadius: o.borderRadius,
zIndex: 99
});
// set position
var posCss = (o.position == 'right') ? { right: o.distance } : { left: o.distance };
rail.css(posCss);
bar.css(posCss);
// wrap it
me.wrap(wrapper);
// append to parent div
me.parent().append(bar);
me.parent().append(rail);
// make it draggable and no longer dependent on the jqueryUI
if (o.railDraggable){
bar.bind("mousedown", function(e) {
var $doc = $(document);
isDragg = true;
t = parseFloat(bar.css('top'));
pageY = e.pageY;
$doc.bind("mousemove.slimscroll", function(e){
currTop = t + e.pageY - pageY;
bar.css('top', currTop);
scrollContent(0, bar.position().top, false);// scroll content
});
$doc.bind("mouseup.slimscroll", function(e) {
isDragg = false;hideBar();
$doc.unbind('.slimscroll');
});
return false;
}).bind("selectstart.slimscroll", function(e){
e.stopPropagation();
e.preventDefault();
return false;
});
}
// on rail over
rail.hover(function(){
showBar();
}, function(){
hideBar();
});
// on bar over
bar.hover(function(){
isOverBar = true;
}, function(){
isOverBar = false;
});
// show on parent mouseover
me.hover(function(){
isOverPanel = true;
showBar();
hideBar();
}, function(){
isOverPanel = false;
hideBar();
});
// support for mobile
me.bind('touchstart', function(e,b){
if (e.originalEvent.touches.length)
{
// record where touch started
touchDif = e.originalEvent.touches[0].pageY;
}
});
me.bind('touchmove', function(e){
// prevent scrolling the page if necessary
if(!releaseScroll)
{
e.originalEvent.preventDefault();
}
if (e.originalEvent.touches.length)
{
// see how far user swiped
var diff = (touchDif - e.originalEvent.touches[0].pageY) / o.touchScrollStep;
// scroll content
scrollContent(diff, true);
touchDif = e.originalEvent.touches[0].pageY;
}
});
// set up initial height
getBarHeight();
// check start position
if (o.start === 'bottom')
{
// scroll content to bottom
bar.css({ top: me.outerHeight() - bar.outerHeight() });
scrollContent(0, true);
}
else if (o.start !== 'top')
{
// assume jQuery selector
scrollContent($(o.start).position().top, null, true);
// make sure bar stays hidden
if (!o.alwaysVisible) { bar.hide(); }
}
// attach scroll events
attachWheel();
function _onWheel(e)
{
// use mouse wheel only when mouse is over
if (!isOverPanel) { return; }
var e = e || window.event;
var delta = 0;
if (e.wheelDelta) { delta = -e.wheelDelta/120; }
if (e.detail) { delta = e.detail / 3; }
var target = e.target || e.srcTarget || e.srcElement;
if ($(target).closest('.' + o.wrapperClass).is(me.parent())) {
// scroll content
scrollContent(delta, true);
}
// stop window scroll
if (e.preventDefault && !releaseScroll) { e.preventDefault(); }
if (!releaseScroll) { e.returnValue = false; }
}
function scrollContent(y, isWheel, isJump)
{
releaseScroll = false;
var delta = y;
var maxTop = me.outerHeight() - bar.outerHeight();
if (isWheel)
{
// move bar with mouse wheel
delta = parseInt(bar.css('top')) + y * parseInt(o.wheelStep) / 100 * bar.outerHeight();
// move bar, make sure it doesn't go out
delta = Math.min(Math.max(delta, 0), maxTop);
// if scrolling down, make sure a fractional change to the
// scroll position isn't rounded away when the scrollbar's CSS is set
// this flooring of delta would happened automatically when
// bar.css is set below, but we floor here for clarity
delta = (y > 0) ? Math.ceil(delta) : Math.floor(delta);
// scroll the scrollbar
bar.css({ top: delta + 'px' });
}
// calculate actual scroll amount
percentScroll = parseInt(bar.css('top')) / (me.outerHeight() - bar.outerHeight());
delta = percentScroll * (me[0].scrollHeight - me.outerHeight());
if (isJump)
{
delta = y;
var offsetTop = delta / me[0].scrollHeight * me.outerHeight();
offsetTop = Math.min(Math.max(offsetTop, 0), maxTop);
bar.css({ top: offsetTop + 'px' });
}
// scroll content
me.scrollTop(delta);
// fire scrolling event
me.trigger('slimscrolling', ~~delta);
// ensure bar is visible
showBar();
// trigger hide when scroll is stopped
hideBar();
}
function attachWheel()
{
if (window.addEventListener)
{
this.addEventListener('DOMMouseScroll', _onWheel, false );
this.addEventListener('mousewheel', _onWheel, false );
this.addEventListener('MozMousePixelScroll', _onWheel, false );
}
else
{
document.attachEvent("onmousewheel", _onWheel)
}
}
function getBarHeight()
{
// calculate scrollbar height and make sure it is not too small
barHeight = Math.max((me.outerHeight() / me[0].scrollHeight) * me.outerHeight(), minBarHeight);
bar.css({ height: barHeight + 'px' });
// hide scrollbar if content is not long enough
var display = barHeight == me.outerHeight() ? 'none' : 'block';
bar.css({ display: display });
}
function showBar()
{
// recalculate bar height
getBarHeight();
clearTimeout(queueHide);
// when bar reached top or bottom
if (percentScroll == ~~percentScroll)
{
//release wheel
releaseScroll = o.allowPageScroll;
// publish approporiate event
if (lastScroll != percentScroll)
{
var msg = (~~percentScroll == 0) ? 'top' : 'bottom';
me.trigger('slimscroll', msg);
}
}
else
{
releaseScroll = false;
}
lastScroll = percentScroll;
// show only when required
if(barHeight >= me.outerHeight()) {
//allow window scroll
releaseScroll = true;
return;
}
bar.stop(true,true).fadeIn('fast');
if (o.railVisible) { rail.stop(true,true).fadeIn('fast'); }
}
function hideBar()
{
// only hide when options allow it
if (!o.alwaysVisible)
{
queueHide = setTimeout(function(){
if (!(o.disableFadeOut && isOverPanel) && !isOverBar && !isDragg)
{
bar.fadeOut('slow');
rail.fadeOut('slow');
}
}, 1000);
}
}
});
// maintain chainability
return this;
}
});
jQuery.fn.extend({
slimscroll: jQuery.fn.slimScroll
});
})(jQuery);

View File

@ -0,0 +1,16 @@
/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* Version: 1.3.0
*
*/
(function(f){jQuery.fn.extend({slimScroll:function(h){var a=f.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:0.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:0.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},h);this.each(function(){function r(d){if(s){d=d||
window.event;var c=0;d.wheelDelta&&(c=-d.wheelDelta/120);d.detail&&(c=d.detail/3);f(d.target||d.srcTarget||d.srcElement).closest("."+a.wrapperClass).is(b.parent())&&m(c,!0);d.preventDefault&&!k&&d.preventDefault();k||(d.returnValue=!1)}}function m(d,f,h){k=!1;var e=d,g=b.outerHeight()-c.outerHeight();f&&(e=parseInt(c.css("top"))+d*parseInt(a.wheelStep)/100*c.outerHeight(),e=Math.min(Math.max(e,0),g),e=0<d?Math.ceil(e):Math.floor(e),c.css({top:e+"px"}));l=parseInt(c.css("top"))/(b.outerHeight()-c.outerHeight());
e=l*(b[0].scrollHeight-b.outerHeight());h&&(e=d,d=e/b[0].scrollHeight*b.outerHeight(),d=Math.min(Math.max(d,0),g),c.css({top:d+"px"}));b.scrollTop(e);b.trigger("slimscrolling",~~e);v();p()}function C(){window.addEventListener?(this.addEventListener("DOMMouseScroll",r,!1),this.addEventListener("mousewheel",r,!1),this.addEventListener("MozMousePixelScroll",r,!1)):document.attachEvent("onmousewheel",r)}function w(){u=Math.max(b.outerHeight()/b[0].scrollHeight*b.outerHeight(),D);c.css({height:u+"px"});
var a=u==b.outerHeight()?"none":"block";c.css({display:a})}function v(){w();clearTimeout(A);l==~~l?(k=a.allowPageScroll,B!=l&&b.trigger("slimscroll",0==~~l?"top":"bottom")):k=!1;B=l;u>=b.outerHeight()?k=!0:(c.stop(!0,!0).fadeIn("fast"),a.railVisible&&g.stop(!0,!0).fadeIn("fast"))}function p(){a.alwaysVisible||(A=setTimeout(function(){a.disableFadeOut&&s||(x||y)||(c.fadeOut("slow"),g.fadeOut("slow"))},1E3))}var s,x,y,A,z,u,l,B,D=30,k=!1,b=f(this);if(b.parent().hasClass(a.wrapperClass)){var n=b.scrollTop(),
c=b.parent().find("."+a.barClass),g=b.parent().find("."+a.railClass);w();if(f.isPlainObject(h)){if("height"in h&&"auto"==h.height){b.parent().css("height","auto");b.css("height","auto");var q=b.parent().parent().height();b.parent().css("height",q);b.css("height",q)}if("scrollTo"in h)n=parseInt(a.scrollTo);else if("scrollBy"in h)n+=parseInt(a.scrollBy);else if("destroy"in h){c.remove();g.remove();b.unwrap();return}m(n,!1,!0)}}else{a.height="auto"==a.height?b.parent().height():a.height;n=f("<div></div>").addClass(a.wrapperClass).css({position:"relative",
overflow:"hidden",width:a.width,height:a.height});b.css({overflow:"hidden",width:a.width,height:a.height});var g=f("<div></div>").addClass(a.railClass).css({width:a.size,height:"100%",position:"absolute",top:0,display:a.alwaysVisible&&a.railVisible?"block":"none","border-radius":a.railBorderRadius,background:a.railColor,opacity:a.railOpacity,zIndex:90}),c=f("<div></div>").addClass(a.barClass).css({background:a.color,width:a.size,position:"absolute",top:0,opacity:a.opacity,display:a.alwaysVisible?
"block":"none","border-radius":a.borderRadius,BorderRadius:a.borderRadius,MozBorderRadius:a.borderRadius,WebkitBorderRadius:a.borderRadius,zIndex:99}),q="right"==a.position?{right:a.distance}:{left:a.distance};g.css(q);c.css(q);b.wrap(n);b.parent().append(c);b.parent().append(g);a.railDraggable&&c.bind("mousedown",function(a){var b=f(document);y=!0;t=parseFloat(c.css("top"));pageY=a.pageY;b.bind("mousemove.slimscroll",function(a){currTop=t+a.pageY-pageY;c.css("top",currTop);m(0,c.position().top,!1)});
b.bind("mouseup.slimscroll",function(a){y=!1;p();b.unbind(".slimscroll")});return!1}).bind("selectstart.slimscroll",function(a){a.stopPropagation();a.preventDefault();return!1});g.hover(function(){v()},function(){p()});c.hover(function(){x=!0},function(){x=!1});b.hover(function(){s=!0;v();p()},function(){s=!1;p()});b.bind("touchstart",function(a,b){a.originalEvent.touches.length&&(z=a.originalEvent.touches[0].pageY)});b.bind("touchmove",function(b){k||b.originalEvent.preventDefault();b.originalEvent.touches.length&&
(m((z-b.originalEvent.touches[0].pageY)/a.touchScrollStep,!0),z=b.originalEvent.touches[0].pageY)});w();"bottom"===a.start?(c.css({top:b.outerHeight()-c.outerHeight()}),m(0,!0)):"top"!==a.start&&(m(f(a.start).position().top,null,!0),a.alwaysVisible||c.hide());C()}});return this}});jQuery.fn.extend({slimscroll:jQuery.fn.slimScroll})})(jQuery);