webshims-rails 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/webshims-rails/version.rb +2 -2
- data/vendor/assets/javascripts/webshims/minified/extras/custom-validity.js +10 -9
- data/vendor/assets/javascripts/webshims/minified/extras/modernizr-custom.js +20 -19
- data/vendor/assets/javascripts/webshims/minified/polyfiller.js +29 -28
- data/vendor/assets/javascripts/webshims/minified/shims/combos/1.js +33 -33
- data/vendor/assets/javascripts/webshims/minified/shims/combos/10.js +76 -76
- data/vendor/assets/javascripts/webshims/minified/shims/combos/11.js +42 -41
- data/vendor/assets/javascripts/webshims/minified/shims/combos/12.js +38 -38
- data/vendor/assets/javascripts/webshims/minified/shims/combos/13.js +25 -25
- data/vendor/assets/javascripts/webshims/minified/shims/combos/16.js +55 -54
- data/vendor/assets/javascripts/webshims/minified/shims/combos/17.js +64 -63
- data/vendor/assets/javascripts/webshims/minified/shims/combos/18.js +59 -58
- data/vendor/assets/javascripts/webshims/minified/shims/combos/19.js +64 -62
- data/vendor/assets/javascripts/webshims/minified/shims/combos/2.js +69 -63
- data/vendor/assets/javascripts/webshims/minified/shims/combos/20.js +43 -43
- data/vendor/assets/javascripts/webshims/minified/shims/combos/21.js +47 -42
- data/vendor/assets/javascripts/webshims/minified/shims/combos/22.js +57 -57
- data/vendor/assets/javascripts/webshims/minified/shims/combos/23.js +60 -55
- data/vendor/assets/javascripts/webshims/minified/shims/combos/24.js +77 -75
- data/vendor/assets/javascripts/webshims/minified/shims/combos/3.js +91 -84
- data/vendor/assets/javascripts/webshims/minified/shims/combos/4.js +31 -30
- data/vendor/assets/javascripts/webshims/minified/shims/combos/5.js +39 -38
- data/vendor/assets/javascripts/webshims/minified/shims/combos/59.js +61 -59
- data/vendor/assets/javascripts/webshims/minified/shims/combos/6.js +29 -29
- data/vendor/assets/javascripts/webshims/minified/shims/combos/7.js +37 -37
- data/vendor/assets/javascripts/webshims/minified/shims/combos/8.js +33 -33
- data/vendor/assets/javascripts/webshims/minified/shims/combos/9.js +63 -63
- data/vendor/assets/javascripts/webshims/minified/shims/dom-extend.js +20 -20
- data/vendor/assets/javascripts/webshims/minified/shims/excanvas.js +21 -35
- data/vendor/assets/javascripts/webshims/minified/shims/form-core.js +22 -21
- data/vendor/assets/javascripts/webshims/minified/shims/form-datalist.js +22 -21
- data/vendor/assets/javascripts/webshims/minified/shims/form-message.js +9 -9
- data/vendor/assets/javascripts/webshims/minified/shims/form-native-extend.js +8 -8
- data/vendor/assets/javascripts/webshims/minified/shims/form-native-fix.js +7 -5
- data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-ui.js +21 -21
- data/vendor/assets/javascripts/webshims/minified/shims/form-shim-extend.js +33 -28
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-core.js +13 -13
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-swf.js +30 -30
- data/vendor/assets/javascripts/webshims/minified/shims/styles/shim.css +5 -4
- metadata +4 -4
@@ -1,75 +1,77 @@
|
|
1
|
-
(function(a){if(!Modernizr.genericDOM){var c=document,
|
2
|
-
jQuery.webshims.register("dom-extend",function(a,c,
|
3
|
-
!0)),null==
|
4
|
-
"shadowData");return a&&a[
|
5
|
-
("attr"==
|
6
|
-
|
7
|
-
|
8
|
-
f[0]&&a.nodeName(f[0],
|
9
|
-
d
|
10
|
-
|
11
|
-
|
12
|
-
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(e
|
13
|
-
b,{writeable:!0}),
|
14
|
-
|
15
|
-
|
16
|
-
p)return f=(a.attributes[
|
17
|
-
|
18
|
-
b.callback();else{if(!b.activeLang)b.activeLang="";
|
19
|
-
(function(a,c){var
|
20
|
-
|
21
|
-
jQuery.webshims.register("form-datalist",function(a,c,
|
22
|
-
if(
|
23
|
-
this.timedHide=function(){clearTimeout(
|
24
|
-
function(
|
25
|
-
|
26
|
-
!1}}).bind("focus.datalistWidget",function(){a(this).hasClass("list-focus")&&
|
27
|
-
"value"),
|
28
|
-
this.id
|
29
|
-
|
30
|
-
""),className:
|
31
|
-
m.text+'</span> <span class="option-value">'+m.value+"</span></li>";this.arrayOptions=
|
32
|
-
|
33
|
-
|
34
|
-
a(
|
35
|
-
|
36
|
-
b
|
37
|
-
b).
|
38
|
-
(
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
(function(a){
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
"
|
51
|
-
a.
|
52
|
-
|
53
|
-
return
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
g.
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
"
|
75
|
-
|
1
|
+
(function(a){if(!Modernizr.genericDOM){var c=document,l,k,p=/<([\w:]+)/,h={option:1,optgroup:1,legend:1,thead:1,tr:1,td:1,col:1,area:1};a.webshims.fixHTML5=function(a){if("string"!=typeof a||h[(p.exec(a)||["",""])[1].toLowerCase()])return a;if(!k){l=c.body;if(!l)return a;k=c.createElement("div");k.style.display="none"}var u=k.cloneNode(!1);l.appendChild(u);u.innerHTML=a;l.removeChild(u);return u.childNodes}}})(jQuery);
|
2
|
+
jQuery.webshims.register("dom-extend",function(a,c,l,k,p){var h=c.modules,q=/\s*,\s*/,u={},v={},r={},o={},w={},x=a.fn.val,b=function(d,e,f,n,g){return g?x.call(a(d)):x.call(a(d),f)};a.fn.val=function(d){var e=this[0];arguments.length&&null==d&&(d="");if(!arguments.length)return!e||1!==e.nodeType?x.call(this):a.prop(e,"value",d,"val",!0);if(a.isArray(d))return x.apply(this,arguments);var f=a.isFunction(d);return this.each(function(n){e=this;1===e.nodeType&&(f?(n=d.call(e,n,a.prop(e,"value",p,"val",
|
3
|
+
!0)),null==n&&(n=""),a.prop(e,"value",n,"val")):a.prop(e,"value",d,"val"))})};var i="_webshimsLib"+Math.round(1E3*Math.random()),t=function(d,e,f){d=d.jquery?d[0]:d;if(!d)return f||{};var n=a.data(d,i);f!==p&&(n||(n=a.data(d,i,{})),e&&(n[e]=f));return e?n&&n[e]:n};[{name:"getNativeElement",prop:"nativeElement"},{name:"getShadowElement",prop:"shadowElement"},{name:"getShadowFocusElement",prop:"shadowFocusElement"}].forEach(function(d){a.fn[d.name]=function(){return this.map(function(){var a=t(this,
|
4
|
+
"shadowData");return a&&a[d.prop]||this})}});["removeAttr","prop","attr"].forEach(function(d){u[d]=a[d];a[d]=function(e,f,n,g,m){var i="val"==g,t=!i?u[d]:b;if(!e||!v[f]||1!==e.nodeType||!i&&g&&"attr"==d&&a.attrFn[f])return t(e,f,n,g,m);var y=(e.nodeName||"").toLowerCase(),c=r[y],j="attr"==d&&(!1===n||null===n)?"removeAttr":d,h,s,q;c||(c=r["*"]);c&&(c=c[f]);c&&(h=c[j]);if(h){if("value"==f)s=h.isVal,h.isVal=i;if("removeAttr"===j)return h.value.call(e);if(n===p)return h.get?h.get.call(e):h.value;h.set&&
|
5
|
+
("attr"==d&&!0===n&&(n=f),q=h.set.call(e,n));if("value"==f)h.isVal=s}else q=t(e,f,n,g,m);if((n!==p||"removeAttr"===j)&&w[y]&&w[y][f]){var k;k="removeAttr"==j?!1:"prop"==j?!!n:!0;w[y][f].forEach(function(a){if(!a.only||(a.only="prop"==d)||"attr"==a.only&&"prop"!=d)a.call(e,n,k,i?"val":j,d)})}return q};o[d]=function(e,f,n){r[e]||(r[e]={});r[e][f]||(r[e][f]={});var g=r[e][f][d],m=function(a,e,g){return e&&e[a]?e[a]:g&&g[a]?g[a]:"prop"==d&&"value"==f?function(a){return n.isVal?b(this,f,a,!1,0===arguments.length):
|
6
|
+
u[d](this,f,a)}:"prop"==d&&"value"==a&&n.value.apply?function(a){var e=u[d](this,f);e&&e.apply&&(e=e.apply(this,arguments));return e}:function(a){return u[d](this,f,a)}};r[e][f][d]=n;if(n.value===p){if(!n.set)n.set=n.writeable?m("set",n,g):c.cfg.useStrict&&"prop"==f?function(){throw f+" is readonly on "+e;}:a.noop;if(!n.get)n.get=m("get",n,g)}["value","get","set"].forEach(function(a){n[a]&&(n["_sup"+a]=m(a,g))})}});var j=!a.browser.msie||8<parseInt(a.browser.version,10),g=function(){var a=c.getPrototypeOf(k.createElement("foobar")),
|
7
|
+
e=Object.prototype.hasOwnProperty;return function(f,n,g){var b=k.createElement(f),i=c.getPrototypeOf(b);if(j&&i&&a!==i&&(!b[n]||!e.call(b,n))){var h=b[n];g._supvalue=function(){return h&&h.apply?h.apply(this,arguments):h};i[n]=g.value}else g._supvalue=function(){var a=t(this,"propValue");return a&&a[n]&&a[n].apply?a[n].apply(this,arguments):a&&a[n]},m.extendValue(f,n,g.value);g.value._supvalue=g._supvalue}}(),m=function(){var d={};c.addReady(function(e,f){var g={},n=function(d){g[d]||(g[d]=a(e.getElementsByTagName(d)),
|
8
|
+
f[0]&&a.nodeName(f[0],d)&&(g[d]=g[d].add(f)))};a.each(d,function(a,d){n(a);!d||!d.forEach?c.warn("Error: with "+a+"-property. methods: "+d):d.forEach(function(d){g[a].each(d)})});g=null});var e,f=a([]),g=function(f,g){d[f]?d[f].push(g):d[f]=[g];a.isDOMReady&&(e||a(k.getElementsByTagName(f))).each(g)};return{createTmpCache:function(d){a.isDOMReady&&(e=e||a(k.getElementsByTagName(d)));return e||f},flushTmpCache:function(){e=null},content:function(d,e){g(d,function(){var d=a.attr(this,e);null!=d&&a.attr(this,
|
9
|
+
e,d)})},createElement:function(a,d){g(a,d)},extendValue:function(d,e,f){g(d,function(){a(this).each(function(){t(this,"propValue",{})[e]=this[e];this[e]=f})})}}}(),s=function(a,e){if(a.defaultValue===p)a.defaultValue="";if(!a.removeAttr)a.removeAttr={value:function(){a[e||"prop"].set.call(this,a.defaultValue);a.removeAttr._supvalue.call(this)}}};a.extend(c,{getID:function(){var d=(new Date).getTime();return function(e){var e=a(e),f=e.attr("id");f||(d++,f="ID-"+d,e.attr("id",f));return f}}(),extendUNDEFProp:function(d,
|
10
|
+
e){a.each(e,function(a,e){a in d||(d[a]=e)})},createPropDefault:s,data:t,moveToFirstEvent:function(){var d=a._data?"_data":"data";return function(e,f,g){if((e=(a[d](e,"events")||{})[f])&&1<e.length)f=e.pop(),g||(g="bind"),"bind"==g&&e.delegateCount?e.splice(e.delegateCount,0,f):e.unshift(f)}}(),addShadowDom:function(d,e,f){f=f||{};d.jquery&&(d=d[0]);e.jquery&&(e=e[0]);if(!f.shadowFocusElement)f.shadowFocusElement=e;var g=a.data(d,i)||a.data(d,i,{}),b=a.data(e,i)||a.data(e,i,{});g.hasShadow=e;b.nativeElement=
|
11
|
+
d;b.shadowData=g.shadowData={nativeElement:d,shadowElement:e,shadowFocusElement:f.shadowFocusElement};f.shadowChilds&&f.shadowChilds.each(function(){t(this,"shadowData",b.shadowData)});if(f.data)g.shadowData.data=f.data,b.shadowData.data=f.data;f=null},propTypes:{standard:function(a){s(a);if(!a.prop)a.prop={set:function(e){a.attr.set.call(this,""+e)},get:function(){return a.attr.get.call(this)||a.defaultValue}}},"boolean":function(a){s(a);if(!a.prop)a.prop={set:function(e){e?a.attr.set.call(this,
|
12
|
+
""):a.removeAttr.value.call(this)},get:function(){return null!=a.attr.get.call(this)}}}},reflectProperties:function(d,e){"string"==typeof e&&(e=e.split(q));e.forEach(function(e){c.defineNodeNamesProperty(d,e,{prop:{set:function(d){a.attr(this,e,d)},get:function(){return a.attr(this,e)||""}}})})},defineNodeNameProperty:function(d,e,f){v[e]=!0;if(f.reflect)c.propTypes[f.propType||"standard"](f);["prop","attr","removeAttr"].forEach(function(n){var b=f[n];b&&(b="prop"===n?a.extend({writeable:!0},b):a.extend({},
|
13
|
+
b,{writeable:!0}),o[n](d,e,b),"*"!=d&&c.cfg.extendNative&&"prop"==n&&b.value&&a.isFunction(b.value)&&g(d,e,b),f[n]=b)});f.initAttr&&m.content(d,e);return f},defineNodeNameProperties:function(a,e,f,g){for(var b in e)!g&&e[b].initAttr&&m.createTmpCache(a),f&&(e[b][f]?c.log("override: "+a+"["+b+"] for "+f):(e[b][f]={},["value","set","get"].forEach(function(a){a in e[b]&&(e[b][f][a]=e[b][a],delete e[b][a])}))),e[b]=c.defineNodeNameProperty(a,b,e[b]);g||m.flushTmpCache();return e},createElement:function(d,
|
14
|
+
e,f){var g;a.isFunction(e)&&(e={after:e});m.createTmpCache(d);e.before&&m.createElement(d,e.before);f&&(g=c.defineNodeNameProperties(d,f,!1,!0));e.after&&m.createElement(d,e.after);m.flushTmpCache();return g},onNodeNamesPropertyModify:function(d,e,f,g){"string"==typeof d&&(d=d.split(q));a.isFunction(f)&&(f={set:f});d.forEach(function(a){w[a]||(w[a]={});"string"==typeof e&&(e=e.split(q));f.initAttr&&m.createTmpCache(a);e.forEach(function(d){w[a][d]||(w[a][d]=[],v[d]=!0);if(f.set){if(g)f.set.only=g;
|
15
|
+
w[a][d].push(f.set)}f.initAttr&&m.content(a,d)});m.flushTmpCache()})},defineNodeNamesBooleanProperty:function(d,e,f){f||(f={});if(a.isFunction(f))f.set=f;c.defineNodeNamesProperty(d,e,{attr:{set:function(a){this.setAttribute(e,a);f.set&&f.set.call(this,!0)},get:function(){return null==this.getAttribute(e)?p:e}},removeAttr:{value:function(){this.removeAttribute(e);f.set&&f.set.call(this,!1)}},reflect:!0,propType:"boolean",initAttr:f.initAttr||!1})},contentAttr:function(a,e,f){if(a.nodeName){if(f===
|
16
|
+
p)return f=(a.attributes[e]||{}).value,null==f?p:f;"boolean"==typeof f?f?a.setAttribute(e,e):a.removeAttribute(e):a.setAttribute(e,f)}},activeLang:function(){var d=[],e={},f,g,b=/:\/\/|^\.*\//,m=function(d,e,g){return e&&g&&-1!==a.inArray(e,g.availabeLangs||[])?(d.loading=!0,g=g.langSrc,b.test(g)||(g=c.cfg.basePath+g),c.loader.loadScript(g+e+".js",function(){d.langObj[e]?(d.loading=!1,t(d,!0)):a(function(){d.langObj[e]&&t(d,!0);d.loading=!1})}),!0):!1},i=function(a){e[a]&&e[a].forEach(function(a){a.callback()})},
|
17
|
+
t=function(a,d){if(a.activeLang!=f&&a.activeLang!==g){var e=h[a.module].options;if(a.langObj[f]||g&&a.langObj[g])a.activeLang=f,a.callback(a.langObj[f]||a.langObj[g],f),i(a.module);else if(!d&&!m(a,f,e)&&!m(a,g,e)&&a.langObj[""]&&""!==a.activeLang)a.activeLang="",a.callback(a.langObj[""],f),i(a.module)}};return function(b){if("string"==typeof b&&b!==f)f=b,g=f.split("-")[0],f==g&&(g=!1),a.each(d,function(a,d){t(d)});else if("object"==typeof b)if(b.register)e[b.register]||(e[b.register]=[]),e[b.register].push(b),
|
18
|
+
b.callback();else{if(!b.activeLang)b.activeLang="";d.push(b);t(b)}return f}}()});a.each({defineNodeNamesProperty:"defineNodeNameProperty",defineNodeNamesProperties:"defineNodeNameProperties",createElements:"createElement"},function(a,e){c[a]=function(a,d,g,b){"string"==typeof a&&(a=a.split(q));var m={};a.forEach(function(a){m[a]=c[e](a,d,g,b)});return m}});c.isReady("webshimLocalization",!0)});
|
19
|
+
(function(a,c){var l=a.webshims.browserVersion;if(!(a.browser.mozilla&&5<l)&&(!a.browser.msie||12>l&&7<l)){var k={article:"article",aside:"complementary",section:"region",nav:"navigation",address:"contentinfo"},p=function(a,c){a.getAttribute("role")||a.setAttribute("role",c)};a.webshims.addReady(function(h,q){a.each(k,function(c,l){for(var k=a(c,h).add(q.filter(c)),b=0,i=k.length;b<i;b++)p(k[b],l)});if(h===c){var l=c.getElementsByTagName("header")[0],v=c.getElementsByTagName("footer"),r=v.length;
|
20
|
+
l&&!a(l).closest("section, article")[0]&&p(l,"banner");r&&(l=v[r-1],a(l).closest("section, article")[0]||p(l,"contentinfo"))}})}})(jQuery,document);
|
21
|
+
jQuery.webshims.register("form-datalist",function(a,c,l,k,p){c.propTypes.element=function(h){c.createPropDefault(h,"attr");if(!h.prop)h.prop={get:function(){var c=h.attr.get.call(this);c&&(c=a("#"+c)[0])&&h.propNodeName&&!a.nodeName(c,h.propNodeName)&&(c=null);return c||null},writeable:!1}};(function(){var h=a.webshims.cfg.forms,q=Modernizr.input.list;if(!q||h.customDatalist){var u=0,v={submit:1,button:1,reset:1,hidden:1,range:1,date:1},r=a.browser.msie&&7>parseInt(a.browser.version,10),o={},w=function(a){if(!a)return[];
|
22
|
+
if(o[a])return o[a];var i;try{i=JSON.parse(localStorage.getItem("storedDatalistOptions"+a))}catch(c){}o[a]=i||[];return i||[]},x={_create:function(b){if(!v[a.prop(b.input,"type")]){var i=b.datalist,c=a.data(b.input,"datalistWidget");if(i&&c&&c.datalist!==i)c.datalist=i,c.id=b.id,c.shadowList.prop("className","datalist-polyfill "+(c.datalist.className||"")+" "+c.datalist.id+"-shadowdom"),h.positionDatalist?c.shadowList.insertAfter(b.input):c.shadowList.appendTo("body"),a(c.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",
|
23
|
+
a.proxy(c,"_resetListCached")),c._resetListCached();else if(i){if(!(c&&c.datalist===i)){u++;var j=this;this.hideList=a.proxy(j,"hideList");this.timedHide=function(){clearTimeout(j.hideTimer);j.hideTimer=setTimeout(j.hideList,9)};this.datalist=i;this.id=b.id;this.hasViewableData=!0;this._autocomplete=a.attr(b.input,"autocomplete");a.data(b.input,"datalistWidget",this);this.shadowList=a('<div class="datalist-polyfill '+(this.datalist.className||"")+" "+this.datalist.id+'-shadowdom" />');h.positionDatalist?
|
24
|
+
this.shadowList.insertAfter(b.input):this.shadowList.appendTo("body");this.index=-1;this.input=b.input;this.arrayOptions=[];this.shadowList.delegate("li","mouseenter.datalistWidget mousedown.datalistWidget click.datalistWidget",function(g){var m=a("li:not(.hidden-item)",j.shadowList),i="mousedown"==g.type||"click"==g.type;j.markItem(m.index(g.currentTarget),i,m);"click"==g.type&&(j.hideList(),a(b.input).trigger("datalistselect"));return"mousedown"!=g.type}).bind("focusout",this.timedHide);b.input.setAttribute("autocomplete",
|
25
|
+
"off");a(b.input).attr({"aria-haspopup":"true"}).bind("input.datalistWidget",function(){if(!j.triggeredByDatalist)j.changedValue=!1,j.showHideOptions()}).bind("keydown.datalistWidget",function(g){var m=g.keyCode,i;if(40==m&&!j.showList())return j.markItem(j.index+1,!0),!1;if(j.isListVisible){if(38==m)return j.markItem(j.index-1,!0),!1;if(!g.shiftKey&&(33==m||36==m))return j.markItem(0,!0),!1;if(!g.shiftKey&&(34==m||35==m))return g=a("li:not(.hidden-item)",j.shadowList),j.markItem(g.length-1,!0,g),
|
26
|
+
!1;if(13==m||27==m)return 13==m&&(i=a("li.active-item:not(.hidden-item)",j.shadowList),j.changeValue(a("li.active-item:not(.hidden-item)",j.shadowList))),j.hideList(),i&&i[0]&&a(b.input).trigger("datalistselect"),!1}}).bind("focus.datalistWidget",function(){a(this).hasClass("list-focus")&&j.showList()}).bind("mousedown.datalistWidget",function(){a(this).is(":focus")&&j.showList()}).bind("blur.datalistWidget",this.timedHide);a(this.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",
|
27
|
+
a.proxy(this,"_resetListCached"));this._resetListCached();b.input.form&&(b.input.name||b.input.id)&&a(b.input.form).bind("submit.datalistWidget"+b.input.id,function(){if(!a(b.input).hasClass("no-datalist-cache")){var g=a.prop(b.input,"value"),m=(b.input.name||b.input.id)+a.prop(b.input,"type");if(!j.storedOptions)j.storedOptions=w(m);if(g&&-1==j.storedOptions.indexOf(g)&&(j.storedOptions.push(g),g=j.storedOptions,m)){g=g||[];try{localStorage.setItem("storedDatalistOptions"+m,JSON.stringify(g))}catch(i){}}}});
|
28
|
+
a(l).bind("unload.datalist"+this.id+" beforeunload.datalist"+this.id,function(){j.destroy()})}}else c&&c.destroy()}},destroy:function(){var b=a.attr(this.input,"autocomplete");a(this.input).unbind(".datalistWidget").removeData("datalistWidget");this.shadowList.remove();a(k).unbind(".datalist"+this.id);a(l).unbind(".datalist"+this.id);this.input.form&&this.input.id&&a(this.input.form).unbind("submit.datalistWidget"+this.input.id);this.input.removeAttribute("aria-haspopup");b===p?this.input.removeAttribute("autocomplete"):
|
29
|
+
a(this.input).attr("autocomplete",b)},_resetListCached:function(a){var i=this,h;this.needsUpdate=!0;this.lastUpdatedValue=!1;this.lastUnfoundValue="";this.updateTimer||(l.QUnit||(h=a&&k.activeElement==i.input)?i.updateListOptions(h):c.ready("WINDOWLOAD",function(){i.updateTimer=setTimeout(function(){i.updateListOptions();i=null;u=1},200+100*u)}))},updateListOptions:function(b){this.needsUpdate=!1;clearTimeout(this.updateTimer);this.updateTimer=!1;this.shadowList.css({fontSize:a.css(this.input,"fontSize"),
|
30
|
+
fontFamily:a.css(this.input,"fontFamily")});this.searchStart=a(this.input).hasClass("search-start");var i=[],c=[],h=[],g,m,s,d;for(m=a.prop(this.datalist,"options"),s=0,d=m.length;s<d;s++){g=m[s];if(g.disabled)return;g={value:a(g).val()||"",text:a.trim(a.attr(g,"label")||g.textContent||g.innerText||a.text([g])||""),className:g.className||"",style:a.attr(g,"style")||""};g.text?g.text!=g.value&&(g.className+=" different-label-value"):g.text=g.value;c[s]=g.value;h[s]=g}if(!this.storedOptions)this.storedOptions=
|
31
|
+
a(this.input).hasClass("no-datalist-cache")?[]:w((this.input.name||this.input.id)+a.prop(this.input,"type"));this.storedOptions.forEach(function(a){-1==c.indexOf(a)&&h.push({value:a,text:a,className:"stored-suggest",style:""})});for(s=0,d=h.length;s<d;s++)m=h[s],i[s]='<li class="'+m.className+'" style="'+m.style+'" tabindex="-1" role="listitem"><span class="option-label">'+m.text+'</span> <span class="option-value">'+m.value+"</span></li>";this.arrayOptions=h;this.shadowList.html('<div class="datalist-outer-box"><div class="datalist-box"><ul role="list">'+
|
32
|
+
i.join("\n")+"</ul></div></div>");a.fn.bgIframe&&r&&this.shadowList.bgIframe();(b||this.isListVisible)&&this.showHideOptions()},showHideOptions:function(b){var i=a.prop(this.input,"value").toLowerCase();if(!(i===this.lastUpdatedValue||this.lastUnfoundValue&&0===i.indexOf(this.lastUnfoundValue))){this.lastUpdatedValue=i;var c=!1,h=this.searchStart,g=a("li",this.shadowList);i?this.arrayOptions.forEach(function(b,s){var d;if(!("lowerText"in b))b.lowerText=b.text!=b.value?b.text.toLowerCase()+b.value.toLowerCase():
|
33
|
+
b.text.toLowerCase();d=b.lowerText.indexOf(i);(d=h?!d:-1!==d)?(a(g[s]).removeClass("hidden-item"),c=!0):a(g[s]).addClass("hidden-item")}):g.length&&(g.removeClass("hidden-item"),c=!0);this.hasViewableData=c;!b&&c&&this.showList();if(!c)this.lastUnfoundValue=i,this.hideList()}},setPos:function(){this.shadowList.css({marginTop:0,marginLeft:0,marginRight:0,marginBottom:0});var b=h.positionDatalist?a(this.input).position():c.getRelOffset(this.shadowList,this.input);b.top+=a(this.input).outerHeight();
|
34
|
+
b.width=a(this.input).outerWidth()-(parseInt(this.shadowList.css("borderLeftWidth"),10)||0)-(parseInt(this.shadowList.css("borderRightWidth"),10)||0);this.shadowList.css({marginTop:"",marginLeft:"",marginRight:"",marginBottom:""}).css(b);return b},showList:function(){if(this.isListVisible)return!1;this.needsUpdate&&this.updateListOptions();this.showHideOptions(!0);if(!this.hasViewableData)return!1;this.isListVisible=!0;var b=this,c;b.setPos();b.shadowList.addClass("datalist-visible").find("li.active-item").removeClass("active-item");
|
35
|
+
a(k).unbind(".datalist"+b.id).bind("mousedown.datalist"+b.id+" focusin.datalist"+b.id,function(c){c.target===b.input||b.shadowList[0]===c.target||a.contains(b.shadowList[0],c.target)?(clearTimeout(b.hideTimer),setTimeout(function(){clearTimeout(b.hideTimer)},9)):b.timedHide()});a(l).unbind(".datalist"+b.id).bind("resize.datalist"+b.id+" orientationchange.datalist "+b.id+" emchange.datalist"+b.id,function(){clearTimeout(c);c=setTimeout(function(){b.setPos()},9)});clearTimeout(c);return!0},hideList:function(){if(!this.isListVisible)return!1;
|
36
|
+
var b=this,i=function(){b.changedValue&&a(b.input).trigger("change");b.changedValue=!1};b.shadowList.removeClass("datalist-visible list-item-active");b.index=-1;b.isListVisible=!1;if(b.changedValue){b.triggeredByDatalist=!0;c.triggerInlineForm&&c.triggerInlineForm(b.input,"input");if(a(b.input).is(":focus"))a(b.input).one("blur",i);else i();b.triggeredByDatalist=!1}a(k).unbind(".datalist"+b.id);a(l).unbind(".datalist"+b.id).bind("resize.datalist"+b.id+" orientationchange.datalist "+b.id+" emchange.datalist"+
|
37
|
+
b.id,function(){b.shadowList.css({top:0,left:0});a(l).unbind(".datalist"+b.id)});return!0},scrollIntoView:function(b){var c=a("ul",this.shadowList),h=a("div.datalist-box",this.shadowList),j=b.position();j.top-=(parseInt(c.css("paddingTop"),10)||0)+(parseInt(c.css("marginTop"),10)||0)+(parseInt(c.css("borderTopWidth"),10)||0);0>j.top?h.scrollTop(h.scrollTop()+j.top-2):(j.top+=b.outerHeight(),b=h.height(),j.top>b&&h.scrollTop(h.scrollTop()+(j.top-b)+2))},changeValue:function(b){if(b[0]){var b=a("span.option-value",
|
38
|
+
b).text(),c=a.prop(this.input,"value");if(b!=c)a(this.input).prop("value",b).triggerHandler("updateInput"),this.changedValue=!0}},markItem:function(b,c,h){h=h||a("li:not(.hidden-item)",this.shadowList);if(h.length)0>b?b=h.length-1:b>=h.length&&(b=0),h.removeClass("active-item"),this.shadowList.addClass("list-item-active"),h=h.filter(":eq("+b+")").addClass("active-item"),c&&(this.changeValue(h),this.scrollIntoView(h)),this.index=b}};(function(){q||c.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,
|
39
|
+
get:function(){var b=a("select",this);b[0]?b=b[0].options:(b=a("option",this).get(),b.length&&c.warn("you should wrap you option-elements for a datalist in a select element to support IE and other old browsers."));return b}}});var b={autocomplete:{attr:{get:function(){var b=a.data(this,"datalistWidget");return b?b._autocomplete:"autocomplete"in this?this.autocomplete:this.getAttribute("autocomplete")},set:function(b){var c=a.data(this,"datalistWidget");c?(c._autocomplete=b,"off"==b&&c.hideList()):
|
40
|
+
"autocomplete"in this?this.autocomplete=b:this.setAttribute("autocomplete",b)}}}};if(!q||!1 in a("<input />")[0])b.selectedOption={prop:{writeable:!1,get:function(){var b=a.prop(this,"list"),c=null,h;if(!b)return c;h=a.attr(this,"value");if(!h)return c;b=a.prop(b,"options");if(!b.length)return c;a.each(b,function(g,b){if(h==a.prop(b,"value"))return c=b,!1});return c}}};b.list=q?{attr:{get:function(){var b=c.contentAttr(this,"list");null!=b?this.removeAttribute("list"):b=a.data(this,"datalistListAttr");
|
41
|
+
return null==b?p:b},set:function(b){a.data(this,"datalistListAttr",b);c.objectCreate(x,p,{input:this,id:b,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"}:{attr:{get:function(){var a=c.contentAttr(this,"list");return null==a?p:a},set:function(b){c.contentAttr(this,"list",b);c.objectCreate(x,p,{input:this,id:b,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"};c.defineNodeNameProperties("input",b);if(a.event.customEvent)a.event.customEvent.updateDatalist=
|
42
|
+
!0,a.event.customEvent.updateInput=!0,a.event.customEvent.datalistselect=!0;c.addReady(function(a,b){b.filter("datalist > select, datalist, datalist > option, datalist > select > option").closest("datalist").triggerHandler("updateDatalist")})})()}})()});
|
43
|
+
(function(a){var c=window.Modernizr,l=a.webshims,k=l.bugs,p=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input type="date" required="" name="a" /><input type="submit" /></form>'),h=function(){if(p[0].querySelector)try{k.findRequired=!p[0].querySelector("select:required")}catch(a){k.findRequired=!1}};k.findRequired=!1;k.validationMessage=!1;k.valueAsNumberSet=!1;l.capturingEventPrevented=function(c){if(!c._isPolyfilled){var h=c.isDefaultPrevented,
|
44
|
+
b=c.preventDefault;c.preventDefault=function(){clearTimeout(a.data(c.target,c.type+"DefaultPrevented"));a.data(c.target,c.type+"DefaultPrevented",setTimeout(function(){a.removeData(c.target,c.type+"DefaultPrevented")},30));return b.apply(this,arguments)};c.isDefaultPrevented=function(){return!(!h.apply(this,arguments)&&!a.data(c.target,c.type+"DefaultPrevented"))};c._isPolyfilled=!0}};if(!c.formvalidation||k.bustedValidity)h();else if(l.capturingEvents(["input"]),l.capturingEvents(["invalid"],!0),
|
45
|
+
c.bugfreeformvalidation=!0,window.opera||a.browser.webkit||window.testGoodWithFix){var q=a("input",p).eq(0),u,v=function(a){l.loader.loadList(["dom-extend"]);l.ready("dom-extend",a)},r=function(h){var k=["form-extend","form-message","form-native-fix"];h&&(h.preventDefault(),h.stopImmediatePropagation());clearTimeout(u);setTimeout(function(){p&&(p.remove(),p=q=null)},9);if(!c.bugfreeformvalidation)l.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),l.modules["form-extend"].test=a.noop;l.isReady("form-number-date-api")&&
|
46
|
+
k.push("form-number-date-api");l.reTest(k);if(q)try{q.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&v(function(){l.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(b){!b&&this&&a.prop(this,"value",a.prop(this,"value"))}});l.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(b){if(!b&&this)b=a(this).val(),(a("option:last-child",this)[0]||{}).selected=!0,a(this).val(b)}})})}catch(b){}(a.browser.opera||window.testGoodWithFix)&&
|
47
|
+
v(function(){var b=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(c){var h=l.defineNodeNameProperty(c,"checkValidity",{prop:{value:function(){l.fromSubmit||a(this).bind("invalid.checkvalidity",b);l.fromCheckValidity=!0;var g=h.prop._supvalue.apply(this,arguments);l.fromSubmit||a(this).unbind("invalid.checkvalidity",b);l.fromCheckValidity=!1;return g}}})});c.input.list&&!(a("<datalist><select><option></option></select></datalist>").prop("options")||[]).length&&
|
48
|
+
l.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var b=this.options||[];if(!b.length){var c=a("select",this);if(c[0]&&c[0].options&&c[0].options.length)b=c[0].options}return b}}})})};p.appendTo("head");if(window.opera||window.testGoodWithFix){h();k.validationMessage=!q.prop("validationMessage");if((c.inputtypes||{}).date){try{q.prop("valueAsNumber",0)}catch(o){}k.valueAsNumberSet="1970-01-01"!=q.prop("value")}q.prop("value","")}p.bind("submit",function(a){c.bugfreeformvalidation=
|
49
|
+
!1;r(a)});u=setTimeout(function(){p&&p.triggerHandler("submit")},9);a("input, select",p).bind("invalid",r).filter('[type="submit"]').bind("click",function(a){a.stopImmediatePropagation()}).trigger("click")}})(jQuery);
|
50
|
+
jQuery.webshims.register("form-core",function(a,c,l,k,p,h){var q={radio:1},u={checkbox:1,radio:1},v=a([]),r=c.bugs,o=function(b){var b=a(b),c,h;c=v;if(q[b[0].type])h=b.prop("form"),c=(c=b[0].name)?h?a(h[c]):a(k.getElementsByName(c)).filter(function(){return!a.prop(this,"form")}):b,c=c.filter('[type="radio"]');return c},w=c.getContentValidationMessage=function(b,c,h){var d=a(b).data("errormessage")||b.getAttribute("x-moz-errormessage")||"";h&&d[h]&&(d=d[h]);"object"==typeof d&&(c=c||a.prop(b,"validity")||
|
51
|
+
{valid:1},c.valid||a.each(c,function(a,b){if(b&&"valid"!=a&&d[a])return d=d[a],!1}));if("object"==typeof d)d=d.defaultMessage;return d||""},x={number:1,range:1,date:1};a.extend(a.expr.filters,{"valid-element":function(b){return!(!a.prop(b,"willValidate")||!(a.prop(b,"validity")||{valid:1}).valid)},"invalid-element":function(b){return!(!a.prop(b,"willValidate")||(a.prop(b,"validity")||{valid:1}).valid)},"required-element":function(b){return!(!a.prop(b,"willValidate")||!a.prop(b,"required"))},"optional-element":function(b){return!!(a.prop(b,
|
52
|
+
"willValidate")&&!1===a.prop(b,"required"))},"in-range":function(b){if(!x[a.prop(b,"type")]||!a.prop(b,"willValidate"))return!1;b=a.prop(b,"validity");return!(!b||b.rangeOverflow||b.rangeUnderflow)},"out-of-range":function(b){if(!x[a.prop(b,"type")]||!a.prop(b,"willValidate"))return!1;b=a.prop(b,"validity");return!(!b||!b.rangeOverflow&&!b.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(b){a.expr.filters[b]=a.expr.filters[b+"-element"]});a.expr.filters.focus=function(a){try{var b=
|
53
|
+
a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())}catch(c){}return!1};var b=a.event.customEvent||{};(r.bustedValidity||r.findRequired||!Modernizr.bugfreeformvalidation)&&function(){var b=a.find,c=a.find.matchesSelector,h=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,d=function(a){return a+"-element"};a.find=function(){var a=Array.prototype.slice,f=function(f){var c=arguments,c=a.call(c,1,c.length);c.unshift(f.replace(h,d));return b.apply(this,
|
54
|
+
c)},c;for(c in b)b.hasOwnProperty(c)&&(f[c]=b[c]);return f}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",k.documentElement))a.find.matchesSelector=function(a,b){b=b.replace(h,d);return c.call(this,a,b)}}();var i=a.prop,t={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(b,c,h){var d=i.apply(this,arguments);if(b&&"form"in b&&t[c]&&h!==p&&a(b).hasClass("form-ui-invalid")&&(a.prop(b,"validity")||{valid:1}).valid)a(b).getShadowElement().removeClass("form-ui-invalid"),
|
55
|
+
"checked"==c&&h&&o(b).not(b).removeClass("form-ui-invalid").removeAttr("aria-invalid");return d};var j=function(b,c){var h;a.each(b,function(b,e){if(e)return h="customError"==b?a.prop(c,"validationMessage"):b,!1});return h};a(k).bind(h.validityUIEvents||"focusout change refreshvalidityui",function(b){if(b.target&&"submit"!=b.target.type&&a.prop(b.target,"willValidate")){var c=a.data(b.target,"webshimsswitchvalidityclass"),h=function(){var d=a(b.target).getNativeElement().trigger("refreshCustomValidityRules")[0],
|
56
|
+
e=a.prop(d,"validity"),c=a(d).getShadowElement(),h,m,i,k;e.valid?c.hasClass("form-ui-valid")||(h="form-ui-valid",m="form-ui-invalid",k="changedvaliditystate",i="changedvalid",u[d.type]&&d.checked&&o(d).not(d).removeClass(m).addClass(h).removeAttr("aria-invalid"),a.removeData(d,"webshimsinvalidcause")):(e=j(e,d),a.data(d,"webshimsinvalidcause")!=e&&(a.data(d,"webshimsinvalidcause",e),k="changedvaliditystate"),c.hasClass("form-ui-invalid")||(h="form-ui-invalid",m="form-ui-valid",u[d.type]&&!d.checked&&
|
57
|
+
o(d).not(d).removeClass(m).addClass(h),i="changedinvalid"));h&&(c.addClass(h).removeClass(m),setTimeout(function(){a(d).trigger(i)},0));k&&setTimeout(function(){a(d).trigger(k)},0);a.removeData(b.target,"webshimsswitchvalidityclass")};c&&clearTimeout(c);"refreshvalidityui"==b.type?h():a.data(b.target,"webshimsswitchvalidityclass",setTimeout(h,9))}});b.changedvaliditystate=!0;b.refreshCustomValidityRules=!0;b.changedvalid=!0;b.changedinvalid=!0;b.refreshvalidityui=!0;c.triggerInlineForm=function(b,
|
58
|
+
c){a(b).trigger(c)};c.modules["form-core"].getGroupElements=o;r=function(){c.scrollRoot=a.browser.webkit||"BackCompat"==k.compatMode?a(k.body):a(k.documentElement)};r();c.ready("DOM",r);c.getRelOffset=function(b,c){var b=a(b),h=a(c).offset(),d;a.swap(a(b)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){d=b.offset()});h.top-=d.top;h.left-=d.left;return h};c.validityAlert=function(){var b=!a.browser.msie||7<parseInt(a.browser.version,10)?"span":"label",h,i=!1,d=!1,e,f={hideDelay:5E3,
|
59
|
+
showFor:function(b,c,g,k){f._create();var b=a(b),j=a(b).getShadowElement(),q=f.getOffsetFromBody(j);f.clear();k?this.hide():(this.getMessage(b,c),this.position(j,q),h.css({fontSize:b.css("fontSize"),fontFamily:b.css("fontFamily")}),this.show(),this.hideDelay&&(i=setTimeout(e,this.hideDelay)),a(l).bind("resize.validityalert orientationchange.validityalert emchange.validityalert",function(){clearTimeout(d);d=setTimeout(function(){f.position(j)},9)}));g||this.setFocus(j,q)},getOffsetFromBody:function(a){return c.getRelOffset(h,
|
60
|
+
a)},setFocus:function(d,f){var i=a(d).getShadowFocusElement(),j=c.scrollRoot.scrollTop(),q=(f||i.offset()).top-30,l;c.getID&&"label"==b&&h.attr("for",c.getID(i));j>q&&(c.scrollRoot.animate({scrollTop:q-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(j-q)),80)}),l=!0);try{i[0].focus()}catch(o){}l&&(c.scrollRoot.scrollTop(j),setTimeout(function(){c.scrollRoot.scrollTop(j)},0));setTimeout(function(){a(k).bind("focusout.validityalert",e)},10)},getMessage:function(b,d){d||(d=w(b[0])||b.prop("validationMessage"));
|
61
|
+
d?a("span.va-box",h).text(d):this.hide()},position:function(b,d){d=d?a.extend({},d):f.getOffsetFromBody(b);d.top+=b.outerHeight();h.css(d)},show:function(){"none"===h.css("display")&&h.css({opacity:0}).show();h.addClass("va-visible").fadeTo(400,1)},hide:function(){h.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(i);a(k).unbind(".validityalert");a(l).unbind(".validityalert");h.stop().removeAttr("for")},_create:function(){if(!h)h=f.errorBubble=a("<"+b+' class="validity-alert-wrapper" role="alert"><span class="validity-alert"><span class="va-arrow"><span class="va-arrow-box"></span></span><span class="va-box"></span></span></'+
|
62
|
+
b+">").css({position:"absolute",display:"none"}),c.ready("DOM",function(){h.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&h.bgIframe()})}};e=a.proxy(f,"hide");return f}();(function(){var b,c=[],h;a(k).bind("invalid",function(d){if(!d.wrongWebkitInvalid){var e=a(d.target),f=e.getShadowElement();f.hasClass("form-ui-invalid")||(f.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){a(d.target).trigger("changedinvalid").trigger("changedvaliditystate")},
|
63
|
+
0));if(!b)b=a.Event("firstinvalid"),b.isInvalidUIPrevented=d.isDefaultPrevented,f=a.Event("firstinvalidsystem"),a(k).triggerHandler(f,{element:d.target,form:d.target.form,isInvalidUIPrevented:d.isDefaultPrevented}),e.trigger(b);b&&b.isDefaultPrevented()&&d.preventDefault();c.push(d.target);d.extraData="fix";clearTimeout(h);h=setTimeout(function(){var e={type:"lastinvalid",cancelable:!1,invalidlist:a(c)};b=!1;c=[];a(d.target).trigger(e,e)},9);f=e=null}})})();a.fn.getErrorMessage=function(){var b="",
|
64
|
+
c=this[0];c&&(b=w(c)||a.prop(c,"customValidationMessage")||a.prop(c,"validationMessage"));return b};h.replaceValidationUI&&c.ready("DOM",function(){a(k).bind("firstinvalid",function(b){b.isInvalidUIPrevented()||(b.preventDefault(),a.webshims.validityAlert.showFor(b.target,a(b.target).prop("customValidationMessage")))})})});
|
65
|
+
(function(a,c,l){var k=c.audio&&c.video,p=!1;if(k)a=document.createElement("video"),c.videoBuffered="buffered"in a,p="loop"in a,l.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(",")),c.videoBuffered||(l.addPolyfill("mediaelement-native-fix",{f:"mediaelement",test:c.videoBuffered,d:["dom-support"]}),l.reTest("mediaelement-native-fix"));jQuery.webshims.register("mediaelement-core",function(a,c,l,v,r){var o=c.mediaelement,w=c.cfg.mediaelement,
|
66
|
+
x=function(b,c){var b=a(b),f={src:b.attr("src")||"",elem:b,srcProp:b.prop("src")};if(!f.src)return f;var g=b.attr("type");if(g)f.type=g,f.container=a.trim(g.split(";")[0]);else if(c||(c=b[0].nodeName.toLowerCase(),"source"==c&&(c=(b.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),g=o.getTypeForSrc(f.src,c))f.type=g,f.container=g;if(g=b.attr("media"))f.media=g;return f},b=swfobject.hasFlashPlayerVersion("9.0.115"),i=function(){c.ready("mediaelement-swf",function(){if(!o.createSWF)c.modules["mediaelement-swf"].test=
|
67
|
+
a.noop,c.reTest(["mediaelement-swf"],k)})};o.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],"audio/mpeg":["mp2","mp3","mpga","mpega"],"audio/mp4":"mp4,mpg4,m4r,m4a,m4p,m4b,aac".split(","),"audio/wav":["wav"],"audio/3gpp":["3gp","3gpp"],"audio/webm":["webm"],"audio/fla":["flv","f4a","fla"],"application/x-mpegURL":["m3u8","m3u"]},video:{"video/ogg":["ogg","ogv","ogm"],"video/mpeg":["mpg","mpeg","mpe"],"video/mp4":["mp4","mpg4","m4v"],"video/quicktime":["mov","qt"],"video/x-msvideo":["avi"],"video/x-ms-asf":["asf",
|
68
|
+
"asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};o.mimeTypes.source=a.extend({},o.mimeTypes.audio,o.mimeTypes.video);o.getTypeForSrc=function(b,c){if(-1!=b.indexOf("youtube.com/watch?")||-1!=b.indexOf("youtube.com/v/"))return"video/youtube";var b=b.split("?")[0].split("."),b=b[b.length-1],f;a.each(o.mimeTypes[c],function(a,c){if(-1!==c.indexOf(b))return f=a,!1});return f};o.srces=function(b,c){b=a(b);if(c)b.removeAttr("src").removeAttr("type").find("source").remove(),
|
69
|
+
a.isArray(c)||(c=[c]),c.forEach(function(a){var c=v.createElement("source");"string"==typeof a&&(a={src:a});c.setAttribute("src",a.src);a.type&&c.setAttribute("type",a.type);a.media&&c.setAttribute("media",a.media);b.append(c)});else{var c=[],f=b[0].nodeName.toLowerCase(),g=x(b,f);g.src?c.push(g):a("source",b).each(function(){g=x(this,f);g.src&&c.push(g)});return c}};a.fn.loadMediaSrc=function(b,c){return this.each(function(){c!==r&&(a(this).removeAttr("poster"),c&&a.attr(this,"poster",c));o.srces(this,
|
70
|
+
b);a(this).mediaLoad()})};o.swfMimeTypes="video/3gpp,video/x-msvideo,video/quicktime,video/x-m4v,video/mp4,video/m4p,video/x-flv,video/flv,audio/mpeg,audio/aac,audio/mp4,audio/x-m4a,audio/m4a,audio/mp3,audio/x-fla,audio/fla,youtube/flv,jwplayer/jwplayer,video/youtube".split(",");o.canSwfPlaySrces=function(c,e){var f="";b&&(c=a(c),e=e||o.srces(c),a.each(e,function(a,b){if(b.container&&b.src&&-1!=o.swfMimeTypes.indexOf(b.container))return f=b,!1}));return f};var t={};o.canNativePlaySrces=function(b,
|
71
|
+
c){var f="";if(k){var b=a(b),g=(b[0].nodeName||"").toLowerCase();if(!t[g])return f;c=c||o.srces(b);a.each(c,function(a,c){if(c.type&&t[g].prop._supvalue.call(b[0],c.type))return f=c,!1})}return f};o.setError=function(b,e){e||(e="can't play sources");a(b).pause().data("mediaerror",e);c.warn("mediaelementError: "+e);setTimeout(function(){a(b).data("mediaerror")&&a(b).trigger("mediaerror")},1)};var j=function(){var a;return function(b,f,g){c.ready("mediaelement-swf",function(){o.createSWF?o.createSWF(b,
|
72
|
+
f,g):a||(a=!0,i(),j(b,f,g))})}}(),g=function(a,b,c,h,i){c||!1!==c&&b&&"flash"==b.isActive?(c=o.canSwfPlaySrces(a,h))?j(a,c,b):i?o.setError(a,!1):g(a,b,!1,h,!0):(c=o.canNativePlaySrces(a,h))?b&&"flash"==b.isActive&&o.setActive(a,"html5",b):i?(o.setError(a,!1),b&&"flash"==b.isActive&&o.setActive(a,"html5",b)):g(a,b,!0,h,!0)},m=/^(?:embed|object|datalist)$/i,s=function(b,e){var f=c.data(b,"mediaelementBase")||c.data(b,"mediaelementBase",{}),i=o.srces(b),j=b.parentNode;clearTimeout(f.loadTimer);a.data(b,
|
73
|
+
"mediaerror",!1);if(i.length&&j&&!(1!=j.nodeType||m.test(j.nodeName||"")))e=e||c.data(b,"mediaelement"),g(b,e,w.preferFlash||r,i)};a(v).bind("ended",function(b){var e=c.data(b.target,"mediaelement");(!p||e&&"html5"!=e.isActive||a.prop(b.target,"loop"))&&setTimeout(function(){!a.prop(b.target,"paused")&&a.prop(b.target,"loop")&&a(b.target).prop("currentTime",0).play()},1)});p||c.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(d){var e=c.defineNodeNameProperty(d,
|
74
|
+
"load",{prop:{value:function(){var a=c.data(this,"mediaelement");s(this,a);k&&(!a||"html5"==a.isActive)&&e.prop._supvalue&&e.prop._supvalue.apply(this,arguments)}}});t[d]=c.defineNodeNameProperty(d,"canPlayType",{prop:{value:function(c){var e="";k&&t[d].prop._supvalue&&(e=t[d].prop._supvalue.call(this,c),"no"==e&&(e=""));!e&&b&&(c=a.trim((c||"").split(";")[0]),-1!=o.swfMimeTypes.indexOf(c)&&(e="maybe"));return e}}})});c.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=
|
75
|
+
this,b=c.data(a,"mediaelementBase")||c.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){s(a);a=null},9)}});l=function(){c.addReady(function(b,e){a("video, audio",b).add(e.filter("video, audio")).each(function(){a.browser.msie&&8<c.browserVersion&&a.prop(this,"paused")&&!a.prop(this,"readyState")&&a(this).is('audio[preload="none"][controls]:not([autoplay])')?a(this).prop("preload","metadata").mediaLoad():s(this);if(k){var b,d,e=this,g=function(){var b=a.prop(e,
|
76
|
+
"buffered");if(b){for(var c="",d=0,f=b.length;d<f;d++)c+=b.end(d);return c}},i=function(){var b=g();b!=d&&(d=b,a(e).triggerHandler("progress"))};a(this).bind("play loadstart progress",function(a){"progress"==a.type&&(d=g());clearTimeout(b);b=setTimeout(i,999)}).bind("emptied stalled mediaerror abort suspend",function(a){"emptied"==a.type&&(d=!1);clearTimeout(b)})}})})};k?(c.isReady("mediaelement-core",!0),l(),b&&c.ready("WINDOWLOAD mediaelement",i)):c.ready("mediaelement-swf",l)})})(jQuery,Modernizr,
|
77
|
+
jQuery.webshims);
|
@@ -1,84 +1,91 @@
|
|
1
|
-
(function(a){var b=window.Modernizr,j=a.webshims,i=j.bugs,l=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required /><input type="date" required name="a" /><input type="submit" /></form>'),h=function(){if(l[0].querySelector)try{i.findRequired=!l[0].querySelector("select:required")}catch(a){i.findRequired=!1}};i.findRequired=!1;i.validationMessage=!1;i.valueAsNumberSet=!1;j.capturingEventPrevented=function(b){if(!b._isPolyfilled){var
|
2
|
-
|
3
|
-
a("input",l).eq(0),
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
"
|
10
|
-
a.
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
b
|
20
|
-
c
|
21
|
-
(c.
|
22
|
-
|
23
|
-
|
24
|
-
"
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
"
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
return function(b){return!a.test(b)}}()});b.
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
"
|
45
|
-
"
|
46
|
-
|
47
|
-
|
48
|
-
b
|
49
|
-
{
|
50
|
-
|
51
|
-
function(
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
(
|
56
|
-
a.
|
57
|
-
|
58
|
-
"
|
59
|
-
|
60
|
-
|
61
|
-
a.
|
62
|
-
|
63
|
-
"").
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
"
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
a(this
|
77
|
-
a(
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
(
|
82
|
-
b)
|
83
|
-
|
84
|
-
|
1
|
+
(function(a){var b=window.Modernizr,j=a.webshims,i=j.bugs,l=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input type="date" required="" name="a" /><input type="submit" /></form>'),h=function(){if(l[0].querySelector)try{i.findRequired=!l[0].querySelector("select:required")}catch(a){i.findRequired=!1}};i.findRequired=!1;i.validationMessage=!1;i.valueAsNumberSet=!1;j.capturingEventPrevented=function(b){if(!b._isPolyfilled){var d=b.isDefaultPrevented,
|
2
|
+
g=b.preventDefault;b.preventDefault=function(){clearTimeout(a.data(b.target,b.type+"DefaultPrevented"));a.data(b.target,b.type+"DefaultPrevented",setTimeout(function(){a.removeData(b.target,b.type+"DefaultPrevented")},30));return g.apply(this,arguments)};b.isDefaultPrevented=function(){return!(!d.apply(this,arguments)&&!a.data(b.target,b.type+"DefaultPrevented"))};b._isPolyfilled=!0}};if(!b.formvalidation||i.bustedValidity)h();else if(j.capturingEvents(["input"]),j.capturingEvents(["invalid"],!0),
|
3
|
+
b.bugfreeformvalidation=!0,window.opera||a.browser.webkit||window.testGoodWithFix){var d=a("input",l).eq(0),m,u=function(a){j.loader.loadList(["dom-extend"]);j.ready("dom-extend",a)},q=function(h){var i=["form-extend","form-message","form-native-fix"];h&&(h.preventDefault(),h.stopImmediatePropagation());clearTimeout(m);setTimeout(function(){l&&(l.remove(),l=d=null)},9);if(!b.bugfreeformvalidation)j.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),j.modules["form-extend"].test=a.noop;j.isReady("form-number-date-api")&&
|
4
|
+
i.push("form-number-date-api");j.reTest(i);if(d)try{d.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&u(function(){j.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(b){!b&&this&&a.prop(this,"value",a.prop(this,"value"))}});j.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(b){if(!b&&this)b=a(this).val(),(a("option:last-child",this)[0]||{}).selected=!0,a(this).val(b)}})})}catch(g){}(a.browser.opera||window.testGoodWithFix)&&
|
5
|
+
u(function(){var g=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(c){var b=j.defineNodeNameProperty(c,"checkValidity",{prop:{value:function(){j.fromSubmit||a(this).bind("invalid.checkvalidity",g);j.fromCheckValidity=!0;var c=b.prop._supvalue.apply(this,arguments);j.fromSubmit||a(this).unbind("invalid.checkvalidity",g);j.fromCheckValidity=!1;return c}}})});b.input.list&&!(a("<datalist><select><option></option></select></datalist>").prop("options")||[]).length&&
|
6
|
+
j.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var c=this.options||[];if(!c.length){var b=a("select",this);if(b[0]&&b[0].options&&b[0].options.length)c=b[0].options}return c}}})})};l.appendTo("head");if(window.opera||window.testGoodWithFix){h();i.validationMessage=!d.prop("validationMessage");if((b.inputtypes||{}).date){try{d.prop("valueAsNumber",0)}catch(t){}i.valueAsNumberSet="1970-01-01"!=d.prop("value")}d.prop("value","")}l.bind("submit",function(a){b.bugfreeformvalidation=
|
7
|
+
!1;q(a)});m=setTimeout(function(){l&&l.triggerHandler("submit")},9);a("input, select",l).bind("invalid",q).filter('[type="submit"]').bind("click",function(a){a.stopImmediatePropagation()}).trigger("click")}})(jQuery);
|
8
|
+
jQuery.webshims.register("form-core",function(a,b,j,i,l,h){var d={radio:1},m={checkbox:1,radio:1},u=a([]),q=b.bugs,t=function(c){var c=a(c),b,g;b=u;if(d[c[0].type])g=c.prop("form"),b=(b=c[0].name)?g?a(g[b]):a(i.getElementsByName(b)).filter(function(){return!a.prop(this,"form")}):c,b=b.filter('[type="radio"]');return b},n=b.getContentValidationMessage=function(c,b,g){var k=a(c).data("errormessage")||c.getAttribute("x-moz-errormessage")||"";g&&k[g]&&(k=k[g]);"object"==typeof k&&(b=b||a.prop(c,"validity")||
|
9
|
+
{valid:1},b.valid||a.each(b,function(a,c){if(c&&"valid"!=a&&k[a])return k=k[a],!1}));if("object"==typeof k)k=k.defaultMessage;return k||""},o={number:1,range:1,date:1};a.extend(a.expr.filters,{"valid-element":function(c){return!(!a.prop(c,"willValidate")||!(a.prop(c,"validity")||{valid:1}).valid)},"invalid-element":function(c){return!(!a.prop(c,"willValidate")||(a.prop(c,"validity")||{valid:1}).valid)},"required-element":function(c){return!(!a.prop(c,"willValidate")||!a.prop(c,"required"))},"optional-element":function(c){return!!(a.prop(c,
|
10
|
+
"willValidate")&&!1===a.prop(c,"required"))},"in-range":function(c){if(!o[a.prop(c,"type")]||!a.prop(c,"willValidate"))return!1;c=a.prop(c,"validity");return!(!c||c.rangeOverflow||c.rangeUnderflow)},"out-of-range":function(c){if(!o[a.prop(c,"type")]||!a.prop(c,"willValidate"))return!1;c=a.prop(c,"validity");return!(!c||!c.rangeOverflow&&!c.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(c){a.expr.filters[c]=a.expr.filters[c+"-element"]});a.expr.filters.focus=function(a){try{var c=
|
11
|
+
a.ownerDocument;return a===c.activeElement&&(!c.hasFocus||c.hasFocus())}catch(b){}return!1};var g=a.event.customEvent||{};(q.bustedValidity||q.findRequired||!Modernizr.bugfreeformvalidation)&&function(){var c=a.find,b=a.find.matchesSelector,k=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,g=function(a){return a+"-element"};a.find=function(){var a=Array.prototype.slice,b=function(b){var r=arguments,r=a.call(r,1,r.length);r.unshift(b.replace(k,g));return c.apply(this,
|
12
|
+
r)},r;for(r in c)c.hasOwnProperty(r)&&(b[r]=c[r]);return b}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",i.documentElement))a.find.matchesSelector=function(a,c){c=c.replace(k,g);return b.call(this,a,c)}}();var f=a.prop,c={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(b,k,g){var x=f.apply(this,arguments);if(b&&"form"in b&&c[k]&&g!==l&&a(b).hasClass("form-ui-invalid")&&(a.prop(b,"validity")||{valid:1}).valid)a(b).getShadowElement().removeClass("form-ui-invalid"),
|
13
|
+
"checked"==k&&g&&t(b).not(b).removeClass("form-ui-invalid").removeAttr("aria-invalid");return x};var k=function(c,b){var k;a.each(c,function(c,v){if(v)return k="customError"==c?a.prop(b,"validationMessage"):c,!1});return k};a(i).bind(h.validityUIEvents||"focusout change refreshvalidityui",function(c){if(c.target&&"submit"!=c.target.type&&a.prop(c.target,"willValidate")){var b=a.data(c.target,"webshimsswitchvalidityclass"),g=function(){var b=a(c.target).getNativeElement().trigger("refreshCustomValidityRules")[0],
|
14
|
+
g=a.prop(b,"validity"),r=a(b).getShadowElement(),f,w,s,d;g.valid?r.hasClass("form-ui-valid")||(f="form-ui-valid",w="form-ui-invalid",d="changedvaliditystate",s="changedvalid",m[b.type]&&b.checked&&t(b).not(b).removeClass(w).addClass(f).removeAttr("aria-invalid"),a.removeData(b,"webshimsinvalidcause")):(g=k(g,b),a.data(b,"webshimsinvalidcause")!=g&&(a.data(b,"webshimsinvalidcause",g),d="changedvaliditystate"),r.hasClass("form-ui-invalid")||(f="form-ui-invalid",w="form-ui-valid",m[b.type]&&!b.checked&&
|
15
|
+
t(b).not(b).removeClass(w).addClass(f),s="changedinvalid"));f&&(r.addClass(f).removeClass(w),setTimeout(function(){a(b).trigger(s)},0));d&&setTimeout(function(){a(b).trigger(d)},0);a.removeData(c.target,"webshimsswitchvalidityclass")};b&&clearTimeout(b);"refreshvalidityui"==c.type?g():a.data(c.target,"webshimsswitchvalidityclass",setTimeout(g,9))}});g.changedvaliditystate=!0;g.refreshCustomValidityRules=!0;g.changedvalid=!0;g.changedinvalid=!0;g.refreshvalidityui=!0;b.triggerInlineForm=function(c,
|
16
|
+
b){a(c).trigger(b)};b.modules["form-core"].getGroupElements=t;q=function(){b.scrollRoot=a.browser.webkit||"BackCompat"==i.compatMode?a(i.body):a(i.documentElement)};q();b.ready("DOM",q);b.getRelOffset=function(c,b){var c=a(c),g=a(b).offset(),k;a.swap(a(c)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){k=c.offset()});g.top-=k.top;g.left-=k.left;return g};b.validityAlert=function(){var c=!a.browser.msie||7<parseInt(a.browser.version,10)?"span":"label",g,k=!1,f=!1,d,p={hideDelay:5E3,
|
17
|
+
showFor:function(c,b,v,h){p._create();var c=a(c),i=a(c).getShadowElement(),z=p.getOffsetFromBody(i);p.clear();h?this.hide():(this.getMessage(c,b),this.position(i,z),g.css({fontSize:c.css("fontSize"),fontFamily:c.css("fontFamily")}),this.show(),this.hideDelay&&(k=setTimeout(d,this.hideDelay)),a(j).bind("resize.validityalert orientationchange.validityalert emchange.validityalert",function(){clearTimeout(f);f=setTimeout(function(){p.position(i)},9)}));v||this.setFocus(i,z)},getOffsetFromBody:function(a){return b.getRelOffset(g,
|
18
|
+
a)},setFocus:function(k,f){var s=a(k).getShadowFocusElement(),p=b.scrollRoot.scrollTop(),x=(f||s.offset()).top-30,h;b.getID&&"label"==c&&g.attr("for",b.getID(s));p>x&&(b.scrollRoot.animate({scrollTop:x-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(p-x)),80)}),h=!0);try{s[0].focus()}catch(A){}h&&(b.scrollRoot.scrollTop(p),setTimeout(function(){b.scrollRoot.scrollTop(p)},0));setTimeout(function(){a(i).bind("focusout.validityalert",d)},10)},getMessage:function(c,b){b||(b=n(c[0])||c.prop("validationMessage"));
|
19
|
+
b?a("span.va-box",g).text(b):this.hide()},position:function(c,b){b=b?a.extend({},b):p.getOffsetFromBody(c);b.top+=c.outerHeight();g.css(b)},show:function(){"none"===g.css("display")&&g.css({opacity:0}).show();g.addClass("va-visible").fadeTo(400,1)},hide:function(){g.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(k);a(i).unbind(".validityalert");a(j).unbind(".validityalert");g.stop().removeAttr("for")},_create:function(){if(!g)g=p.errorBubble=a("<"+c+' class="validity-alert-wrapper" role="alert"><span class="validity-alert"><span class="va-arrow"><span class="va-arrow-box"></span></span><span class="va-box"></span></span></'+
|
20
|
+
c+">").css({position:"absolute",display:"none"}),b.ready("DOM",function(){g.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&g.bgIframe()})}};d=a.proxy(p,"hide");return p}();(function(){var c,b=[],g;a(i).bind("invalid",function(k){if(!k.wrongWebkitInvalid){var f=a(k.target),d=f.getShadowElement();d.hasClass("form-ui-invalid")||(d.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){a(k.target).trigger("changedinvalid").trigger("changedvaliditystate")},
|
21
|
+
0));if(!c)c=a.Event("firstinvalid"),c.isInvalidUIPrevented=k.isDefaultPrevented,d=a.Event("firstinvalidsystem"),a(i).triggerHandler(d,{element:k.target,form:k.target.form,isInvalidUIPrevented:k.isDefaultPrevented}),f.trigger(c);c&&c.isDefaultPrevented()&&k.preventDefault();b.push(k.target);k.extraData="fix";clearTimeout(g);g=setTimeout(function(){var g={type:"lastinvalid",cancelable:!1,invalidlist:a(b)};c=!1;b=[];a(k.target).trigger(g,g)},9);d=f=null}})})();a.fn.getErrorMessage=function(){var c="",
|
22
|
+
b=this[0];b&&(c=n(b)||a.prop(b,"customValidationMessage")||a.prop(b,"validationMessage"));return c};h.replaceValidationUI&&b.ready("DOM",function(){a(i).bind("firstinvalid",function(c){c.isInvalidUIPrevented()||(c.preventDefault(),a.webshims.validityAlert.showFor(c.target,a(c.target).prop("customValidationMessage")))})})});
|
23
|
+
jQuery.webshims.register("form-message",function(a,b,j,i,l,h){var d=b.validityMessages,j=h.overrideMessages||h.customMessages?["customValidationMessage"]:[];d.en=d.en||d["en-US"]||{typeMismatch:{email:"Please enter an email address.",url:"Please enter a URL.",number:"Please enter a number.",date:"Please enter a date.",time:"Please enter a time.",range:"Invalid input.","datetime-local":"Please enter a datetime."},rangeUnderflow:{defaultMessage:"Value must be greater than or equal to {%min}."},rangeOverflow:{defaultMessage:"Value must be less than or equal to {%max}."},
|
24
|
+
stepMismatch:"Invalid input.",tooLong:"Please enter at most {%maxlength} character(s). You entered {%valueLen}.",patternMismatch:"Invalid input. {%title}",valueMissing:{defaultMessage:"Please fill out this field.",checkbox:"Please check this box if you want to proceed."}};["select","radio"].forEach(function(a){d.en.valueMissing[a]="Please select an option."});["date","time","datetime-local"].forEach(function(a){d.en.rangeUnderflow[a]="Value must be at or after {%min}."});["date","time","datetime-local"].forEach(function(a){d.en.rangeOverflow[a]=
|
25
|
+
"Value must be at or before {%max}."});d["en-US"]=d["en-US"]||d.en;d[""]=d[""]||d["en-US"];d.de=d.de||{typeMismatch:{email:"{%value} ist keine zul\u00e4ssige E-Mail-Adresse",url:"{%value} ist keine zul\u00e4ssige Webadresse",number:"{%value} ist keine Nummer!",date:"{%value} ist kein Datum",time:"{%value} ist keine Uhrzeit",range:"{%value} ist keine Nummer!","datetime-local":"{%value} ist kein Datum-Uhrzeit Format."},rangeUnderflow:{defaultMessage:"{%value} ist zu niedrig. {%min} ist der unterste Wert, den Sie benutzen k\u00f6nnen."},
|
26
|
+
rangeOverflow:{defaultMessage:"{%value} ist zu hoch. {%max} ist der oberste Wert, den Sie benutzen k\u00f6nnen."},stepMismatch:"Der Wert {%value} ist in diesem Feld nicht zul\u00e4ssig. Hier sind nur bestimmte Werte zul\u00e4ssig. {%title}",tooLong:"Der eingegebene Text ist zu lang! Sie haben {%valueLen} Zeichen eingegeben, dabei sind {%maxlength} das Maximum.",patternMismatch:"{%value} hat f\u00fcr dieses Eingabefeld ein falsches Format! {%title}",valueMissing:{defaultMessage:"Bitte geben Sie einen Wert ein",
|
27
|
+
checkbox:"Bitte aktivieren Sie das K\u00e4stchen"}};["select","radio"].forEach(function(a){d.de.valueMissing[a]="Bitte w\u00e4hlen Sie eine Option aus"});["date","time","datetime-local"].forEach(function(a){d.de.rangeUnderflow[a]="{%value} ist zu fr\u00fch. {%min} ist die fr\u00fcheste Zeit, die Sie benutzen k\u00f6nnen."});["date","time","datetime-local"].forEach(function(a){d.de.rangeOverflow[a]="{%value} ist zu sp\u00e4t. {%max} ist die sp\u00e4teste Zeit, die Sie benutzen k\u00f6nnen."});var m=
|
28
|
+
d[""];b.createValidationMessage=function(b,d){var h=m[d];h&&"string"!==typeof h&&(h=h[a.prop(b,"type")]||h[(b.nodeName||"").toLowerCase()]||h.defaultMessage);h&&"value,min,max,title,maxlength,label".split(",").forEach(function(d){if(-1!==h.indexOf("{%"+d)){var i=("label"==d?a.trim(a('label[for="'+b.id+'"]',b.form).text()).replace(/\*$|:$/,""):a.attr(b,d))||"";h=h.replace("{%"+d+"}",i);"value"==d&&(h=h.replace("{%valueLen}",i.length))}});return h||""};(b.bugs.validationMessage||!Modernizr.formvalidation||
|
29
|
+
b.bugs.bustedValidity)&&j.push("validationMessage");b.activeLang({langObj:d,module:"form-core",callback:function(a){m=a}});Modernizr.input.list&&!(a("<datalist><select><option></option></select></datalist>").prop("options")||[]).length&&b.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var b=this.options||[];if(!b.length){var d=a("select",this);if(d[0]&&d[0].options&&d[0].options.length)b=d[0].options}return b}}});j.forEach(function(d){b.defineNodeNamesProperty(["fieldset",
|
30
|
+
"output","button"],d,{prop:{value:"",writeable:!1}});["input","select","textarea"].forEach(function(h){var i=b.defineNodeNameProperty(h,d,{prop:{get:function(){var d=this,h="";if(!a.prop(d,"willValidate"))return h;var g=a.prop(d,"validity")||{valid:1};if(g.valid||(h=b.getContentValidationMessage(d,g)))return h;if(g.customError&&d.nodeName&&(h=Modernizr.formvalidation&&!b.bugs.bustedValidity&&i.prop._supget?i.prop._supget.call(d):b.data(d,"customvalidationMessage")))return h;a.each(g,function(a,c){if("valid"!=
|
31
|
+
a&&c&&(h=b.createValidationMessage(d,a)))return!1});return h||""},writeable:!1}})})})});
|
32
|
+
(!Modernizr.formvalidation||jQuery.webshims.bugs.bustedValidity)&&jQuery.webshims.register("form-extend",function(a,b,j,i){b.inputTypes=b.inputTypes||{};var l=b.cfg.forms,h,d=b.inputTypes,m={radio:1,checkbox:1};b.addInputType=function(a,b){d[a]=b};var u={customError:!1,typeMismatch:!1,rangeUnderflow:!1,rangeOverflow:!1,stepMismatch:!1,tooLong:!1,patternMismatch:!1,valueMissing:!1,valid:!0},q={valueMissing:function(c,g,v){if(!c.prop("required"))return!1;var f=!1;if(!("type"in v))v.type=(c[0].getAttribute("type")||
|
33
|
+
c[0].type||"").toLowerCase();if("select"==v.nodeName){if(g=!g)if(!(g=0>c[0].selectedIndex))c=c[0],g="select-one"==c.type&&2>c.size?!!a("> option:first-child",c).prop("selected"):!1;c=g}else c=m[v.type]?"checkbox"==v.type?!c.is(":checked"):!b.modules["form-core"].getGroupElements(c).filter(":checked")[0]:!g;return c},tooLong:function(){return!1},typeMismatch:function(a,b,g){if(""===b||"select"==g.nodeName)return!1;var f=!1;if(!("type"in g))g.type=(a[0].getAttribute("type")||a[0].type||"").toLowerCase();
|
34
|
+
if(d[g.type]&&d[g.type].mismatch)f=d[g.type].mismatch(b,a);else if("validity"in a[0])f=a[0].validity.typeMismatch;return f},patternMismatch:function(a,g,f){if(""===g||"select"==f.nodeName)return!1;a=a.attr("pattern");if(!a)return!1;try{a=RegExp("^(?:"+a+")$")}catch(d){b.error('invalid pattern value: "'+a+'" | '+d),a=!1}return!a?!1:!a.test(g)}};b.addValidityRule=function(a,b){q[a]=b};a.event.special.invalid={add:function(){a.event.special.invalid.setup.call(this.form||this)},setup:function(){var c=
|
35
|
+
this.form||this;if(!a.data(c,"invalidEventShim")&&(a(c).data("invalidEventShim",!0).bind("submit",a.event.special.invalid.handler),b.moveToFirstEvent(c,"submit"),b.bugs.bustedValidity&&a.nodeName(c,"form"))){var g=c.getAttribute("novalidate");c.setAttribute("novalidate","novalidate");b.data(c,"bustedNoValidate",null==g?null:g)}},teardown:a.noop,handler:function(c){if(!("submit"!=c.type||c.testedValidity||!c.originalEvent||!a.nodeName(c.target,"form")||a.prop(c.target,"noValidate"))){h=!0;c.testedValidity=
|
36
|
+
!0;if(!a(c.target).checkValidity())return c.stopImmediatePropagation(),h=!1;h=!1}}};a(i).bind("invalid",a.noop);a.event.special.submit=a.event.special.submit||{setup:function(){return!1}};var t=a.event.special.submit.setup;a.extend(a.event.special.submit,{setup:function(){a.nodeName(this,"form")?a(this).bind("invalid",a.noop):a("form",this).bind("invalid",a.noop);return t.apply(this,arguments)}});b.addInputType("email",{mismatch:function(){var a=l.emailReg||/^[a-zA-Z0-9.!#$%&'*+-\/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
|
37
|
+
return function(b){return!a.test(b)}}()});b.addInputType("url",{mismatch:function(){var a=l.urlReg||/^([a-z]([a-z]|\d|\+|-|\.)*):(\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?((\[(|(v[\da-f]{1,}\.(([a-z]|\d|-|\.|_|~)|[!\$&'\(\)\*\+,;=]|:)+))\])|((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=])*)(:\d*)?)(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*|(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)){0})(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;
|
38
|
+
return function(b){return!a.test(b)}}()});b.defineNodeNameProperty("input","type",{prop:{get:function(){var a=(this.getAttribute("type")||"").toLowerCase();return b.inputTypes[a]?a:this.type}}});b.defineNodeNamesProperties(["button","fieldset","output"],{checkValidity:{value:function(){return!0}},willValidate:{value:!1},setCustomValidity:{value:a.noop},validity:{writeable:!1,get:function(){return a.extend({},u)}}},"prop");var n=function(c){var g,f=a.prop(c,"validity");if(f)a.data(c,"cachedValidity",
|
39
|
+
f);else return!0;if(!f.valid){g=a.Event("invalid");var d=a(c).trigger(g);if(h&&!n.unhandledInvalids&&!g.isDefaultPrevented())b.validityAlert.showFor(d),n.unhandledInvalids=!0}a.removeData(c,"cachedValidity");return f.valid};b.defineNodeNameProperty("form","checkValidity",{prop:{value:function(){var c=!0,g=a("input,textarea,select",this).filter(function(){var a=b.data(this,"shadowData");return!a||!a.nativeElement||a.nativeElement===this});n.unhandledInvalids=!1;for(var f=0,d=g.length;f<d;f++)n(g[f])||
|
40
|
+
(c=!1);return c}}});b.defineNodeNamesProperties(["input","textarea","select"],{checkValidity:{value:function(){n.unhandledInvalids=!1;return n(a(this).getNativeElement()[0])}},setCustomValidity:{value:function(c){a.removeData(this,"cachedValidity");b.data(this,"customvalidationMessage",""+c)}},willValidate:{writeable:!1,get:function(){var c={button:1,reset:1,hidden:1,image:1};return function(){var b=a(this).getNativeElement()[0];return!(b.disabled||b.readOnly||c[b.type])}}()},validity:{writeable:!1,
|
41
|
+
get:function(){var c=a(this).getNativeElement(),g=c[0],f=a.data(g,"cachedValidity");if(f)return f;f=a.extend({},u);if(!a.prop(g,"willValidate")||"submit"==g.type)return f;var d=c.val(),h={nodeName:g.nodeName.toLowerCase()};f.customError=!!b.data(g,"customvalidationMessage");if(f.customError)f.valid=!1;a.each(q,function(a,b){if(b(c,d,h))f[a]=!0,f.valid=!1});a(this).getShadowFocusElement().attr("aria-invalid",f.valid?"false":"true");g=c=null;return f}}},"prop");b.defineNodeNamesBooleanProperty(["input",
|
42
|
+
"textarea","select"],"required",{set:function(c){a(this).getShadowFocusElement().attr("aria-required",!!c+"")},initAttr:!a.browser.msie||7<b.browserVersion});b.reflectProperties(["input"],["pattern"]);if(!("maxLength"in i.createElement("textarea"))){var o=function(){var c,b=0,g=a([]),f=1E9,d=function(){var a=g.prop("value"),c=a.length;c>b&&c>f&&(c=Math.max(b,f),g.prop("value",a.substr(0,c)));b=c},h=function(){clearTimeout(c);g.unbind(".maxlengthconstraint")};return function(i,p){h();if(-1<p)f=p,b=
|
43
|
+
a.prop(i,"value").length,g=a(i),g.bind("keydown.maxlengthconstraint keypress.maxlengthconstraint paste.maxlengthconstraint cut.maxlengthconstraint",function(){setTimeout(d,0)}),g.bind("keyup.maxlengthconstraint",d),g.bind("blur.maxlengthconstraint",h),c=setInterval(d,200)}}();o.update=function(c,b){a(c).is(":focus")&&(null==b&&(b=a.prop(c,"maxlength")),o(e.target,b))};a(i).bind("focusin",function(c){var b;"TEXTAREA"==c.target.nodeName&&-1<(b=a.prop(c.target,"maxlength"))&&o(c.target,b)});b.defineNodeNameProperty("textarea",
|
44
|
+
"maxlength",{attr:{set:function(a){this.setAttribute("maxlength",""+a);o.update(this)},get:function(){var a=this.getAttribute("maxlength");return null==a?void 0:a}},prop:{set:function(a){if("number"==typeof a||a&&a==1*a){if(0>a)throw"INDEX_SIZE_ERR";a=parseInt(a,10);this.setAttribute("maxlength",a);o.update(this,a)}else this.setAttribute("maxlength","0"),o.update(this,0)},get:function(){var a=this.getAttribute("maxlength");return("number"==typeof a||a&&a==1*a)&&0<=a?parseInt(a,10):-1}}});b.defineNodeNameProperty("textarea",
|
45
|
+
"maxLength",{prop:{set:function(c){a.prop(this,"maxlength",c)},get:function(){return a.prop(this,"maxlength")}}})}var g={submit:1,button:1,image:1},f={};[{name:"enctype",limitedTo:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},defaultProp:"application/x-www-form-urlencoded",proptype:"enum"},{name:"method",limitedTo:{get:1,post:1},defaultProp:"get",proptype:"enum"},{name:"action",proptype:"url"},{name:"target"},{name:"novalidate",propName:"noValidate",proptype:"boolean"}].forEach(function(c){var b=
|
46
|
+
"form"+(c.propName||c.name).replace(/^[a-z]/,function(a){return a.toUpperCase()}),d="form"+c.name,h=c.name,m="click.webshimssubmittermutate"+h,x=function(){if("form"in this&&g[this.type]){var f=a.prop(this,"form");if(f){var y=a.attr(this,d);if(null!=y&&(!c.limitedTo||y.toLowerCase()===a.prop(this,b))){var w=a.attr(f,h);a.attr(f,h,y);setTimeout(function(){if(null!=w)a.attr(f,h,w);else try{a(f).removeAttr(h)}catch(c){f.removeAttribute(h)}},9)}}}};switch(c.proptype){case "url":var j=i.createElement("form");
|
47
|
+
f[b]={prop:{set:function(c){a.attr(this,d,c)},get:function(){var c=a.attr(this,d);if(null==c)return"";j.setAttribute("action",c);return j.action}}};break;case "boolean":f[b]={prop:{set:function(c){c?a.attr(this,"formnovalidate","formnovalidate"):a(this).removeAttr("formnovalidate")},get:function(){return null!=a.attr(this,"formnovalidate")}}};break;case "enum":f[b]={prop:{set:function(c){a.attr(this,d,c)},get:function(){var b=a.attr(this,d);return!b||(b=b.toLowerCase())&&!c.limitedTo[b]?c.defaultProp:
|
48
|
+
b}}};break;default:f[b]={prop:{set:function(c){a.attr(this,d,c)},get:function(){var c=a.attr(this,d);return null!=c?c:""}}}}f[d]||(f[d]={});f[d].attr={set:function(c){f[d].attr._supset.call(this,c);a(this).unbind(m).bind(m,x)},get:function(){return f[d].attr._supget.call(this)}};f[d].initAttr=!0;f[d].removeAttr={value:function(){a(this).unbind(m);f[d].removeAttr._supvalue.call(this)}}});b.defineNodeNamesProperties(["input","button"],f);!a.support.getSetAttribute&&null==a("<form novalidate></form>").attr("novalidate")?
|
49
|
+
b.defineNodeNameProperty("form","novalidate",{attr:{set:function(a){this.setAttribute("novalidate",""+a)},get:function(){var a=this.getAttribute("novalidate");return null==a?void 0:a}}}):b.bugs.bustedValidity&&(b.defineNodeNameProperty("form","novalidate",{attr:{set:function(a){b.data(this,"bustedNoValidate",""+a)},get:function(){var a=b.data(this,"bustedNoValidate");return null==a?void 0:a}},removeAttr:{value:function(){b.data(this,"bustedNoValidate",null)}}}),a.each(["rangeUnderflow","rangeOverflow",
|
50
|
+
"stepMismatch"],function(a,b){q[b]=function(a){return(a[0].validity||{})[b]||!1}}));b.defineNodeNameProperty("form","noValidate",{prop:{set:function(c){c?a.attr(this,"novalidate","novalidate"):a(this).removeAttr("novalidate")},get:function(){return null!=a.attr(this,"novalidate")}}});a.browser.webkit&&Modernizr.inputtypes.date&&function(){var c={updateInput:1,input:1},g={date:1,time:1,"datetime-local":1},f={focusout:1,blur:1},d={updateInput:1,change:1},m=function(a){var b,g=!0,k=a.prop("value"),h=
|
51
|
+
k,s=function(b){if(a){var f=a.prop("value");f!==k&&(k=f,(!b||!c[b.type])&&a.trigger("input"));b&&d[b.type]&&(h=f);!g&&f!==h&&a.trigger("change")}},i,m=function(c){clearInterval(b);setTimeout(function(){c&&f[c.type]&&(g=!1);a&&(a.unbind("focusout blur",m).unbind("input change updateInput",s),s());a=null},1)};clearInterval(b);b=setInterval(s,160);clearTimeout(i);i=setTimeout(s,9);a.unbind("focusout blur",m).unbind("input change updateInput",s);a.bind("focusout blur",m).bind("input updateInput change",
|
52
|
+
s)};if(a.event.customEvent)a.event.customEvent.updateInput=!0;(function(){var c=function(c){var b=1,g,f;if("date"==c.type&&(h||!a(c).is(":focus")))if((f=c.value)&&10>f.length&&(f=f.split("-"))&&3==f.length){for(;3>b;b++)if(1==f[b].length)f[b]="0"+f[b];else if(2!=f[b].length){g=!0;break}if(!g)return f=f.join("-"),a.prop(c,"value",f),f}},g,f,d,k;g=b.defineNodeNameProperty("input","checkValidity",{prop:{value:function(){c(this);return g.prop._supvalue.apply(this,arguments)}}});f=b.defineNodeNameProperty("form",
|
53
|
+
"checkValidity",{prop:{value:function(){a("input",this).each(function(){c(this)});return f.prop._supvalue.apply(this,arguments)}}});d=b.defineNodeNameProperty("input","value",{prop:{set:function(){return d.prop._supset.apply(this,arguments)},get:function(){return c(this)||d.prop._supget.apply(this,arguments)}}});k=b.defineNodeNameProperty("input","validity",{prop:{writeable:!1,get:function(){c(this);return k.prop._supget.apply(this,arguments)}}});a(i).bind("change",function(a){isChangeSubmit=!0;c(a.target);
|
54
|
+
isChangeSubmit=!1})})();a(i).bind("focusin",function(c){c.target&&g[c.target.type]&&!c.target.readOnly&&!c.target.disabled&&m(a(c.target))})}();b.addReady(function(c,b){var g;a("form",c).add(b.filter("form")).bind("invalid",a.noop);try{if(c==i&&!("form"in(i.activeElement||{})))(g=a("input[autofocus], select[autofocus], textarea[autofocus]",c).eq(0).getShadowFocusElement()[0])&&g.offsetHeight&&g.offsetWidth&&g.focus()}catch(f){}});(function(){Modernizr.textareaPlaceholder=!!("placeholder"in a("<textarea />")[0]);
|
55
|
+
var c=a.browser.webkit&&Modernizr.textareaPlaceholder;if(!Modernizr.input.placeholder||!Modernizr.textareaPlaceholder||c){var g="over"==b.cfg.forms.placeholderType,f=["textarea"];Modernizr.input.placeholder||f.push("input");var d=function(a){if(a.setSelectionRange)return a.setSelectionRange(0,0),!0;if(a)return a=a.createTextRange(),a.collapse(!0),a.moveEnd("character",0),a.moveStart("character",0),a.select(),!0},h=function(c,b,f,h){!1===f&&(f=a.prop(c,"value"));if(!g&&"password"!=c.type){if(!f&&h&&
|
56
|
+
d(c)){var i;a(c).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",function(g){if(!g||!(17==g.keyCode||16==g.keyCode))c.value=a.prop(c,"value"),b.box.removeClass("placeholder-visible"),clearTimeout(i),a(c).unbind(".placeholderremove")}).bind("mousedown.placeholderremove drag.placeholderremove select.placeholderremove",function(){d(c);clearTimeout(i);i=setTimeout(function(){d(c)},9)}).bind("blur.placeholderremove",
|
57
|
+
function(){clearTimeout(i);a(c).unbind(".placeholderremove")});return}c.value=f}else if(!f&&h){a(c).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",function(g){if(!g||!(17==g.keyCode||16==g.keyCode))b.box.removeClass("placeholder-visible"),a(c).unbind(".placeholderremove")}).bind("blur.placeholderremove",function(){a(c).unbind(".placeholderremove")});return}b.box.removeClass("placeholder-visible")},i=function(c,
|
58
|
+
b,f,d,i){if(!d&&(d=a.data(c,"placeHolder"),!d))return;a(c).unbind(".placeholderremove");if("focus"==i||!i&&a(c).is(":focus"))("password"==c.type||g||a(c).hasClass("placeholder-visible"))&&h(c,d,"",!0);else if(!1===b&&(b=a.prop(c,"value")),b)h(c,d,b);else if(!1===f&&(f=a.attr(c,"placeholder")||""),f&&!b){b=d;!1===f&&(f=a.prop(c,"placeholder"));if(!g&&"password"!=c.type)c.value=f;b.box.addClass("placeholder-visible")}else h(c,d,b)},m=function(c){var c=a(c),b=c.prop("id"),g=!(!c.prop("title")&&!c.attr("aria-labelledby"));
|
59
|
+
!g&&b&&(g=!!a('label[for="'+b+'"]',c[0].form)[0]);g||(b||(b=a.webshims.getID(c)),g=!!a("label #"+b)[0]);return a(g?'<span class="placeholder-text"></span>':'<label for="'+b+'" class="placeholder-text"></label>')},l=function(){var c={text:1,search:1,url:1,email:1,password:1,tel:1};return{create:function(c){var b=a.data(c,"placeHolder");if(b)return b;b=a.data(c,"placeHolder",{});a(c).bind("focus.placeholder blur.placeholder",function(a){i(this,!1,!1,b,a.type);b.box["focus"==a.type?"addClass":"removeClass"]("placeholder-focused")});
|
60
|
+
c.form&&a(c.form).bind("reset.placeholder",function(a){setTimeout(function(){i(c,!1,!1,b,a.type)},0)});if("password"==c.type||g){b.text=m(c);b.box=a(c).wrap('<span class="placeholder-box placeholder-box-'+(c.nodeName||"").toLowerCase()+'" />').parent();b.text.insertAfter(c).bind("mousedown.placeholder",function(){i(this,!1,!1,b,"focus");try{setTimeout(function(){c.focus()},0)}catch(a){}return!1});a.each(["Left","Top"],function(g,f){var d=(parseInt(a.css(c,"padding"+f),10)||0)+Math.max(parseInt(a.css(c,
|
61
|
+
"margin"+f),10)||0,0)+(parseInt(a.css(c,"border"+f+"Width"),10)||0);b.text.css("padding"+f,d)});a.css(c,"lineHeight");var f={width:a(c).width(),height:a(c).height()},d=a.css(c,"float");a.each(["lineHeight","fontSize","fontFamily","fontWeight"],function(g,f){var d=a.css(c,f);b.text.css(f)!=d&&b.text.css(f,d)});f.width&&f.height&&b.text.css(f);"none"!==d&&b.box.addClass("placeholder-box-"+d)}else f=function(g){a(c).hasClass("placeholder-visible")&&(h(c,b,""),g&&"submit"==g.type&&setTimeout(function(){g.isDefaultPrevented()&&
|
62
|
+
i(c,!1,!1,b)},9))},a(j).bind("beforeunload",f),b.box=a(c),c.form&&a(c.form).submit(f);return b},update:function(g,f){if(!c[a.prop(g,"type")]&&!a.nodeName(g,"textarea"))b.warn("placeholder not allowed on type: "+a.prop(g,"type"));else{var d=l.create(g);d.text&&d.text.text(f);i(g,!1,f,d)}}}}();a.webshims.publicMethods={pHolder:l};f.forEach(function(a){b.defineNodeNameProperty(a,"placeholder",{attr:{set:function(a){c?(b.data(this,"textareaPlaceholder",a),this.placeholder=""):b.contentAttr(this,"placeholder",
|
63
|
+
a);l.update(this,a)},get:function(){return(c?b.data(this,"textareaPlaceholder"):"")||b.contentAttr(this,"placeholder")}},reflect:!0,initAttr:!0})});f.forEach(function(g){var f={},d;["attr","prop"].forEach(function(g){f[g]={set:function(f){var h;c&&(h=b.data(this,"textareaPlaceholder"));h||(h=b.contentAttr(this,"placeholder"));a.removeData(this,"cachedValidity");var k=d[g]._supset.call(this,f);h&&"value"in this&&i(this,f,h);return k},get:function(){return a(this).hasClass("placeholder-visible")?"":
|
64
|
+
d[g]._supget.call(this)}}});d=b.defineNodeNameProperty(g,"value",f)})}})()});
|
65
|
+
jQuery.webshims.ready("dom-support",function(a,b,j,i){(function(){if(!("value"in i.createElement("output"))){b.defineNodeNameProperty("output","value",{prop:{set:function(b){var d=a.data(this,"outputShim");d||(d=j(this));d(b)},get:function(){return b.contentAttr(this,"value")||a(this).text()||""}}});b.onNodeNamesPropertyModify("input","value",function(b,d,i){"removeAttr"!=i&&(d=a.data(this,"outputShim"))&&d(b)});var j=function(h){if(!h.getAttribute("aria-live")){var h=a(h),d=(h.text()||"").trim(),
|
66
|
+
m=h.attr("id"),j=h.attr("for"),l=a('<input class="output-shim" type="text" disabled name="'+(h.attr("name")||"")+'" value="'+d+'" style="display: none !important;" />').insertAfter(h),t=l[0].form||i,n=function(a){l[0].value=a;a=l[0].value;h.text(a);b.contentAttr(h[0],"value",a)};h[0].defaultValue=d;b.contentAttr(h[0],"value",d);h.attr({"aria-live":"polite"});m&&(l.attr("id",m),h.attr("aria-labelledby",b.getID(a('label[for="'+m+'"]',t))));j&&(m=b.getID(h),j.split(" ").forEach(function(a){(a=i.getElementById(a))&&
|
67
|
+
a.setAttribute("aria-controls",m)}));h.data("outputShim",n);l.data("outputShim",n);return n}};b.addReady(function(b,d){a("output",b).add(d.filter("output")).each(function(){j(this)})})}})();(function(){var j={updateInput:1,input:1},h={radio:1,checkbox:1,submit:1,button:1,image:1,reset:1,file:1,color:1},d=function(a){var d,h=a.prop("value"),i=function(g){if(a){var c=a.prop("value");c!==h&&(h=c,(!g||!j[g.type])&&b.triggerInlineForm&&b.triggerInlineForm(a[0],"input"))}},n,o=function(){clearTimeout(n);
|
68
|
+
n=setTimeout(i,9)},g=function(){a.unbind("focusout",g).unbind("keyup keypress keydown paste cut",o).unbind("input change updateInput",i);clearInterval(d);setTimeout(function(){i();a=null},1)};clearInterval(d);d=setInterval(i,99);o();a.bind("keyup keypress keydown paste cut",o).bind("focusout",g).bind("input updateInput change",i)};if(a.event.customEvent)a.event.customEvent.updateInput=!0;a(i).bind("focusin",function(b){b.target&&b.target.type&&!b.target.readOnly&&!b.target.disabled&&"input"==(b.target.nodeName||
|
69
|
+
"").toLowerCase()&&!h[b.target.type]&&d(a(b.target))})})();b.isReady("form-output",!0)});
|
70
|
+
jQuery.webshims.register("form-datalist",function(a,b,j,i,l){b.propTypes.element=function(h){b.createPropDefault(h,"attr");if(!h.prop)h.prop={get:function(){var b=h.attr.get.call(this);b&&(b=a("#"+b)[0])&&h.propNodeName&&!a.nodeName(b,h.propNodeName)&&(b=null);return b||null},writeable:!1}};(function(){var h=a.webshims.cfg.forms,d=Modernizr.input.list;if(!d||h.customDatalist){var m=0,u={submit:1,button:1,reset:1,hidden:1,range:1,date:1},q=a.browser.msie&&7>parseInt(a.browser.version,10),t={},n=function(a){if(!a)return[];
|
71
|
+
if(t[a])return t[a];var b;try{b=JSON.parse(localStorage.getItem("storedDatalistOptions"+a))}catch(c){}t[a]=b||[];return b||[]},o={_create:function(b){if(!u[a.prop(b.input,"type")]){var f=b.datalist,c=a.data(b.input,"datalistWidget");if(f&&c&&c.datalist!==f)c.datalist=f,c.id=b.id,c.shadowList.prop("className","datalist-polyfill "+(c.datalist.className||"")+" "+c.datalist.id+"-shadowdom"),h.positionDatalist?c.shadowList.insertAfter(b.input):c.shadowList.appendTo("body"),a(c.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",
|
72
|
+
a.proxy(c,"_resetListCached")),c._resetListCached();else if(f){if(!(c&&c.datalist===f)){m++;var d=this;this.hideList=a.proxy(d,"hideList");this.timedHide=function(){clearTimeout(d.hideTimer);d.hideTimer=setTimeout(d.hideList,9)};this.datalist=f;this.id=b.id;this.hasViewableData=!0;this._autocomplete=a.attr(b.input,"autocomplete");a.data(b.input,"datalistWidget",this);this.shadowList=a('<div class="datalist-polyfill '+(this.datalist.className||"")+" "+this.datalist.id+'-shadowdom" />');h.positionDatalist?
|
73
|
+
this.shadowList.insertAfter(b.input):this.shadowList.appendTo("body");this.index=-1;this.input=b.input;this.arrayOptions=[];this.shadowList.delegate("li","mouseenter.datalistWidget mousedown.datalistWidget click.datalistWidget",function(c){var f=a("li:not(.hidden-item)",d.shadowList),h="mousedown"==c.type||"click"==c.type;d.markItem(f.index(c.currentTarget),h,f);"click"==c.type&&(d.hideList(),a(b.input).trigger("datalistselect"));return"mousedown"!=c.type}).bind("focusout",this.timedHide);b.input.setAttribute("autocomplete",
|
74
|
+
"off");a(b.input).attr({"aria-haspopup":"true"}).bind("input.datalistWidget",function(){if(!d.triggeredByDatalist)d.changedValue=!1,d.showHideOptions()}).bind("keydown.datalistWidget",function(c){var f=c.keyCode,h;if(40==f&&!d.showList())return d.markItem(d.index+1,!0),!1;if(d.isListVisible){if(38==f)return d.markItem(d.index-1,!0),!1;if(!c.shiftKey&&(33==f||36==f))return d.markItem(0,!0),!1;if(!c.shiftKey&&(34==f||35==f))return c=a("li:not(.hidden-item)",d.shadowList),d.markItem(c.length-1,!0,c),
|
75
|
+
!1;if(13==f||27==f)return 13==f&&(h=a("li.active-item:not(.hidden-item)",d.shadowList),d.changeValue(a("li.active-item:not(.hidden-item)",d.shadowList))),d.hideList(),h&&h[0]&&a(b.input).trigger("datalistselect"),!1}}).bind("focus.datalistWidget",function(){a(this).hasClass("list-focus")&&d.showList()}).bind("mousedown.datalistWidget",function(){a(this).is(":focus")&&d.showList()}).bind("blur.datalistWidget",this.timedHide);a(this.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",
|
76
|
+
a.proxy(this,"_resetListCached"));this._resetListCached();b.input.form&&(b.input.name||b.input.id)&&a(b.input.form).bind("submit.datalistWidget"+b.input.id,function(){if(!a(b.input).hasClass("no-datalist-cache")){var c=a.prop(b.input,"value"),f=(b.input.name||b.input.id)+a.prop(b.input,"type");if(!d.storedOptions)d.storedOptions=n(f);if(c&&-1==d.storedOptions.indexOf(c)&&(d.storedOptions.push(c),c=d.storedOptions,f)){c=c||[];try{localStorage.setItem("storedDatalistOptions"+f,JSON.stringify(c))}catch(h){}}}});
|
77
|
+
a(j).bind("unload.datalist"+this.id+" beforeunload.datalist"+this.id,function(){d.destroy()})}}else c&&c.destroy()}},destroy:function(){var b=a.attr(this.input,"autocomplete");a(this.input).unbind(".datalistWidget").removeData("datalistWidget");this.shadowList.remove();a(i).unbind(".datalist"+this.id);a(j).unbind(".datalist"+this.id);this.input.form&&this.input.id&&a(this.input.form).unbind("submit.datalistWidget"+this.input.id);this.input.removeAttribute("aria-haspopup");b===l?this.input.removeAttribute("autocomplete"):
|
78
|
+
a(this.input).attr("autocomplete",b)},_resetListCached:function(a){var f=this,c;this.needsUpdate=!0;this.lastUpdatedValue=!1;this.lastUnfoundValue="";this.updateTimer||(j.QUnit||(c=a&&i.activeElement==f.input)?f.updateListOptions(c):b.ready("WINDOWLOAD",function(){f.updateTimer=setTimeout(function(){f.updateListOptions();f=null;m=1},200+100*m)}))},updateListOptions:function(b){this.needsUpdate=!1;clearTimeout(this.updateTimer);this.updateTimer=!1;this.shadowList.css({fontSize:a.css(this.input,"fontSize"),
|
79
|
+
fontFamily:a.css(this.input,"fontFamily")});this.searchStart=a(this.input).hasClass("search-start");var f=[],c=[],d=[],h,i,j,l;for(i=a.prop(this.datalist,"options"),j=0,l=i.length;j<l;j++){h=i[j];if(h.disabled)return;h={value:a(h).val()||"",text:a.trim(a.attr(h,"label")||h.textContent||h.innerText||a.text([h])||""),className:h.className||"",style:a.attr(h,"style")||""};h.text?h.text!=h.value&&(h.className+=" different-label-value"):h.text=h.value;c[j]=h.value;d[j]=h}if(!this.storedOptions)this.storedOptions=
|
80
|
+
a(this.input).hasClass("no-datalist-cache")?[]:n((this.input.name||this.input.id)+a.prop(this.input,"type"));this.storedOptions.forEach(function(a){-1==c.indexOf(a)&&d.push({value:a,text:a,className:"stored-suggest",style:""})});for(j=0,l=d.length;j<l;j++)i=d[j],f[j]='<li class="'+i.className+'" style="'+i.style+'" tabindex="-1" role="listitem"><span class="option-label">'+i.text+'</span> <span class="option-value">'+i.value+"</span></li>";this.arrayOptions=d;this.shadowList.html('<div class="datalist-outer-box"><div class="datalist-box"><ul role="list">'+
|
81
|
+
f.join("\n")+"</ul></div></div>");a.fn.bgIframe&&q&&this.shadowList.bgIframe();(b||this.isListVisible)&&this.showHideOptions()},showHideOptions:function(b){var f=a.prop(this.input,"value").toLowerCase();if(!(f===this.lastUpdatedValue||this.lastUnfoundValue&&0===f.indexOf(this.lastUnfoundValue))){this.lastUpdatedValue=f;var c=!1,d=this.searchStart,h=a("li",this.shadowList);f?this.arrayOptions.forEach(function(b,g){var i;if(!("lowerText"in b))b.lowerText=b.text!=b.value?b.text.toLowerCase()+b.value.toLowerCase():
|
82
|
+
b.text.toLowerCase();i=b.lowerText.indexOf(f);(i=d?!i:-1!==i)?(a(h[g]).removeClass("hidden-item"),c=!0):a(h[g]).addClass("hidden-item")}):h.length&&(h.removeClass("hidden-item"),c=!0);this.hasViewableData=c;!b&&c&&this.showList();if(!c)this.lastUnfoundValue=f,this.hideList()}},setPos:function(){this.shadowList.css({marginTop:0,marginLeft:0,marginRight:0,marginBottom:0});var g=h.positionDatalist?a(this.input).position():b.getRelOffset(this.shadowList,this.input);g.top+=a(this.input).outerHeight();
|
83
|
+
g.width=a(this.input).outerWidth()-(parseInt(this.shadowList.css("borderLeftWidth"),10)||0)-(parseInt(this.shadowList.css("borderRightWidth"),10)||0);this.shadowList.css({marginTop:"",marginLeft:"",marginRight:"",marginBottom:""}).css(g);return g},showList:function(){if(this.isListVisible)return!1;this.needsUpdate&&this.updateListOptions();this.showHideOptions(!0);if(!this.hasViewableData)return!1;this.isListVisible=!0;var b=this,f;b.setPos();b.shadowList.addClass("datalist-visible").find("li.active-item").removeClass("active-item");
|
84
|
+
a(i).unbind(".datalist"+b.id).bind("mousedown.datalist"+b.id+" focusin.datalist"+b.id,function(c){c.target===b.input||b.shadowList[0]===c.target||a.contains(b.shadowList[0],c.target)?(clearTimeout(b.hideTimer),setTimeout(function(){clearTimeout(b.hideTimer)},9)):b.timedHide()});a(j).unbind(".datalist"+b.id).bind("resize.datalist"+b.id+" orientationchange.datalist "+b.id+" emchange.datalist"+b.id,function(){clearTimeout(f);f=setTimeout(function(){b.setPos()},9)});clearTimeout(f);return!0},hideList:function(){if(!this.isListVisible)return!1;
|
85
|
+
var g=this,f=function(){g.changedValue&&a(g.input).trigger("change");g.changedValue=!1};g.shadowList.removeClass("datalist-visible list-item-active");g.index=-1;g.isListVisible=!1;if(g.changedValue){g.triggeredByDatalist=!0;b.triggerInlineForm&&b.triggerInlineForm(g.input,"input");if(a(g.input).is(":focus"))a(g.input).one("blur",f);else f();g.triggeredByDatalist=!1}a(i).unbind(".datalist"+g.id);a(j).unbind(".datalist"+g.id).bind("resize.datalist"+g.id+" orientationchange.datalist "+g.id+" emchange.datalist"+
|
86
|
+
g.id,function(){g.shadowList.css({top:0,left:0});a(j).unbind(".datalist"+g.id)});return!0},scrollIntoView:function(b){var f=a("ul",this.shadowList),c=a("div.datalist-box",this.shadowList),d=b.position();d.top-=(parseInt(f.css("paddingTop"),10)||0)+(parseInt(f.css("marginTop"),10)||0)+(parseInt(f.css("borderTopWidth"),10)||0);0>d.top?c.scrollTop(c.scrollTop()+d.top-2):(d.top+=b.outerHeight(),b=c.height(),d.top>b&&c.scrollTop(c.scrollTop()+(d.top-b)+2))},changeValue:function(b){if(b[0]){var b=a("span.option-value",
|
87
|
+
b).text(),f=a.prop(this.input,"value");if(b!=f)a(this.input).prop("value",b).triggerHandler("updateInput"),this.changedValue=!0}},markItem:function(b,f,c){c=c||a("li:not(.hidden-item)",this.shadowList);if(c.length)0>b?b=c.length-1:b>=c.length&&(b=0),c.removeClass("active-item"),this.shadowList.addClass("list-item-active"),c=c.filter(":eq("+b+")").addClass("active-item"),f&&(this.changeValue(c),this.scrollIntoView(c)),this.index=b}};(function(){d||b.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,
|
88
|
+
get:function(){var f=a("select",this);f[0]?f=f[0].options:(f=a("option",this).get(),f.length&&b.warn("you should wrap you option-elements for a datalist in a select element to support IE and other old browsers."));return f}}});var g={autocomplete:{attr:{get:function(){var b=a.data(this,"datalistWidget");return b?b._autocomplete:"autocomplete"in this?this.autocomplete:this.getAttribute("autocomplete")},set:function(b){var c=a.data(this,"datalistWidget");c?(c._autocomplete=b,"off"==b&&c.hideList()):
|
89
|
+
"autocomplete"in this?this.autocomplete=b:this.setAttribute("autocomplete",b)}}}};if(!d||!1 in a("<input />")[0])g.selectedOption={prop:{writeable:!1,get:function(){var b=a.prop(this,"list"),c=null,d;if(!b)return c;d=a.attr(this,"value");if(!d)return c;b=a.prop(b,"options");if(!b.length)return c;a.each(b,function(b,f){if(d==a.prop(f,"value"))return c=f,!1});return c}}};g.list=d?{attr:{get:function(){var f=b.contentAttr(this,"list");null!=f?this.removeAttribute("list"):f=a.data(this,"datalistListAttr");
|
90
|
+
return null==f?l:f},set:function(f){a.data(this,"datalistListAttr",f);b.objectCreate(o,l,{input:this,id:f,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"}:{attr:{get:function(){var a=b.contentAttr(this,"list");return null==a?l:a},set:function(d){b.contentAttr(this,"list",d);b.objectCreate(o,l,{input:this,id:d,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"};b.defineNodeNameProperties("input",g);if(a.event.customEvent)a.event.customEvent.updateDatalist=
|
91
|
+
!0,a.event.customEvent.updateInput=!0,a.event.customEvent.datalistselect=!0;b.addReady(function(a,b){b.filter("datalist > select, datalist, datalist > option, datalist > select > option").closest("datalist").triggerHandler("updateDatalist")})})()}})()});
|
@@ -1,30 +1,31 @@
|
|
1
|
-
(function(a){var b=window.Modernizr,
|
2
|
-
|
3
|
-
a("input",
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
"
|
10
|
-
a.
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
b
|
20
|
-
c
|
21
|
-
(c.
|
22
|
-
|
23
|
-
|
24
|
-
"
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
"
|
30
|
-
|
1
|
+
(function(a){var b=window.Modernizr,e=a.webshims,h=e.bugs,k=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input type="date" required="" name="a" /><input type="submit" /></form>'),n=function(){if(k[0].querySelector)try{h.findRequired=!k[0].querySelector("select:required")}catch(a){h.findRequired=!1}};h.findRequired=!1;h.validationMessage=!1;h.valueAsNumberSet=!1;e.capturingEventPrevented=function(d){if(!d._isPolyfilled){var b=d.isDefaultPrevented,
|
2
|
+
f=d.preventDefault;d.preventDefault=function(){clearTimeout(a.data(d.target,d.type+"DefaultPrevented"));a.data(d.target,d.type+"DefaultPrevented",setTimeout(function(){a.removeData(d.target,d.type+"DefaultPrevented")},30));return f.apply(this,arguments)};d.isDefaultPrevented=function(){return!(!b.apply(this,arguments)&&!a.data(d.target,d.type+"DefaultPrevented"))};d._isPolyfilled=!0}};if(!b.formvalidation||h.bustedValidity)n();else if(e.capturingEvents(["input"]),e.capturingEvents(["invalid"],!0),
|
3
|
+
b.bugfreeformvalidation=!0,window.opera||a.browser.webkit||window.testGoodWithFix){var g=a("input",k).eq(0),o,f=function(a){e.loader.loadList(["dom-extend"]);e.ready("dom-extend",a)},l=function(d){var m=["form-extend","form-message","form-native-fix"];d&&(d.preventDefault(),d.stopImmediatePropagation());clearTimeout(o);setTimeout(function(){k&&(k.remove(),k=g=null)},9);if(!b.bugfreeformvalidation)e.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),e.modules["form-extend"].test=a.noop;e.isReady("form-number-date-api")&&
|
4
|
+
m.push("form-number-date-api");e.reTest(m);if(g)try{g.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&f(function(){e.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(b){!b&&this&&a.prop(this,"value",a.prop(this,"value"))}});e.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(b){if(!b&&this)b=a(this).val(),(a("option:last-child",this)[0]||{}).selected=!0,a(this).val(b)}})})}catch(h){}(a.browser.opera||window.testGoodWithFix)&&
|
5
|
+
f(function(){var d=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(b){var f=e.defineNodeNameProperty(b,"checkValidity",{prop:{value:function(){e.fromSubmit||a(this).bind("invalid.checkvalidity",d);e.fromCheckValidity=!0;var c=f.prop._supvalue.apply(this,arguments);e.fromSubmit||a(this).unbind("invalid.checkvalidity",d);e.fromCheckValidity=!1;return c}}})});b.input.list&&!(a("<datalist><select><option></option></select></datalist>").prop("options")||[]).length&&
|
6
|
+
e.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var b=this.options||[];if(!b.length){var d=a("select",this);if(d[0]&&d[0].options&&d[0].options.length)b=d[0].options}return b}}})})};k.appendTo("head");if(window.opera||window.testGoodWithFix){n();h.validationMessage=!g.prop("validationMessage");if((b.inputtypes||{}).date){try{g.prop("valueAsNumber",0)}catch(m){}h.valueAsNumberSet="1970-01-01"!=g.prop("value")}g.prop("value","")}k.bind("submit",function(a){b.bugfreeformvalidation=
|
7
|
+
!1;l(a)});o=setTimeout(function(){k&&k.triggerHandler("submit")},9);a("input, select",k).bind("invalid",l).filter('[type="submit"]').bind("click",function(a){a.stopImmediatePropagation()}).trigger("click")}})(jQuery);
|
8
|
+
jQuery.webshims.register("form-core",function(a,b,e,h,k,n){var g={radio:1},o={checkbox:1,radio:1},f=a([]),l=b.bugs,m=function(c){var c=a(c),i,b;i=f;if(g[c[0].type])b=c.prop("form"),i=(i=c[0].name)?b?a(b[i]):a(h.getElementsByName(i)).filter(function(){return!a.prop(this,"form")}):c,i=i.filter('[type="radio"]');return i},d=b.getContentValidationMessage=function(c,b,d){var j=a(c).data("errormessage")||c.getAttribute("x-moz-errormessage")||"";d&&j[d]&&(j=j[d]);"object"==typeof j&&(b=b||a.prop(c,"validity")||
|
9
|
+
{valid:1},b.valid||a.each(b,function(a,c){if(c&&"valid"!=a&&j[a])return j=j[a],!1}));if("object"==typeof j)j=j.defaultMessage;return j||""},p={number:1,range:1,date:1};a.extend(a.expr.filters,{"valid-element":function(c){return!(!a.prop(c,"willValidate")||!(a.prop(c,"validity")||{valid:1}).valid)},"invalid-element":function(c){return!(!a.prop(c,"willValidate")||(a.prop(c,"validity")||{valid:1}).valid)},"required-element":function(c){return!(!a.prop(c,"willValidate")||!a.prop(c,"required"))},"optional-element":function(c){return!!(a.prop(c,
|
10
|
+
"willValidate")&&!1===a.prop(c,"required"))},"in-range":function(c){if(!p[a.prop(c,"type")]||!a.prop(c,"willValidate"))return!1;c=a.prop(c,"validity");return!(!c||c.rangeOverflow||c.rangeUnderflow)},"out-of-range":function(c){if(!p[a.prop(c,"type")]||!a.prop(c,"willValidate"))return!1;c=a.prop(c,"validity");return!(!c||!c.rangeOverflow&&!c.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(c){a.expr.filters[c]=a.expr.filters[c+"-element"]});a.expr.filters.focus=function(a){try{var b=
|
11
|
+
a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())}catch(d){}return!1};var q=a.event.customEvent||{};(l.bustedValidity||l.findRequired||!Modernizr.bugfreeformvalidation)&&function(){var c=a.find,b=a.find.matchesSelector,d=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,j=function(a){return a+"-element"};a.find=function(){var a=Array.prototype.slice,b=function(b){var i=arguments,i=a.call(i,1,i.length);i.unshift(b.replace(d,j));return c.apply(this,
|
12
|
+
i)},i;for(i in c)c.hasOwnProperty(i)&&(b[i]=c[i]);return b}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",h.documentElement))a.find.matchesSelector=function(a,c){c=c.replace(d,j);return b.call(this,a,c)}}();var r=a.prop,s={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(c,b,d){var j=r.apply(this,arguments);if(c&&"form"in c&&s[b]&&d!==k&&a(c).hasClass("form-ui-invalid")&&(a.prop(c,"validity")||{valid:1}).valid)a(c).getShadowElement().removeClass("form-ui-invalid"),
|
13
|
+
"checked"==b&&d&&m(c).not(c).removeClass("form-ui-invalid").removeAttr("aria-invalid");return j};var t=function(c,b){var d;a.each(c,function(c,f){if(f)return d="customError"==c?a.prop(b,"validationMessage"):c,!1});return d};a(h).bind(n.validityUIEvents||"focusout change refreshvalidityui",function(c){if(c.target&&"submit"!=c.target.type&&a.prop(c.target,"willValidate")){var b=a.data(c.target,"webshimsswitchvalidityclass"),d=function(){var b=a(c.target).getNativeElement().trigger("refreshCustomValidityRules")[0],
|
14
|
+
d=a.prop(b,"validity"),i=a(b).getShadowElement(),f,g,e,h;d.valid?i.hasClass("form-ui-valid")||(f="form-ui-valid",g="form-ui-invalid",h="changedvaliditystate",e="changedvalid",o[b.type]&&b.checked&&m(b).not(b).removeClass(g).addClass(f).removeAttr("aria-invalid"),a.removeData(b,"webshimsinvalidcause")):(d=t(d,b),a.data(b,"webshimsinvalidcause")!=d&&(a.data(b,"webshimsinvalidcause",d),h="changedvaliditystate"),i.hasClass("form-ui-invalid")||(f="form-ui-invalid",g="form-ui-valid",o[b.type]&&!b.checked&&
|
15
|
+
m(b).not(b).removeClass(g).addClass(f),e="changedinvalid"));f&&(i.addClass(f).removeClass(g),setTimeout(function(){a(b).trigger(e)},0));h&&setTimeout(function(){a(b).trigger(h)},0);a.removeData(c.target,"webshimsswitchvalidityclass")};b&&clearTimeout(b);"refreshvalidityui"==c.type?d():a.data(c.target,"webshimsswitchvalidityclass",setTimeout(d,9))}});q.changedvaliditystate=!0;q.refreshCustomValidityRules=!0;q.changedvalid=!0;q.changedinvalid=!0;q.refreshvalidityui=!0;b.triggerInlineForm=function(c,
|
16
|
+
b){a(c).trigger(b)};b.modules["form-core"].getGroupElements=m;l=function(){b.scrollRoot=a.browser.webkit||"BackCompat"==h.compatMode?a(h.body):a(h.documentElement)};l();b.ready("DOM",l);b.getRelOffset=function(c,b){var c=a(c),d=a(b).offset(),f;a.swap(a(c)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){f=c.offset()});d.top-=f.top;d.left-=f.left;return d};b.validityAlert=function(){var c=!a.browser.msie||7<parseInt(a.browser.version,10)?"span":"label",f,g=!1,j=!1,m,l={hideDelay:5E3,
|
17
|
+
showFor:function(c,b,d,h){l._create();var c=a(c),k=a(c).getShadowElement(),p=l.getOffsetFromBody(k);l.clear();h?this.hide():(this.getMessage(c,b),this.position(k,p),f.css({fontSize:c.css("fontSize"),fontFamily:c.css("fontFamily")}),this.show(),this.hideDelay&&(g=setTimeout(m,this.hideDelay)),a(e).bind("resize.validityalert orientationchange.validityalert emchange.validityalert",function(){clearTimeout(j);j=setTimeout(function(){l.position(k)},9)}));d||this.setFocus(k,p)},getOffsetFromBody:function(a){return b.getRelOffset(f,
|
18
|
+
a)},setFocus:function(d,g){var j=a(d).getShadowFocusElement(),e=b.scrollRoot.scrollTop(),l=(g||j.offset()).top-30,k;b.getID&&"label"==c&&f.attr("for",b.getID(j));e>l&&(b.scrollRoot.animate({scrollTop:l-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(e-l)),80)}),k=!0);try{j[0].focus()}catch(p){}k&&(b.scrollRoot.scrollTop(e),setTimeout(function(){b.scrollRoot.scrollTop(e)},0));setTimeout(function(){a(h).bind("focusout.validityalert",m)},10)},getMessage:function(c,b){b||(b=d(c[0])||c.prop("validationMessage"));
|
19
|
+
b?a("span.va-box",f).text(b):this.hide()},position:function(c,b){b=b?a.extend({},b):l.getOffsetFromBody(c);b.top+=c.outerHeight();f.css(b)},show:function(){"none"===f.css("display")&&f.css({opacity:0}).show();f.addClass("va-visible").fadeTo(400,1)},hide:function(){f.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(g);a(h).unbind(".validityalert");a(e).unbind(".validityalert");f.stop().removeAttr("for")},_create:function(){if(!f)f=l.errorBubble=a("<"+c+' class="validity-alert-wrapper" role="alert"><span class="validity-alert"><span class="va-arrow"><span class="va-arrow-box"></span></span><span class="va-box"></span></span></'+
|
20
|
+
c+">").css({position:"absolute",display:"none"}),b.ready("DOM",function(){f.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&f.bgIframe()})}};m=a.proxy(l,"hide");return l}();(function(){var c,b=[],d;a(h).bind("invalid",function(f){if(!f.wrongWebkitInvalid){var g=a(f.target),e=g.getShadowElement();e.hasClass("form-ui-invalid")||(e.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){a(f.target).trigger("changedinvalid").trigger("changedvaliditystate")},
|
21
|
+
0));if(!c)c=a.Event("firstinvalid"),c.isInvalidUIPrevented=f.isDefaultPrevented,e=a.Event("firstinvalidsystem"),a(h).triggerHandler(e,{element:f.target,form:f.target.form,isInvalidUIPrevented:f.isDefaultPrevented}),g.trigger(c);c&&c.isDefaultPrevented()&&f.preventDefault();b.push(f.target);f.extraData="fix";clearTimeout(d);d=setTimeout(function(){var d={type:"lastinvalid",cancelable:!1,invalidlist:a(b)};c=!1;b=[];a(f.target).trigger(d,d)},9);e=g=null}})})();a.fn.getErrorMessage=function(){var b="",
|
22
|
+
f=this[0];f&&(b=d(f)||a.prop(f,"customValidationMessage")||a.prop(f,"validationMessage"));return b};n.replaceValidationUI&&b.ready("DOM",function(){a(h).bind("firstinvalid",function(b){b.isInvalidUIPrevented()||(b.preventDefault(),a.webshims.validityAlert.showFor(b.target,a(b.target).prop("customValidationMessage")))})})});
|
23
|
+
jQuery.webshims.register("form-message",function(a,b,e,h,k,n){var g=b.validityMessages,e=n.overrideMessages||n.customMessages?["customValidationMessage"]:[];g.en=g.en||g["en-US"]||{typeMismatch:{email:"Please enter an email address.",url:"Please enter a URL.",number:"Please enter a number.",date:"Please enter a date.",time:"Please enter a time.",range:"Invalid input.","datetime-local":"Please enter a datetime."},rangeUnderflow:{defaultMessage:"Value must be greater than or equal to {%min}."},rangeOverflow:{defaultMessage:"Value must be less than or equal to {%max}."},
|
24
|
+
stepMismatch:"Invalid input.",tooLong:"Please enter at most {%maxlength} character(s). You entered {%valueLen}.",patternMismatch:"Invalid input. {%title}",valueMissing:{defaultMessage:"Please fill out this field.",checkbox:"Please check this box if you want to proceed."}};["select","radio"].forEach(function(a){g.en.valueMissing[a]="Please select an option."});["date","time","datetime-local"].forEach(function(a){g.en.rangeUnderflow[a]="Value must be at or after {%min}."});["date","time","datetime-local"].forEach(function(a){g.en.rangeOverflow[a]=
|
25
|
+
"Value must be at or before {%max}."});g["en-US"]=g["en-US"]||g.en;g[""]=g[""]||g["en-US"];g.de=g.de||{typeMismatch:{email:"{%value} ist keine zul\u00e4ssige E-Mail-Adresse",url:"{%value} ist keine zul\u00e4ssige Webadresse",number:"{%value} ist keine Nummer!",date:"{%value} ist kein Datum",time:"{%value} ist keine Uhrzeit",range:"{%value} ist keine Nummer!","datetime-local":"{%value} ist kein Datum-Uhrzeit Format."},rangeUnderflow:{defaultMessage:"{%value} ist zu niedrig. {%min} ist der unterste Wert, den Sie benutzen k\u00f6nnen."},
|
26
|
+
rangeOverflow:{defaultMessage:"{%value} ist zu hoch. {%max} ist der oberste Wert, den Sie benutzen k\u00f6nnen."},stepMismatch:"Der Wert {%value} ist in diesem Feld nicht zul\u00e4ssig. Hier sind nur bestimmte Werte zul\u00e4ssig. {%title}",tooLong:"Der eingegebene Text ist zu lang! Sie haben {%valueLen} Zeichen eingegeben, dabei sind {%maxlength} das Maximum.",patternMismatch:"{%value} hat f\u00fcr dieses Eingabefeld ein falsches Format! {%title}",valueMissing:{defaultMessage:"Bitte geben Sie einen Wert ein",
|
27
|
+
checkbox:"Bitte aktivieren Sie das K\u00e4stchen"}};["select","radio"].forEach(function(a){g.de.valueMissing[a]="Bitte w\u00e4hlen Sie eine Option aus"});["date","time","datetime-local"].forEach(function(a){g.de.rangeUnderflow[a]="{%value} ist zu fr\u00fch. {%min} ist die fr\u00fcheste Zeit, die Sie benutzen k\u00f6nnen."});["date","time","datetime-local"].forEach(function(a){g.de.rangeOverflow[a]="{%value} ist zu sp\u00e4t. {%max} ist die sp\u00e4teste Zeit, die Sie benutzen k\u00f6nnen."});var o=
|
28
|
+
g[""];b.createValidationMessage=function(b,g){var e=o[g];e&&"string"!==typeof e&&(e=e[a.prop(b,"type")]||e[(b.nodeName||"").toLowerCase()]||e.defaultMessage);e&&"value,min,max,title,maxlength,label".split(",").forEach(function(d){if(-1!==e.indexOf("{%"+d)){var g=("label"==d?a.trim(a('label[for="'+b.id+'"]',b.form).text()).replace(/\*$|:$/,""):a.attr(b,d))||"";e=e.replace("{%"+d+"}",g);"value"==d&&(e=e.replace("{%valueLen}",g.length))}});return e||""};(b.bugs.validationMessage||!Modernizr.formvalidation||
|
29
|
+
b.bugs.bustedValidity)&&e.push("validationMessage");b.activeLang({langObj:g,module:"form-core",callback:function(a){o=a}});Modernizr.input.list&&!(a("<datalist><select><option></option></select></datalist>").prop("options")||[]).length&&b.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var b=this.options||[];if(!b.length){var e=a("select",this);if(e[0]&&e[0].options&&e[0].options.length)b=e[0].options}return b}}});e.forEach(function(e){b.defineNodeNamesProperty(["fieldset",
|
30
|
+
"output","button"],e,{prop:{value:"",writeable:!1}});["input","select","textarea"].forEach(function(g){var h=b.defineNodeNameProperty(g,e,{prop:{get:function(){var d=this,e="";if(!a.prop(d,"willValidate"))return e;var f=a.prop(d,"validity")||{valid:1};if(f.valid||(e=b.getContentValidationMessage(d,f)))return e;if(f.customError&&d.nodeName&&(e=Modernizr.formvalidation&&!b.bugs.bustedValidity&&h.prop._supget?h.prop._supget.call(d):b.data(d,"customvalidationMessage")))return e;a.each(f,function(a,f){if("valid"!=
|
31
|
+
a&&f&&(e=b.createValidationMessage(d,a)))return!1});return e||""},writeable:!1}})})})});
|
@@ -1,38 +1,39 @@
|
|
1
|
-
jQuery.webshims.register("form-extend",function(a,b,
|
2
|
-
!k.time||!k.range||
|
3
|
-
"setCustomValidity",{prop:{value:function(
|
4
|
-
"input"==c?a(this).getNativeElement()[0]:this,v=
|
5
|
-
|
6
|
-
|
7
|
-
function(a,
|
8
|
-
b[0].options&&b[0].options.length)c=b[0].options}return c}}})}});
|
9
|
-
(function(a){var b=window.Modernizr,
|
10
|
-
|
11
|
-
a("input",k).eq(0),
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
"
|
18
|
-
a.
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
d
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
(b.
|
30
|
-
|
31
|
-
|
32
|
-
"
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
"
|
38
|
-
|
1
|
+
jQuery.webshims.register("form-extend",function(a,b,e,i,k,m){e=e.Modernizr;k=e.inputtypes;if(e.formvalidation&&!b.bugs.bustedValidity){var h=b.inputTypes,p={};b.addInputType=function(a,c){h[a]=c};b.addValidityRule=function(a,c){p[a]=c};b.addValidityRule("typeMismatch",function(a,c,g,b){if(""===c)return!1;b=b.typeMismatch;if(!("type"in g))g.type=(a[0].getAttribute("type")||"").toLowerCase();h[g.type]&&h[g.type].mismatch&&(b=h[g.type].mismatch(c,a));return b});var f=m.overrideMessages,l=!k.number||
|
2
|
+
!k.time||!k.range||f,n="customError,typeMismatch,rangeUnderflow,rangeOverflow,stepMismatch,tooLong,patternMismatch,valueMissing,valid".split(","),m=f?["value","checked"]:["value"],d=[],o=function(c,b){if(c){var g=(c.getAttribute&&c.getAttribute("type")||c.type||"").toLowerCase();if(f||h[g])f&&!b&&"radio"==g&&c.name?a(i.getElementsByName(c.name)).each(function(){a.prop(this,"validity")}):a.prop(c,"validity")}},q={};["input","textarea","select"].forEach(function(c){var w=b.defineNodeNameProperty(c,
|
3
|
+
"setCustomValidity",{prop:{value:function(g){var g=g+"",d="input"==c?a(this).getNativeElement()[0]:this;w.prop._supvalue.call(d,g);b.bugs.validationMessage&&b.data(d,"customvalidationMessage",g);l&&(b.data(d,"hasCustomError",!!g),o(d))}}});q[c]=w.prop._supvalue});if(l||f)m.push("min"),m.push("max"),m.push("step"),d.push("input");f&&(m.push("required"),m.push("pattern"),d.push("select"),d.push("textarea"));if(l){var r;d.forEach(function(c){var d=b.defineNodeNameProperty(c,"validity",{prop:{get:function(){if(!r){var g=
|
4
|
+
"input"==c?a(this).getNativeElement()[0]:this,v=d.prop._supget.call(g);if(!v)return v;var j={};n.forEach(function(a){j[a]=v[a]});if(!a.prop(g,"willValidate"))return j;r=!0;var x=a(g),e={type:(g.getAttribute&&g.getAttribute("type")||"").toLowerCase(),nodeName:(g.nodeName||"").toLowerCase()},i=x.val(),o=!!b.data(g,"hasCustomError"),l;r=!1;j.customError=o;if(j.valid&&j.customError)j.valid=!1;else if(!j.valid){var k=!0;a.each(j,function(a,c){if(c)return k=!1});if(k)j.valid=!0}a.each(p,function(a,d){j[a]=
|
5
|
+
d(x,i,e,j);if(j[a]&&(j.valid||!l)&&(f||h[e.type]&&h[e.type].mismatch))q[c].call(g,b.createValidationMessage(g,a)),j.valid=!1,l=!0});j.valid?(q[c].call(g,""),b.data(g,"hasCustomError",!1)):f&&!l&&!o&&a.each(j,function(a,d){if("valid"!==a&&d)return q[c].call(g,b.createValidationMessage(g,a)),!1});return j}},writeable:!1}})});m.forEach(function(a){b.onNodeNamesPropertyModify(d,a,function(){o(this)})});if(i.addEventListener){var s,t=function(c){if("form"in c.target){var b=c.target.form;clearTimeout(s);
|
6
|
+
o(c.target);b&&f&&a("input",b).each(function(){"password"==this.type&&o(this)})}};i.addEventListener("change",t,!0);f&&(i.addEventListener("blur",t,!0),i.addEventListener("keydown",function(a){13==a.keyCode&&t(a)},!0));i.addEventListener("input",function(a){clearTimeout(s);s=setTimeout(function(){o(a.target)},290)},!0)}var c=d.join(",");b.addReady(function(b,d){a(c,b).add(d.filter(c)).each(function(){a.prop(this,"validity")})});f&&b.ready("DOM form-message",function(){b.activeLang({register:"form-core",
|
7
|
+
callback:function(){a("input, select, textarea").getNativeElement().each(function(){if(!b.data(this,"hasCustomError")){var c=this,d=a.prop(c,"validity")||{valid:!0},g;d.valid||(g=(c.nodeName||"").toLowerCase(),a.each(d,function(a,d){if("valid"!==a&&d)return q[g].call(c,b.createValidationMessage(c,a)),!1}))}})}})})}b.defineNodeNameProperty("input","type",{prop:{get:function(){var a=(this.getAttribute("type")||"").toLowerCase();return b.inputTypes[a]?a:this.type}}});e.input.list&&!(a("<datalist><select><option></option></select></datalist>").prop("options")||
|
8
|
+
[]).length&&b.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var c=this.options||[];if(!c.length){var b=a("select",this);if(b[0]&&b[0].options&&b[0].options.length)c=b[0].options}return c}}})}});
|
9
|
+
(function(a){var b=window.Modernizr,e=a.webshims,i=e.bugs,k=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input type="date" required="" name="a" /><input type="submit" /></form>'),m=function(){if(k[0].querySelector)try{i.findRequired=!k[0].querySelector("select:required")}catch(a){i.findRequired=!1}};i.findRequired=!1;i.validationMessage=!1;i.valueAsNumberSet=!1;e.capturingEventPrevented=function(b){if(!b._isPolyfilled){var f=b.isDefaultPrevented,
|
10
|
+
h=b.preventDefault;b.preventDefault=function(){clearTimeout(a.data(b.target,b.type+"DefaultPrevented"));a.data(b.target,b.type+"DefaultPrevented",setTimeout(function(){a.removeData(b.target,b.type+"DefaultPrevented")},30));return h.apply(this,arguments)};b.isDefaultPrevented=function(){return!(!f.apply(this,arguments)&&!a.data(b.target,b.type+"DefaultPrevented"))};b._isPolyfilled=!0}};if(!b.formvalidation||i.bustedValidity)m();else if(e.capturingEvents(["input"]),e.capturingEvents(["invalid"],!0),
|
11
|
+
b.bugfreeformvalidation=!0,window.opera||a.browser.webkit||window.testGoodWithFix){var h=a("input",k).eq(0),p,f=function(a){e.loader.loadList(["dom-extend"]);e.ready("dom-extend",a)},l=function(d){var i=["form-extend","form-message","form-native-fix"];d&&(d.preventDefault(),d.stopImmediatePropagation());clearTimeout(p);setTimeout(function(){k&&(k.remove(),k=h=null)},9);if(!b.bugfreeformvalidation)e.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),e.modules["form-extend"].test=a.noop;e.isReady("form-number-date-api")&&
|
12
|
+
i.push("form-number-date-api");e.reTest(i);if(h)try{h.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&f(function(){e.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(b){!b&&this&&a.prop(this,"value",a.prop(this,"value"))}});e.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(b){if(!b&&this)b=a(this).val(),(a("option:last-child",this)[0]||{}).selected=!0,a(this).val(b)}})})}catch(l){}(a.browser.opera||window.testGoodWithFix)&&
|
13
|
+
f(function(){var d=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(b){var f=e.defineNodeNameProperty(b,"checkValidity",{prop:{value:function(){e.fromSubmit||a(this).bind("invalid.checkvalidity",d);e.fromCheckValidity=!0;var c=f.prop._supvalue.apply(this,arguments);e.fromSubmit||a(this).unbind("invalid.checkvalidity",d);e.fromCheckValidity=!1;return c}}})});b.input.list&&!(a("<datalist><select><option></option></select></datalist>").prop("options")||[]).length&&
|
14
|
+
e.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var b=this.options||[];if(!b.length){var d=a("select",this);if(d[0]&&d[0].options&&d[0].options.length)b=d[0].options}return b}}})})};k.appendTo("head");if(window.opera||window.testGoodWithFix){m();i.validationMessage=!h.prop("validationMessage");if((b.inputtypes||{}).date){try{h.prop("valueAsNumber",0)}catch(n){}i.valueAsNumberSet="1970-01-01"!=h.prop("value")}h.prop("value","")}k.bind("submit",function(a){b.bugfreeformvalidation=
|
15
|
+
!1;l(a)});p=setTimeout(function(){k&&k.triggerHandler("submit")},9);a("input, select",k).bind("invalid",l).filter('[type="submit"]').bind("click",function(a){a.stopImmediatePropagation()}).trigger("click")}})(jQuery);
|
16
|
+
jQuery.webshims.register("form-core",function(a,b,e,i,k,m){var h={radio:1},p={checkbox:1,radio:1},f=a([]),l=b.bugs,n=function(c){var c=a(c),b,d;b=f;if(h[c[0].type])d=c.prop("form"),b=(b=c[0].name)?d?a(d[b]):a(i.getElementsByName(b)).filter(function(){return!a.prop(this,"form")}):c,b=b.filter('[type="radio"]');return b},d=b.getContentValidationMessage=function(c,b,d){var g=a(c).data("errormessage")||c.getAttribute("x-moz-errormessage")||"";d&&g[d]&&(g=g[d]);"object"==typeof g&&(b=b||a.prop(c,"validity")||
|
17
|
+
{valid:1},b.valid||a.each(b,function(a,c){if(c&&"valid"!=a&&g[a])return g=g[a],!1}));if("object"==typeof g)g=g.defaultMessage;return g||""},o={number:1,range:1,date:1};a.extend(a.expr.filters,{"valid-element":function(c){return!(!a.prop(c,"willValidate")||!(a.prop(c,"validity")||{valid:1}).valid)},"invalid-element":function(c){return!(!a.prop(c,"willValidate")||(a.prop(c,"validity")||{valid:1}).valid)},"required-element":function(c){return!(!a.prop(c,"willValidate")||!a.prop(c,"required"))},"optional-element":function(c){return!!(a.prop(c,
|
18
|
+
"willValidate")&&!1===a.prop(c,"required"))},"in-range":function(c){if(!o[a.prop(c,"type")]||!a.prop(c,"willValidate"))return!1;c=a.prop(c,"validity");return!(!c||c.rangeOverflow||c.rangeUnderflow)},"out-of-range":function(c){if(!o[a.prop(c,"type")]||!a.prop(c,"willValidate"))return!1;c=a.prop(c,"validity");return!(!c||!c.rangeOverflow&&!c.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(c){a.expr.filters[c]=a.expr.filters[c+"-element"]});a.expr.filters.focus=function(a){try{var b=
|
19
|
+
a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())}catch(d){}return!1};var q=a.event.customEvent||{};(l.bustedValidity||l.findRequired||!Modernizr.bugfreeformvalidation)&&function(){var c=a.find,b=a.find.matchesSelector,d=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,g=function(a){return a+"-element"};a.find=function(){var a=Array.prototype.slice,b=function(b){var f=arguments,f=a.call(f,1,f.length);f.unshift(b.replace(d,g));return c.apply(this,
|
20
|
+
f)},f;for(f in c)c.hasOwnProperty(f)&&(b[f]=c[f]);return b}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",i.documentElement))a.find.matchesSelector=function(a,c){c=c.replace(d,g);return b.call(this,a,c)}}();var r=a.prop,s={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(c,b,d){var g=r.apply(this,arguments);if(c&&"form"in c&&s[b]&&d!==k&&a(c).hasClass("form-ui-invalid")&&(a.prop(c,"validity")||{valid:1}).valid)a(c).getShadowElement().removeClass("form-ui-invalid"),
|
21
|
+
"checked"==b&&d&&n(c).not(c).removeClass("form-ui-invalid").removeAttr("aria-invalid");return g};var t=function(c,b){var d;a.each(c,function(c,f){if(f)return d="customError"==c?a.prop(b,"validationMessage"):c,!1});return d};a(i).bind(m.validityUIEvents||"focusout change refreshvalidityui",function(c){if(c.target&&"submit"!=c.target.type&&a.prop(c.target,"willValidate")){var b=a.data(c.target,"webshimsswitchvalidityclass"),d=function(){var b=a(c.target).getNativeElement().trigger("refreshCustomValidityRules")[0],
|
22
|
+
d=a.prop(b,"validity"),f=a(b).getShadowElement(),h,e,i,u;d.valid?f.hasClass("form-ui-valid")||(h="form-ui-valid",e="form-ui-invalid",u="changedvaliditystate",i="changedvalid",p[b.type]&&b.checked&&n(b).not(b).removeClass(e).addClass(h).removeAttr("aria-invalid"),a.removeData(b,"webshimsinvalidcause")):(d=t(d,b),a.data(b,"webshimsinvalidcause")!=d&&(a.data(b,"webshimsinvalidcause",d),u="changedvaliditystate"),f.hasClass("form-ui-invalid")||(h="form-ui-invalid",e="form-ui-valid",p[b.type]&&!b.checked&&
|
23
|
+
n(b).not(b).removeClass(e).addClass(h),i="changedinvalid"));h&&(f.addClass(h).removeClass(e),setTimeout(function(){a(b).trigger(i)},0));u&&setTimeout(function(){a(b).trigger(u)},0);a.removeData(c.target,"webshimsswitchvalidityclass")};b&&clearTimeout(b);"refreshvalidityui"==c.type?d():a.data(c.target,"webshimsswitchvalidityclass",setTimeout(d,9))}});q.changedvaliditystate=!0;q.refreshCustomValidityRules=!0;q.changedvalid=!0;q.changedinvalid=!0;q.refreshvalidityui=!0;b.triggerInlineForm=function(b,
|
24
|
+
d){a(b).trigger(d)};b.modules["form-core"].getGroupElements=n;l=function(){b.scrollRoot=a.browser.webkit||"BackCompat"==i.compatMode?a(i.body):a(i.documentElement)};l();b.ready("DOM",l);b.getRelOffset=function(b,d){var b=a(b),f=a(d).offset(),g;a.swap(a(b)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){g=b.offset()});f.top-=g.top;f.left-=g.left;return f};b.validityAlert=function(){var c=!a.browser.msie||7<parseInt(a.browser.version,10)?"span":"label",f,h=!1,g=!1,l,j={hideDelay:5E3,
|
25
|
+
showFor:function(b,c,d,i){j._create();var b=a(b),n=a(b).getShadowElement(),o=j.getOffsetFromBody(n);j.clear();i?this.hide():(this.getMessage(b,c),this.position(n,o),f.css({fontSize:b.css("fontSize"),fontFamily:b.css("fontFamily")}),this.show(),this.hideDelay&&(h=setTimeout(l,this.hideDelay)),a(e).bind("resize.validityalert orientationchange.validityalert emchange.validityalert",function(){clearTimeout(g);g=setTimeout(function(){j.position(n)},9)}));d||this.setFocus(n,o)},getOffsetFromBody:function(a){return b.getRelOffset(f,
|
26
|
+
a)},setFocus:function(d,g){var h=a(d).getShadowFocusElement(),e=b.scrollRoot.scrollTop(),j=(g||h.offset()).top-30,n;b.getID&&"label"==c&&f.attr("for",b.getID(h));e>j&&(b.scrollRoot.animate({scrollTop:j-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(e-j)),80)}),n=!0);try{h[0].focus()}catch(o){}n&&(b.scrollRoot.scrollTop(e),setTimeout(function(){b.scrollRoot.scrollTop(e)},0));setTimeout(function(){a(i).bind("focusout.validityalert",l)},10)},getMessage:function(b,c){c||(c=d(b[0])||b.prop("validationMessage"));
|
27
|
+
c?a("span.va-box",f).text(c):this.hide()},position:function(b,c){c=c?a.extend({},c):j.getOffsetFromBody(b);c.top+=b.outerHeight();f.css(c)},show:function(){"none"===f.css("display")&&f.css({opacity:0}).show();f.addClass("va-visible").fadeTo(400,1)},hide:function(){f.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(h);a(i).unbind(".validityalert");a(e).unbind(".validityalert");f.stop().removeAttr("for")},_create:function(){if(!f)f=j.errorBubble=a("<"+c+' class="validity-alert-wrapper" role="alert"><span class="validity-alert"><span class="va-arrow"><span class="va-arrow-box"></span></span><span class="va-box"></span></span></'+
|
28
|
+
c+">").css({position:"absolute",display:"none"}),b.ready("DOM",function(){f.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&f.bgIframe()})}};l=a.proxy(j,"hide");return j}();(function(){var b,d=[],f;a(i).bind("invalid",function(g){if(!g.wrongWebkitInvalid){var h=a(g.target),e=h.getShadowElement();e.hasClass("form-ui-invalid")||(e.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){a(g.target).trigger("changedinvalid").trigger("changedvaliditystate")},
|
29
|
+
0));if(!b)b=a.Event("firstinvalid"),b.isInvalidUIPrevented=g.isDefaultPrevented,e=a.Event("firstinvalidsystem"),a(i).triggerHandler(e,{element:g.target,form:g.target.form,isInvalidUIPrevented:g.isDefaultPrevented}),h.trigger(b);b&&b.isDefaultPrevented()&&g.preventDefault();d.push(g.target);g.extraData="fix";clearTimeout(f);f=setTimeout(function(){var f={type:"lastinvalid",cancelable:!1,invalidlist:a(d)};b=!1;d=[];a(g.target).trigger(f,f)},9);e=h=null}})})();a.fn.getErrorMessage=function(){var b="",
|
30
|
+
f=this[0];f&&(b=d(f)||a.prop(f,"customValidationMessage")||a.prop(f,"validationMessage"));return b};m.replaceValidationUI&&b.ready("DOM",function(){a(i).bind("firstinvalid",function(b){b.isInvalidUIPrevented()||(b.preventDefault(),a.webshims.validityAlert.showFor(b.target,a(b.target).prop("customValidationMessage")))})})});
|
31
|
+
jQuery.webshims.register("form-message",function(a,b,e,i,k,m){var h=b.validityMessages,e=m.overrideMessages||m.customMessages?["customValidationMessage"]:[];h.en=h.en||h["en-US"]||{typeMismatch:{email:"Please enter an email address.",url:"Please enter a URL.",number:"Please enter a number.",date:"Please enter a date.",time:"Please enter a time.",range:"Invalid input.","datetime-local":"Please enter a datetime."},rangeUnderflow:{defaultMessage:"Value must be greater than or equal to {%min}."},rangeOverflow:{defaultMessage:"Value must be less than or equal to {%max}."},
|
32
|
+
stepMismatch:"Invalid input.",tooLong:"Please enter at most {%maxlength} character(s). You entered {%valueLen}.",patternMismatch:"Invalid input. {%title}",valueMissing:{defaultMessage:"Please fill out this field.",checkbox:"Please check this box if you want to proceed."}};["select","radio"].forEach(function(a){h.en.valueMissing[a]="Please select an option."});["date","time","datetime-local"].forEach(function(a){h.en.rangeUnderflow[a]="Value must be at or after {%min}."});["date","time","datetime-local"].forEach(function(a){h.en.rangeOverflow[a]=
|
33
|
+
"Value must be at or before {%max}."});h["en-US"]=h["en-US"]||h.en;h[""]=h[""]||h["en-US"];h.de=h.de||{typeMismatch:{email:"{%value} ist keine zul\u00e4ssige E-Mail-Adresse",url:"{%value} ist keine zul\u00e4ssige Webadresse",number:"{%value} ist keine Nummer!",date:"{%value} ist kein Datum",time:"{%value} ist keine Uhrzeit",range:"{%value} ist keine Nummer!","datetime-local":"{%value} ist kein Datum-Uhrzeit Format."},rangeUnderflow:{defaultMessage:"{%value} ist zu niedrig. {%min} ist der unterste Wert, den Sie benutzen k\u00f6nnen."},
|
34
|
+
rangeOverflow:{defaultMessage:"{%value} ist zu hoch. {%max} ist der oberste Wert, den Sie benutzen k\u00f6nnen."},stepMismatch:"Der Wert {%value} ist in diesem Feld nicht zul\u00e4ssig. Hier sind nur bestimmte Werte zul\u00e4ssig. {%title}",tooLong:"Der eingegebene Text ist zu lang! Sie haben {%valueLen} Zeichen eingegeben, dabei sind {%maxlength} das Maximum.",patternMismatch:"{%value} hat f\u00fcr dieses Eingabefeld ein falsches Format! {%title}",valueMissing:{defaultMessage:"Bitte geben Sie einen Wert ein",
|
35
|
+
checkbox:"Bitte aktivieren Sie das K\u00e4stchen"}};["select","radio"].forEach(function(a){h.de.valueMissing[a]="Bitte w\u00e4hlen Sie eine Option aus"});["date","time","datetime-local"].forEach(function(a){h.de.rangeUnderflow[a]="{%value} ist zu fr\u00fch. {%min} ist die fr\u00fcheste Zeit, die Sie benutzen k\u00f6nnen."});["date","time","datetime-local"].forEach(function(a){h.de.rangeOverflow[a]="{%value} ist zu sp\u00e4t. {%max} ist die sp\u00e4teste Zeit, die Sie benutzen k\u00f6nnen."});var p=
|
36
|
+
h[""];b.createValidationMessage=function(b,h){var e=p[h];e&&"string"!==typeof e&&(e=e[a.prop(b,"type")]||e[(b.nodeName||"").toLowerCase()]||e.defaultMessage);e&&"value,min,max,title,maxlength,label".split(",").forEach(function(d){if(-1!==e.indexOf("{%"+d)){var h=("label"==d?a.trim(a('label[for="'+b.id+'"]',b.form).text()).replace(/\*$|:$/,""):a.attr(b,d))||"";e=e.replace("{%"+d+"}",h);"value"==d&&(e=e.replace("{%valueLen}",h.length))}});return e||""};(b.bugs.validationMessage||!Modernizr.formvalidation||
|
37
|
+
b.bugs.bustedValidity)&&e.push("validationMessage");b.activeLang({langObj:h,module:"form-core",callback:function(a){p=a}});Modernizr.input.list&&!(a("<datalist><select><option></option></select></datalist>").prop("options")||[]).length&&b.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var b=this.options||[];if(!b.length){var e=a("select",this);if(e[0]&&e[0].options&&e[0].options.length)b=e[0].options}return b}}});e.forEach(function(f){b.defineNodeNamesProperty(["fieldset",
|
38
|
+
"output","button"],f,{prop:{value:"",writeable:!1}});["input","select","textarea"].forEach(function(e){var h=b.defineNodeNameProperty(e,f,{prop:{get:function(){var d=this,e="";if(!a.prop(d,"willValidate"))return e;var f=a.prop(d,"validity")||{valid:1};if(f.valid||(e=b.getContentValidationMessage(d,f)))return e;if(f.customError&&d.nodeName&&(e=Modernizr.formvalidation&&!b.bugs.bustedValidity&&h.prop._supget?h.prop._supget.call(d):b.data(d,"customvalidationMessage")))return e;a.each(f,function(a,f){if("valid"!=
|
39
|
+
a&&f&&(e=b.createValidationMessage(d,a)))return!1});return e||""},writeable:!1}})})})});
|