webshims-rails 0.3 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/webshims-rails.rb +1 -1
- data/lib/webshims-rails/version.rb +2 -2
- data/readme.textile +5 -3
- data/vendor/assets/javascripts/webshims/dev/extras/custom-validity.js +261 -0
- data/vendor/assets/javascripts/webshims/dev/extras/modernizr-custom.js +535 -0
- data/vendor/assets/javascripts/webshims/dev/extras/mousepress.js +60 -0
- data/vendor/assets/javascripts/webshims/dev/polyfiller.js +1171 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/README +62 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/canvas2png.js +42 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/flashcanvas.js +28 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/flashcanvas.swf +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/proxy.php +73 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/save.php +49 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/README +82 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/canvas2png.js +42 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/flash10canvas.swf +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/flash9canvas.swf +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/flashcanvas.js +31 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/proxy.php +73 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/save.php +49 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/1.js +1710 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/10.js +3317 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/11.js +1585 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/12.js +1587 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/13.js +1054 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/14.js +476 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/15.js +314 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/16.js +2101 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/17.js +2264 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/18.js +2161 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/19.js +2244 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/2.js +2294 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/20.js +1607 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/21.js +1635 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/22.js +2409 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/23.js +2168 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/24.js +2777 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/25.js +2204 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/26.js +2863 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/27.js +4079 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/3.js +2971 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/4.js +823 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/5.js +1078 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/59.js +1754 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/6.js +1230 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/7.js +1485 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/8.js +1442 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/9.js +2515 -0
- data/vendor/assets/javascripts/webshims/dev/shims/details.js +146 -0
- data/vendor/assets/javascripts/webshims/dev/shims/dom-extend.js +908 -0
- data/vendor/assets/javascripts/webshims/dev/shims/es5.js +802 -0
- data/vendor/assets/javascripts/webshims/dev/shims/excanvas.js +924 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-core.js +660 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-datalist.js +677 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-message.js +164 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-native-extend.js +256 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-native-fix.js +261 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-number-date-api.js +384 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-number-date-ui.js +847 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-shim-extend.js +1472 -0
- data/vendor/assets/javascripts/webshims/dev/shims/geolocation.js +168 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-ar.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-ch-ZN.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-de.txt +33 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-el.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-en.txt +34 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-es.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-fr.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-he.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-hi.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-hu.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-it.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-ja.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-nl.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-pt-PT.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-ru.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-sv.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/json-storage.js +308 -0
- data/vendor/assets/javascripts/webshims/dev/shims/jwplayer/license.txt +1 -0
- data/vendor/assets/javascripts/webshims/dev/shims/jwplayer/player.swf +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/jwplayer/readme.html +87 -0
- data/vendor/assets/javascripts/webshims/dev/shims/mediaelement-core.js +534 -0
- data/vendor/assets/javascripts/webshims/dev/shims/mediaelement-native-fix.js +99 -0
- data/vendor/assets/javascripts/webshims/dev/shims/mediaelement-swf.js +1074 -0
- data/vendor/assets/javascripts/webshims/dev/shims/mediaelement-yt.js +543 -0
- data/vendor/assets/javascripts/webshims/dev/shims/styles/details-arrows.png +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/styles/forms.png +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/styles/polyfill-loader.gif +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/styles/shim.css +677 -0
- data/vendor/assets/javascripts/webshims/dev/shims/swf/jwwebshims.swf +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/swf/localStorage.swf +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/track-ui.js +292 -0
- data/vendor/assets/javascripts/webshims/dev/shims/track.js +763 -0
- data/vendor/assets/javascripts/webshims/minified/extras/modernizr-custom.js +20 -20
- data/vendor/assets/javascripts/webshims/minified/polyfiller.js +29 -29
- data/vendor/assets/javascripts/webshims/minified/shims/combos/1.js +37 -33
- data/vendor/assets/javascripts/webshims/minified/shims/combos/10.js +83 -76
- data/vendor/assets/javascripts/webshims/minified/shims/combos/11.js +44 -42
- data/vendor/assets/javascripts/webshims/minified/shims/combos/12.js +43 -38
- data/vendor/assets/javascripts/webshims/minified/shims/combos/13.js +27 -25
- data/vendor/assets/javascripts/webshims/minified/shims/combos/16.js +60 -55
- data/vendor/assets/javascripts/webshims/minified/shims/combos/17.js +68 -64
- data/vendor/assets/javascripts/webshims/minified/shims/combos/18.js +60 -59
- data/vendor/assets/javascripts/webshims/minified/shims/combos/19.js +66 -64
- data/vendor/assets/javascripts/webshims/minified/shims/combos/2.js +74 -69
- data/vendor/assets/javascripts/webshims/minified/shims/combos/20.js +46 -43
- data/vendor/assets/javascripts/webshims/minified/shims/combos/21.js +52 -47
- data/vendor/assets/javascripts/webshims/minified/shims/combos/22.js +61 -57
- data/vendor/assets/javascripts/webshims/minified/shims/combos/23.js +68 -60
- data/vendor/assets/javascripts/webshims/minified/shims/combos/24.js +82 -77
- data/vendor/assets/javascripts/webshims/minified/shims/combos/25.js +58 -0
- data/vendor/assets/javascripts/webshims/minified/shims/combos/26.js +80 -0
- data/vendor/assets/javascripts/webshims/minified/shims/combos/27.js +103 -0
- data/vendor/assets/javascripts/webshims/minified/shims/combos/3.js +96 -91
- data/vendor/assets/javascripts/webshims/minified/shims/combos/4.js +30 -31
- data/vendor/assets/javascripts/webshims/minified/shims/combos/5.js +37 -39
- data/vendor/assets/javascripts/webshims/minified/shims/combos/59.js +59 -61
- data/vendor/assets/javascripts/webshims/minified/shims/combos/6.js +31 -29
- data/vendor/assets/javascripts/webshims/minified/shims/combos/7.js +38 -37
- data/vendor/assets/javascripts/webshims/minified/shims/combos/8.js +38 -33
- data/vendor/assets/javascripts/webshims/minified/shims/combos/9.js +68 -63
- data/vendor/assets/javascripts/webshims/minified/shims/dom-extend.js +22 -20
- data/vendor/assets/javascripts/webshims/minified/shims/es5.js +15 -14
- data/vendor/assets/javascripts/webshims/minified/shims/form-core.js +22 -22
- data/vendor/assets/javascripts/webshims/minified/shims/form-datalist.js +22 -22
- data/vendor/assets/javascripts/webshims/minified/shims/form-message.js +8 -9
- data/vendor/assets/javascripts/webshims/minified/shims/form-native-extend.js +7 -8
- data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-ui.js +23 -21
- data/vendor/assets/javascripts/webshims/minified/shims/form-shim-extend.js +44 -33
- data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-sv.js +3 -0
- data/vendor/assets/javascripts/webshims/minified/shims/jwplayer/player.swf +0 -0
- data/vendor/assets/javascripts/webshims/minified/shims/jwplayer/readme.html +86 -86
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-core.js +16 -13
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-swf.js +30 -30
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-yt.js +14 -0
- data/vendor/assets/javascripts/webshims/minified/shims/styles/shim.css +71 -10
- data/vendor/assets/javascripts/webshims/minified/shims/track-ui.js +9 -0
- data/vendor/assets/javascripts/webshims/minified/shims/track.js +20 -0
- metadata +101 -5
- data/vendor/assets/javascripts/webshims/minified/shims/form-output.js +0 -5
@@ -1,8 +1,7 @@
|
|
1
|
-
jQuery.webshims.register("form-extend",function(
|
2
|
-
!
|
3
|
-
"setCustomValidity",{prop:{value:function(
|
4
|
-
"input"==a?
|
5
|
-
|
6
|
-
|
7
|
-
callback:function(){
|
8
|
-
[]).length&&d.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var a=this.options||[];if(!a.length){var b=e("select",this);if(b[0]&&b[0].options&&b[0].options.length)a=b[0].options}return a}}})}});
|
1
|
+
jQuery.webshims.register("form-extend",function(c,b,k,i,j,g){k=k.Modernizr;j=k.inputtypes;if(k.formvalidation&&!b.bugs.bustedValidity){var l=b.inputTypes,t={};b.addInputType=function(a,b){l[a]=b};b.addValidityRule=function(a,b){t[a]=b};b.addValidityRule("typeMismatch",function(a,b,d,c){if(""===b)return!1;c=c.typeMismatch;if(!("type"in d))d.type=(a[0].getAttribute("type")||"").toLowerCase();l[d.type]&&l[d.type].mismatch&&(c=l[d.type].mismatch(b,a));return c});var f=g.overrideMessages,n=!j.number||
|
2
|
+
!j.time||!j.range||f,v="customError,typeMismatch,rangeUnderflow,rangeOverflow,stepMismatch,tooLong,patternMismatch,valueMissing,valid".split(","),g=f?["value","checked"]:["value"],h=[],m=function(a,b){if(a){var d=(a.getAttribute&&a.getAttribute("type")||a.type||"").toLowerCase();if(f||l[d])f&&!b&&"radio"==d&&a.name?c(i.getElementsByName(a.name)).each(function(){c.prop(this,"validity")}):c.prop(a,"validity")}},o={};["input","textarea","select"].forEach(function(a){var p=b.defineNodeNameProperty(a,
|
3
|
+
"setCustomValidity",{prop:{value:function(d){var d=d+"",f="input"==a?c(this).getNativeElement()[0]:this;p.prop._supvalue.call(f,d);b.bugs.validationMessage&&b.data(f,"customvalidationMessage",d);n&&(b.data(f,"hasCustomError",!!d),m(f))}}});o[a]=p.prop._supvalue});if(n||f)g.push("min"),g.push("max"),g.push("step"),h.push("input");f&&(g.push("required"),g.push("pattern"),h.push("select"),h.push("textarea"));if(n){var q;h.forEach(function(a){var p=b.defineNodeNameProperty(a,"validity",{prop:{get:function(){if(!q){var d=
|
4
|
+
"input"==a?c(this).getNativeElement()[0]:this,g=p.prop._supget.call(d);if(!g)return g;var e={};v.forEach(function(a){e[a]=g[a]});if(!c.prop(d,"willValidate"))return e;q=!0;var i=c(d),h={type:(d.getAttribute&&d.getAttribute("type")||"").toLowerCase(),nodeName:(d.nodeName||"").toLowerCase()},m=i.val(),k=!!b.data(d,"hasCustomError"),j;q=!1;e.customError=k;if(e.valid&&e.customError)e.valid=!1;else if(!e.valid){var n=!0;c.each(e,function(a,b){if(b)return n=!1});if(n)e.valid=!0}c.each(t,function(c,g){e[c]=
|
5
|
+
g(i,m,h,e);if(e[c]&&(e.valid||!j)&&(f||l[h.type]&&l[h.type].mismatch))o[a].call(d,b.createValidationMessage(d,c)),e.valid=!1,j=!0});e.valid?(o[a].call(d,""),b.data(d,"hasCustomError",!1)):f&&!j&&!k&&c.each(e,function(c,e){if("valid"!==c&&e)return o[a].call(d,b.createValidationMessage(d,c)),!1});return e}},writeable:!1}})});g.forEach(function(a){b.onNodeNamesPropertyModify(h,a,function(){m(this)})});if(i.addEventListener){var r,s=function(a){if("form"in a.target){var b=a.target.form;clearTimeout(r);
|
6
|
+
m(a.target);b&&f&&c("input",b).each(function(){"password"==this.type&&m(this)})}};i.addEventListener("change",s,!0);f&&(i.addEventListener("blur",s,!0),i.addEventListener("keydown",function(a){13==a.keyCode&&s(a)},!0));i.addEventListener("input",function(a){clearTimeout(r);r=setTimeout(function(){m(a.target)},290)},!0)}var u=h.join(",");b.addReady(function(a,b){c(u,a).add(b.filter(u)).each(function(){c.prop(this,"validity")})});f&&b.ready("DOM form-message",function(){b.activeLang({register:"form-core",
|
7
|
+
callback:function(){c("input, select, textarea").getNativeElement().each(function(){if(!b.data(this,"hasCustomError")){var a=this,f=c.prop(a,"validity")||{valid:!0},d;f.valid||(d=(a.nodeName||"").toLowerCase(),c.each(f,function(c,e){if("valid"!==c&&e)return o[d].call(a,b.createValidationMessage(a,c)),!1}))}})}})})}b.defineNodeNameProperty("input","type",{prop:{get:function(){var a=(this.getAttribute("type")||"").toLowerCase();return b.inputTypes[a]?a:this.type}}})}});
|
@@ -1,21 +1,23 @@
|
|
1
|
-
jQuery.webshims.register("form-number-date-ui",function(
|
2
|
-
Math.floor(Math.abs(
|
3
|
-
a)
|
4
|
-
function(c){!b.isInvalidUIPrevented()&&!
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
b
|
9
|
-
|
10
|
-
function(d){
|
11
|
-
|
12
|
-
|
13
|
-
c
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
1
|
+
jQuery.webshims.register("form-number-date-ui",function(a,f,l,m,z,i){var n=f.triggerInlineForm,l=Modernizr.inputtypes,t=function(){var c={"padding-box":"innerWidth","border-box":"outerWidth","content-box":"width"},d=Modernizr.prefixed&&Modernizr.prefixed("boxSizing");a.browser.msie&&8>f.browserVersion&&(d=!1);return function(b,a){var f,g,i;g="width";d&&(g=c[b.css(d)]||g);f=b[g]();g="width"==g;if(f){var j=parseInt(a.css("marginLeft"),10)||0,r=a.outerWidth();(i=parseInt(b.css("marginRight"),10)||0)&&
|
2
|
+
b.css("marginRight",0);j<=-1*r?(a.css("marginRight",Math.floor(Math.abs(r+j-0.1)+i)),b.css("paddingRight",(parseInt(b.css("paddingRight"),10)||0)+Math.abs(j)),g&&b.css("width",Math.floor(f+j))):(a.css("marginRight",i),b.css("width",Math.floor(f-j-r-0.2)))}}}(),p={},w=a([]),s,h=function(c,d){a("input",c).add(d.filter("input")).each(function(){var b=a.prop(this,"type");if(h[b]&&!f.data(this,"shadowData"))h[b](a(this))})},x=function(c,d){if(i.lazyDate){var b=a.data(c[0],"setDateLazyTimer");b&&clearTimeout(b);
|
3
|
+
a.data(c[0],"setDateLazyTimer",setTimeout(function(){c.datepicker("setDate",d);a.removeData(c[0],"setDateLazyTimer");c=null},0))}else c.datepicker("setDate",d)},u={tabindex:1,tabIndex:1,title:1,"aria-required":1,"aria-invalid":1};if(!i.copyAttrs)i.copyAttrs={};f.extendUNDEFProp(i.copyAttrs,u);var v=function(a){return i.calculateWidth?{css:{marginRight:a.css("marginRight"),marginLeft:a.css("marginLeft")},outerWidth:a.outerWidth()}:{}};h.common=function(c,d,b){Modernizr.formvalidation&&c.bind("firstinvalid",
|
4
|
+
function(b){(f.fromSubmit||!s)&&c.unbind("invalid.replacedwidgetbubble").bind("invalid.replacedwidgetbubble",function(a){!b.isInvalidUIPrevented()&&!a.isDefaultPrevented()&&(f.validityAlert.showFor(b.target),b.preventDefault(),a.preventDefault());c.unbind("invalid.replacedwidgetbubble")})});var k,o,g=a("input, span.ui-slider-handle",d),h=c[0].attributes;for(k in i.copyAttrs)if((o=h[k])&&o.specified)u[k]&&g[0]?g.attr(k,o.nodeValue):d[0].setAttribute(k,o.nodeValue);k=(k=c.attr("id"))?a('label[for="'+
|
5
|
+
k+'"]',c[0].form):w;d.addClass(c[0].className);f.addShadowDom(c,d,{data:b||{},shadowFocusElement:a("input.input-datetime-local-date, span.ui-slider-handle",d)[0],shadowChilds:g});c.after(d);c[0].form&&a(c[0].form).bind("reset",function(b){b.originalEvent&&!b.isDefaultPrevented()&&setTimeout(function(){c.prop("value",c.prop("value"))},0)});k[0]&&(d.getShadowFocusElement().attr("aria-labelledby",f.getID(k)),k.bind("click",function(){c.getShadowFocusElement().focus();return!1}))};Modernizr.formvalidation&&
|
6
|
+
["input","form"].forEach(function(a){var d=f.defineNodeNameProperty(a,"checkValidity",{prop:{value:function(){s=!0;var b=d.prop._supvalue.apply(this,arguments);s=!1;return b}}})});if(!l.date||i.replaceUI){var y=function(c,d,b,k){var o,g,h=function(){j.dpDiv.unbind("mousedown.webshimsmousedownhandler");g=o=!1},j=d.bind("focusin",function(){h();j.dpDiv.unbind("mousedown.webshimsmousedownhandler").bind("mousedown.webshimsmousedownhandler",function(){o=!0})}).bind("focusout blur",function(b){o&&(g=!0,
|
7
|
+
b.stopImmediatePropagation())}).datepicker(a.extend({onClose:function(){g&&d.not(":focus")?(h(),d.trigger("focusout"),d.triggerHandler("blur")):h()}},p,i.datepicker,c.data("datepicker"))).bind("change",b).data("datepicker");j.dpDiv.addClass("input-date-datepicker-control");k&&f.triggerDomUpdate(k[0]);"disabled,min,max,value,step,data-placeholder".split(",").forEach(function(b){var a=c.attr(b);a&&c.attr(b,a)});return j};h.date=function(c){if(a.fn.datepicker){var d=a('<input class="input-date" type="text" />'),
|
8
|
+
b;this.common(c,d,h.date.attrs);b=y(c,d,function(b){h.date.blockAttr=!0;var f;if(i.lazyDate){var g=a.data(d[0],"setDateLazyTimer");g&&(clearTimeout(g),a.removeData(d[0],"setDateLazyTimer"))}try{f=(f=a.datepicker.parseDate(d.datepicker("option","dateFormat"),d.prop("value")))?a.datepicker.formatDate("yy-mm-dd",f):d.prop("value")}catch(l){f=d.prop("value")}c.prop("value",f);h.date.blockAttr=!1;b.stopImmediatePropagation();n(c[0],"input");n(c[0],"change")});a(c).bind("updateshadowdom",function(){if(b.trigger[0]&&
|
9
|
+
(c.css({display:""}),c[0].offsetWidth||c[0].offsetHeight)){var a=v(c);a.css&&(d.css(a.css),a.outerWidth&&d.outerWidth(a.outerWidth),t(d,b.trigger))}c.css({display:"none"})}).triggerHandler("updateshadowdom");b.trigger[0]&&setTimeout(function(){f.ready("WINDOWLOAD",function(){a(c).triggerHandler("updateshadowdom")})},9)}};h.date.attrs={disabled:function(c,d,b){a.prop(d,"disabled",!!b)},min:function(c,d,b){try{b=a.datepicker.parseDate("yy-mm-dd",b)}catch(f){b=!1}b&&a(d).datepicker("option","minDate",
|
10
|
+
b)},max:function(c,d,b){try{b=a.datepicker.parseDate("yy-mm-dd",b)}catch(f){b=!1}b&&a(d).datepicker("option","maxDate",b)},"data-placeholder":function(c,d,b){c=(b||"").split("-");3==c.length&&(b=a(d).datepicker("option","dateFormat").replace("yy",c[0]).replace("mm",c[1]).replace("dd",c[2]));a.prop(d,"placeholder",b)},value:function(c,d,b){if(!h.date.blockAttr){try{var f=a.datepicker.parseDate("yy-mm-dd",b)}catch(i){f=!1}f?x(a(d),f):a.prop(d,"value",b)}}}}if(!l.range||i.replaceUI)h.range=function(c){if(a.fn.slider){var d=
|
11
|
+
a('<span class="input-range"><span class="ui-slider-handle" role="slider" tabindex="0" /></span>');this.common(c,d,h.range.attrs);c.bind("updateshadowdom",function(){c.css({display:""});if(c[0].offsetWidth||c[0].offsetHeight){var b=v(c);b.css&&(d.css(b.css),b.outerWidth&&d.outerWidth(b.outerWidth))}c.css({display:"none"})}).triggerHandler("updateshadowdom");d.slider(a.extend(!0,{},i.slider,c.data("slider"))).bind("slide",function(b,a){if(b.originalEvent)h.range.blockAttr=!0,c.prop("value",a.value),
|
12
|
+
h.range.blockAttr=!1,n(c[0],"input"),n(c[0],"change")});["disabled","min","max","step","value"].forEach(function(b){var d=c.prop(b),f;"value"==b&&!d&&(f=c.getShadowElement())&&(d=(a(f).slider("option","max")-a(f).slider("option","min"))/2);null!=d&&c.prop(b,d)})}},h.range.attrs={disabled:function(c,d,b){b=!!b;a(d).slider("option","disabled",b);a("span",d).attr({"aria-disabled":b+"",tabindex:b?"-1":"0"})},min:function(c,d,b){b=b?1*b||0:0;a(d).slider("option","min",b);a("span",d).attr({"aria-valuemin":b})},
|
13
|
+
max:function(c,d,b){b=b||0===b?1*b||100:100;a(d).slider("option","max",b);a("span",d).attr({"aria-valuemax":b})},value:function(c,d,b){b=a(c).prop("valueAsNumber");isNaN(b)||(h.range.blockAttr||a(d).slider("option","value",b),a("span",d).attr({"aria-valuenow":b,"aria-valuetext":b}))},step:function(c,d,b){b=b&&a.trim(b)?1*b||1:1;a(d).slider("option","step",b)}};if(!f.bugs.valueAsNumberSet&&(i.replaceUI||!Modernizr.inputtypes.date||!Modernizr.inputtypes.range))l=function(){f.data(this,"hasShadow")&&
|
14
|
+
a.prop(this,"value",a.prop(this,"value"))},f.onNodeNamesPropertyModify("input","valueAsNumber",l),f.onNodeNamesPropertyModify("input","valueAsDate",l);a.each("disabled,min,max,value,step,data-placeholder".split(","),function(a,d){f.onNodeNamesPropertyModify("input",d,function(b){var a=f.data(this,"shadowData");if(a&&a.data&&a.data[d]&&a.nativeElement===this)a.data[d](this,a.shadowElement,b)})});if(!i.availabeLangs)i.availabeLangs="af ar ar-DZ az bg bs ca cs da de el en-AU en-GB en-NZ eo es et eu fa fi fo fr fr-CH gl he hr hu hy id is it ja ko kz lt lv ml ms nl no pl pt-BR rm ro ru sk sl sq sr sr-SR sv ta th tr uk vi zh-CN zh-HK zh-TW".split(" ");
|
15
|
+
l=function(){a.datepicker&&(f.activeLang({langObj:a.datepicker.regional,module:"form-number-date-ui",callback:function(c){c=a.extend({},p,c,i.datepicker);c.dateFormat&&i.datepicker.dateFormat!=c.dateFormat&&a("input.hasDatepicker").filter(".input-date, .input-datetime-local-date").datepicker("option","dateFormat",c.dateFormat).getNativeElement().filter("[data-placeholder]").attr("data-placeholder",function(a,b){return b});a.datepicker.setDefaults(c)}}),a(m).unbind("jquery-uiReady.langchange input-widgetsReady.langchange"))};
|
16
|
+
a(m).bind("jquery-uiReady.langchange input-widgetsReady.langchange",l);l();(function(){var c=function(){var b={};return function(c){return c in b?b[c]:b[c]=a('<input type="'+c+'" />')[0].type===c}}();if(!c("number")){var d=f.cfg["forms-ext"],b=f.inputTypes,h=function(c,d,e){e=e||{};if(!("type"in e))e.type=a.prop(c,"type");if(!("step"in e))e.step=f.getStep(c,e.type);if(!("valueAsNumber"in e))e.valueAsNumber=b[e.type].asNumber(a.prop(c,"value"));var h="any"==e.step?b[e.type].step*b[e.type].stepScaleFactor:
|
17
|
+
e.step;f.addMinMaxNumberToCache("min",a(c),e);f.addMinMaxNumberToCache("max",a(c),e);if(isNaN(e.valueAsNumber))e.valueAsNumber=b[e.type].stepBase||0;if("any"!==e.step&&(c=Math.round(1E7*((e.valueAsNumber-(e.minAsnumber||0))%e.step))/1E7)&&Math.abs(c)!=e.step)e.valueAsNumber-=c;c=e.valueAsNumber+h*d;return c=!isNaN(e.minAsNumber)&&c<e.minAsNumber?e.valueAsNumber*d<e.minAsNumber?e.minAsNumber:isNaN(e.maxAsNumber)?e.valueAsNumber:e.maxAsNumber:!isNaN(e.maxAsNumber)&&c>e.maxAsNumber?e.valueAsNumber*d>
|
18
|
+
e.maxAsNumber?e.maxAsNumber:isNaN(e.minAsNumber)?e.valueAsNumber:e.minAsNumber:Math.round(1E7*c)/1E7};f.modules["form-number-date-ui"].getNextStep=h;var i=function(c,d,e){if(!c.disabled&&!c.readOnly&&!a(e).hasClass("step-controls")&&(a.prop(c,"value",b[d].numberToString(h(c,a(e).hasClass("step-up")?1:-1,{type:d}))),a(c).unbind("blur.stepeventshim"),n(c,"input"),m.activeElement)){if(m.activeElement!==c)try{c.focus()}catch(f){}setTimeout(function(){if(m.activeElement!==c)try{c.focus()}catch(b){}a(c).one("blur.stepeventshim",
|
19
|
+
function(){n(c,"change")})},0)}};if(d.stepArrows){var g={set:function(){var a=f.data(this,"step-controls");if(a)a[this.disabled||this.readonly?"addClass":"removeClass"]("disabled-step-control")}};f.onNodeNamesPropertyModify("input","disabled",g);f.onNodeNamesPropertyModify("input","readonly",a.extend({},g))}var l={38:1,40:-1};f.addReady(function(g,m){d.stepArrows&&a("input",g).add(m.filter("input")).each(function(){var e=a.prop(this,"type");if(b[e]&&b[e].asNumber&&d.stepArrows&&!(!0!==d.stepArrows&&
|
20
|
+
!d.stepArrows[e]||c(e)||a(g).hasClass("has-step-controls"))){var g=this,j=a('<span class="step-controls" unselectable="on"><span class="step-up" /><span class="step-down" /></span>').insertAfter(g).bind("selectstart dragstart",function(){return!1}).bind("mousedown mousepress",function(a){i(g,e,a.target);return!1}).bind("mousepressstart mousepressend",function(b){a(b.target)["mousepressstart"==b.type?"addClass":"removeClass"]("mousepress-ui")}),m=function(c,d){if(!g.disabled&&!g.readOnly&&d)return a.prop(g,
|
21
|
+
"value",b[e].numberToString(h(g,d,{type:e}))),n(g,"input"),!1},q=a(g).addClass("has-step-controls").attr({readonly:g.readOnly,disabled:g.disabled,autocomplete:"off",role:"spinbutton"}).bind(a.browser.msie?"keydown":"keypress",function(c){if(!g.disabled&&!g.readOnly&&l[c.keyCode])return a.prop(g,"value",b[e].numberToString(h(g,l[c.keyCode],{type:e}))),n(g,"input"),!1});"number"==e&&q.bind("keypress",function(){return function(a){var b=String.fromCharCode(null==a.charCode?a.keyCode:a.charCode);return a.ctrlKey||
|
22
|
+
a.metaKey||" ">b||-1<"0123456789.".indexOf(b)}}());a.fn.mwheelIntent?q.add(j).bind("mwheelIntent",m):a.fn.mousewheel&&q.bind("focus",function(){q.add(j).unbind(".mwhellwebshims").bind("mousewheel.mwhellwebshims",m)}).bind("blur",function(){a(g).add(j).unbind(".mwhellwebshims")});f.data(g,"step-controls",j);if(d.calculateWidth){var p;q.bind("updateshadowdom",function(){if(!p&&(g.offsetWidth||g.offsetHeight))p=!0,t(q,j),j.css("marginTop",(q.outerHeight()-j.outerHeight())/2)}).triggerHandler("updateshadowdom")}}})})}})();
|
23
|
+
f.addReady(function(c,d){a(m).bind("jquery-uiReady.initinputui input-widgetsReady.initinputui",function(){if(a.datepicker||a.fn.slider){if(a.datepicker&&!p.dateFormat)p.dateFormat=a.datepicker._defaults.dateFormat;h(c,d)}a.datepicker&&a.fn.slider?a(m).unbind(".initinputui"):f.modules["input-widgets"].src||f.warn('jQuery UI Widget factory is already included, but not datepicker or slider. configure src of $.webshims.modules["input-widgets"].src')})})});
|
@@ -1,33 +1,44 @@
|
|
1
|
-
(!Modernizr.formvalidation||jQuery.webshims.bugs.bustedValidity)&&jQuery.webshims.register("form-extend",function(a,
|
2
|
-
b[0].type||"").toLowerCase();if("select"==
|
3
|
-
if(
|
4
|
-
this.form||this;if(!a.data(b,"invalidEventShim")&&(a(b).data("invalidEventShim",!0).bind("submit",a.event.special.invalid.handler),
|
5
|
-
!0;if(!a(b.target).checkValidity())return b.stopImmediatePropagation(),
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
"
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
d.
|
19
|
-
"
|
20
|
-
|
21
|
-
|
22
|
-
"
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
1
|
+
(!Modernizr.formvalidation||jQuery.webshims.bugs.bustedValidity)&&jQuery.webshims.register("form-extend",function(a,c,v,j){c.inputTypes=c.inputTypes||{};var w=c.cfg.forms,q,r=c.inputTypes,B={radio:1,checkbox:1};c.addInputType=function(a,d){r[a]=d};var x={customError:!1,typeMismatch:!1,rangeUnderflow:!1,rangeOverflow:!1,stepMismatch:!1,tooLong:!1,patternMismatch:!1,valueMissing:!1,valid:!0},s={valueMissing:function(b,d,f){if(!b.prop("required"))return!1;var h=!1;if(!("type"in f))f.type=(b[0].getAttribute("type")||
|
2
|
+
b[0].type||"").toLowerCase();if("select"==f.nodeName){if(d=!d)if(!(d=0>b[0].selectedIndex))b=b[0],d="select-one"==b.type&&2>b.size?!!a("> option:first-child",b).prop("selected"):!1;b=d}else b=B[f.type]?"checkbox"==f.type?!b.is(":checked"):!c.modules["form-core"].getGroupElements(b).filter(":checked")[0]:!d;return b},tooLong:function(){return!1},typeMismatch:function(a,d,f){if(""===d||"select"==f.nodeName)return!1;var c=!1;if(!("type"in f))f.type=(a[0].getAttribute("type")||a[0].type||"").toLowerCase();
|
3
|
+
if(r[f.type]&&r[f.type].mismatch)c=r[f.type].mismatch(d,a);else if("validity"in a[0])c=a[0].validity.typeMismatch;return c},patternMismatch:function(a,d,f){if(""===d||"select"==f.nodeName)return!1;a=a.attr("pattern");if(!a)return!1;try{a=RegExp("^(?:"+a+")$")}catch(h){c.error('invalid pattern value: "'+a+'" | '+h),a=!1}return!a?!1:!a.test(d)}};c.addValidityRule=function(a,d){s[a]=d};a.event.special.invalid={add:function(){a.event.special.invalid.setup.call(this.form||this)},setup:function(){var b=
|
4
|
+
this.form||this;if(!a.data(b,"invalidEventShim")&&(a(b).data("invalidEventShim",!0).bind("submit",a.event.special.invalid.handler),c.moveToFirstEvent(b,"submit"),c.bugs.bustedValidity&&a.nodeName(b,"form"))){var d=b.getAttribute("novalidate");b.setAttribute("novalidate","novalidate");c.data(b,"bustedNoValidate",null==d?null:d)}},teardown:a.noop,handler:function(b){if(!("submit"!=b.type||b.testedValidity||!b.originalEvent||!a.nodeName(b.target,"form")||a.prop(b.target,"noValidate"))){q=!0;b.testedValidity=
|
5
|
+
!0;if(!a(b.target).checkValidity())return b.stopImmediatePropagation(),q=!1;q=!1}}};var y=function(b){if(!a.support.submitBubbles&&b&&"object"==typeof b&&!b._submit_attached)a.event.add(b,"submit._submit",function(a){a._submit_bubble=!0}),b._submit_attached=!0};if(!a.support.submitBubbles&&a.event.special.submit)a.event.special.submit.setup=function(){if(a.nodeName(this,"form"))return!1;a.event.add(this,"click._submit keypress._submit",function(b){b=b.target;b=a.nodeName(b,"input")||a.nodeName(b,
|
6
|
+
"button")?a.prop(b,"form"):void 0;y(b)})};a.event.special.submit=a.event.special.submit||{setup:function(){return!1}};var C=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 C.apply(this,arguments)}});a(v).bind("invalid",a.noop);c.addInputType("email",{mismatch:function(){var a=w.emailReg||/^[a-zA-Z0-9.!#$%&'*+-\/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;return function(d){return!a.test(d)}}()});
|
7
|
+
c.addInputType("url",{mismatch:function(){var a=w.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;
|
8
|
+
return function(d){return!a.test(d)}}()});c.defineNodeNameProperty("input","type",{prop:{get:function(){var a=(this.getAttribute("type")||"").toLowerCase();return c.inputTypes[a]?a:this.type}}});c.defineNodeNamesProperties(["button","fieldset","output"],{checkValidity:{value:function(){return!0}},willValidate:{value:!1},setCustomValidity:{value:a.noop},validity:{writeable:!1,get:function(){return a.extend({},x)}}},"prop");var o=function(b){var d,f=a.prop(b,"validity");if(f)a.data(b,"cachedValidity",
|
9
|
+
f);else return!0;if(!f.valid){d=a.Event("invalid");var h=a(b).trigger(d);if(q&&!o.unhandledInvalids&&!d.isDefaultPrevented())c.validityAlert.showFor(h),o.unhandledInvalids=!0}a.removeData(b,"cachedValidity");return f.valid},D=/^(?:select|textarea|input)/i;c.defineNodeNameProperty("form","checkValidity",{prop:{value:function(){var b=!0,d=a(a.prop(this,"elements")).filter(function(){if(!D.test(this.nodeName))return!1;var a=c.data(this,"shadowData");return!a||!a.nativeElement||a.nativeElement===this});
|
10
|
+
o.unhandledInvalids=!1;for(var f=0,h=d.length;f<h;f++)o(d[f])||(b=!1);return b}}});c.defineNodeNamesProperties(["input","textarea","select"],{checkValidity:{value:function(){o.unhandledInvalids=!1;return o(a(this).getNativeElement()[0])}},setCustomValidity:{value:function(b){a.removeData(this,"cachedValidity");c.data(this,"customvalidationMessage",""+b)}},willValidate:{writeable:!1,get:function(){var b={button:1,reset:1,hidden:1,image:1};return function(){var d=a(this).getNativeElement()[0];return!(d.disabled||
|
11
|
+
d.readOnly||b[d.type])}}()},validity:{writeable:!1,get:function(){var b=a(this).getNativeElement(),d=b[0],f=a.data(d,"cachedValidity");if(f)return f;f=a.extend({},x);if(!a.prop(d,"willValidate")||"submit"==d.type)return f;var h=b.val(),g={nodeName:d.nodeName.toLowerCase()};f.customError=!!c.data(d,"customvalidationMessage");if(f.customError)f.valid=!1;a.each(s,function(a,d){if(d(b,h,g))f[a]=!0,f.valid=!1});a(this).getShadowFocusElement().attr("aria-invalid",f.valid?"false":"true");d=b=null;return f}}},
|
12
|
+
"prop");c.defineNodeNamesBooleanProperty(["input","textarea","select"],"required",{set:function(b){a(this).getShadowFocusElement().attr("aria-required",!!b+"")},initAttr:!a.browser.msie||7<c.browserVersion});c.reflectProperties(["input"],["pattern"]);if(!("maxLength"in j.createElement("textarea"))){var p=function(){var b,d=0,f=a([]),c=1E9,g=function(){var a=f.prop("value"),b=a.length;b>d&&b>c&&(b=Math.max(d,c),f.prop("value",a.substr(0,b)));d=b},i=function(){clearTimeout(b);f.unbind(".maxlengthconstraint")};
|
13
|
+
return function(m,z){i();if(-1<z)c=z,d=a.prop(m,"value").length,f=a(m),f.bind("keydown.maxlengthconstraint keypress.maxlengthconstraint paste.maxlengthconstraint cut.maxlengthconstraint",function(){setTimeout(g,0)}),f.bind("keyup.maxlengthconstraint",g),f.bind("blur.maxlengthconstraint",i),b=setInterval(g,200)}}();p.update=function(b,d){a(b).is(":focus")&&(null==d&&(d=a.prop(b,"maxlength")),p(e.target,d))};a(j).bind("focusin",function(b){var d;"TEXTAREA"==b.target.nodeName&&-1<(d=a.prop(b.target,
|
14
|
+
"maxlength"))&&p(b.target,d)});c.defineNodeNameProperty("textarea","maxlength",{attr:{set:function(a){this.setAttribute("maxlength",""+a);p.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);p.update(this,a)}else this.setAttribute("maxlength","0"),p.update(this,0)},get:function(){var a=this.getAttribute("maxlength");return("number"==
|
15
|
+
typeof a||a&&a==1*a)&&0<=a?parseInt(a,10):-1}}});c.defineNodeNameProperty("textarea","maxLength",{prop:{set:function(b){a.prop(this,"maxlength",b)},get:function(){return a.prop(this,"maxlength")}}})}var E={submit:1,button:1,image:1},l={};[{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"},
|
16
|
+
{name:"target"},{name:"novalidate",propName:"noValidate",proptype:"boolean"}].forEach(function(b){var d="form"+(b.propName||b.name).replace(/^[a-z]/,function(a){return a.toUpperCase()}),f="form"+b.name,c=b.name,g="click.webshimssubmittermutate"+c,i=function(){if("form"in this&&E[this.type]){var i=a.prop(this,"form");if(i){var g=a.attr(this,f);if(null!=g&&(!b.limitedTo||g.toLowerCase()===a.prop(this,d))){var k=a.attr(i,c);a.attr(i,c,g);setTimeout(function(){if(null!=k)a.attr(i,c,k);else try{a(i).removeAttr(c)}catch(b){i.removeAttribute(c)}},
|
17
|
+
9)}}}};switch(b.proptype){case "url":var m=j.createElement("form");l[d]={prop:{set:function(b){a.attr(this,f,b)},get:function(){var b=a.attr(this,f);if(null==b)return"";m.setAttribute("action",b);return m.action}}};break;case "boolean":l[d]={prop:{set:function(b){b?a.attr(this,"formnovalidate","formnovalidate"):a(this).removeAttr("formnovalidate")},get:function(){return null!=a.attr(this,"formnovalidate")}}};break;case "enum":l[d]={prop:{set:function(b){a.attr(this,f,b)},get:function(){var d=a.attr(this,
|
18
|
+
f);return!d||(d=d.toLowerCase())&&!b.limitedTo[d]?b.defaultProp:d}}};break;default:l[d]={prop:{set:function(b){a.attr(this,f,b)},get:function(){var b=a.attr(this,f);return null!=b?b:""}}}}l[f]||(l[f]={});l[f].attr={set:function(b){l[f].attr._supset.call(this,b);a(this).unbind(g).bind(g,i)},get:function(){return l[f].attr._supget.call(this)}};l[f].initAttr=!0;l[f].removeAttr={value:function(){a(this).unbind(g);l[f].removeAttr._supvalue.call(this)}}});c.defineNodeNamesProperties(["input","button"],
|
19
|
+
l);!a.support.getSetAttribute&&null==a("<form novalidate></form>").attr("novalidate")?c.defineNodeNameProperty("form","novalidate",{attr:{set:function(a){this.setAttribute("novalidate",""+a)},get:function(){var a=this.getAttribute("novalidate");return null==a?void 0:a}}}):c.bugs.bustedValidity&&(c.defineNodeNameProperty("form","novalidate",{attr:{set:function(a){c.data(this,"bustedNoValidate",""+a)},get:function(){var a=c.data(this,"bustedNoValidate");return null==a?void 0:a}},removeAttr:{value:function(){c.data(this,
|
20
|
+
"bustedNoValidate",null)}}}),a.each(["rangeUnderflow","rangeOverflow","stepMismatch"],function(a,d){s[d]=function(a){return(a[0].validity||{})[d]||!1}}));c.defineNodeNameProperty("form","noValidate",{prop:{set:function(b){b?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 b={updateInput:1,input:1},d={date:1,time:1,"datetime-local":1},f={focusout:1,blur:1},h=
|
21
|
+
{updateInput:1,change:1},g=function(a){var d,c=!0,g=a.prop("value"),k=g,n=function(d){if(a){var f=a.prop("value");f!==g&&(g=f,(!d||!b[d.type])&&a.trigger("input"));d&&h[d.type]&&(k=f);!c&&f!==k&&a.trigger("change")}},A,u=function(b){clearInterval(d);setTimeout(function(){b&&f[b.type]&&(c=!1);a&&(a.unbind("focusout blur",u).unbind("input change updateInput",n),n());a=null},1)};clearInterval(d);d=setInterval(n,160);clearTimeout(A);A=setTimeout(n,9);a.unbind("focusout blur",u).unbind("input change updateInput",
|
22
|
+
n);a.bind("focusout blur",u).bind("input updateInput change",n)};if(a.event.customEvent)a.event.customEvent.updateInput=!0;(function(){var b=function(b){var d=1,f,c;if("date"==b.type&&(q||!a(b).is(":focus")))if((c=b.value)&&10>c.length&&(c=c.split("-"))&&3==c.length){for(;3>d;d++)if(1==c[d].length)c[d]="0"+c[d];else if(2!=c[d].length){f=!0;break}if(!f)return c=c.join("-"),a.prop(b,"value",c),c}},d,f,g,k;d=c.defineNodeNameProperty("input","checkValidity",{prop:{value:function(){b(this);return d.prop._supvalue.apply(this,
|
23
|
+
arguments)}}});f=c.defineNodeNameProperty("form","checkValidity",{prop:{value:function(){a("input",this).each(function(){b(this)});return f.prop._supvalue.apply(this,arguments)}}});g=c.defineNodeNameProperty("input","value",{prop:{set:function(){return g.prop._supset.apply(this,arguments)},get:function(){return b(this)||g.prop._supget.apply(this,arguments)}}});k=c.defineNodeNameProperty("input","validity",{prop:{writeable:!1,get:function(){b(this);return k.prop._supget.apply(this,arguments)}}});a(j).bind("change",
|
24
|
+
function(a){isChangeSubmit=!0;b(a.target);isChangeSubmit=!1})})();a(j).bind("focusin",function(b){b.target&&d[b.target.type]&&!b.target.readOnly&&!b.target.disabled&&g(a(b.target))})}();c.addReady(function(b,d){var c;a("form",b).add(d.filter("form")).bind("invalid",a.noop);try{if(b==j&&!("form"in(j.activeElement||{})))(c=a("input[autofocus], select[autofocus], textarea[autofocus]",b).eq(0).getShadowFocusElement()[0])&&c.offsetHeight&&c.offsetWidth&&c.focus()}catch(h){}});(!Modernizr.formattribute||
|
25
|
+
!Modernizr.fieldsetdisabled)&&function(){(function(b,d){a.prop=function(c,f,h){var k;if(c&&1==c.nodeType&&h===d&&a.nodeName(c,"form")&&c.id){k=j.getElementsByName(f);if(!k||!k.length)k=j.getElementById(f);if(k&&(k=a(k).filter(function(){return a.prop(this,"form")==c}).get(),k.length))return 1==k.length?k[0]:k}return b.apply(this,arguments)}})(a.prop,void 0);var b=function(b){var d=a.data(b,"webshimsAddedElements");d&&(d.remove(),a.removeData(b,"webshimsAddedElements"))},d=/\r?\n/g,f=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
|
26
|
+
h=/^(?:select|textarea)/i;Modernizr.formattribute||(c.defineNodeNamesProperty(["input","textarea","select","button","fieldset"],"form",{prop:{get:function(){var b=c.contentAttr(this,"form");b&&(b=j.getElementById(b))&&!a.nodeName(b,"form")&&(b=null);return b||this.form},writeable:!1}}),c.defineNodeNamesProperty(["form"],"elements",{prop:{get:function(){var b=this.id,d=a.makeArray(this.elements);b&&(d=a(d).add('input[form="'+b+'"], select[form="'+b+'"], textarea[form="'+b+'"], button[form="'+b+'"], fieldset[form="'+
|
27
|
+
b+'"]').not(".webshims-visual-hide > *").get());return d},writeable:!1}}),a(function(){var d=function(a){a.stopPropagation()};a(j).bind("submit",function(d){if(!d.isDefaultPrevented()){var c=d.target;if(d=c.id)b(c),d=a('input[form="'+d+'"], select[form="'+d+'"], textarea[form="'+d+'"]').filter(function(){return!this.disabled&&this.name&&this.form!=c}).clone(),d.length&&(a.data(c,"webshimsAddedElements",a('<div class="webshims-visual-hide" />').append(d).appendTo(c)),setTimeout(function(){b(c)},9)),
|
28
|
+
d=null}});a(j).bind("click",function(b){if(!b.isDefaultPrevented()&&a(b.target).is('input[type="submit"][form], button[form], input[type="button"][form], input[type="image"][form], input[type="reset"][form]')){var c=a.prop(b.target,"form"),f=b.target.form,h;c&&c!=f&&(h=a(b.target).clone().removeAttr("form").addClass("webshims-visual-hide").bind("click",d).appendTo(c),f&&b.preventDefault(),y(c),h.trigger("click"),setTimeout(function(){h.remove();h=null},9))}})}));Modernizr.fieldsetdisabled||c.defineNodeNamesProperty(["fieldset"],
|
29
|
+
"elements",{prop:{get:function(){return a("input, select, textarea, button, fieldset",this).get()||[]},writeable:!1}});a.fn.serializeArray=function(){return this.map(function(){var b=a.prop(this,"elements");return b?a.makeArray(b):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||h.test(this.nodeName)||f.test(this.type))}).map(function(b,c){var f=a(this).val();return null==f?null:a.isArray(f)?a.map(f,function(a){return{name:c.name,value:a.replace(d,"\r\n")}}):{name:c.name,
|
30
|
+
value:f.replace(d,"\r\n")}}).get()}}();(function(){Modernizr.textareaPlaceholder=!!("placeholder"in a("<textarea />")[0]);var b=a.browser.webkit&&Modernizr.textareaPlaceholder&&535>c.browserVersion;if(!Modernizr.input.placeholder||!Modernizr.textareaPlaceholder||b){var d="over"==c.cfg.forms.placeholderType,f=c.cfg.forms.responsivePlaceholder,h=["textarea"];Modernizr.input.placeholder||h.push("input");var g=function(a){try{if(a.setSelectionRange)return a.setSelectionRange(0,0),!0;if(a.createTextRange){var b=
|
31
|
+
a.createTextRange();b.collapse(!0);b.moveEnd("character",0);b.moveStart("character",0);b.select();return!0}}catch(d){}},i=function(b,c,f,h){!1===f&&(f=a.prop(b,"value"));if(!d&&"password"!=b.type){if(!f&&h&&g(b)){var i=setTimeout(function(){g(b)},9);a(b).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",function(d){if(!d||!(17==d.keyCode||16==d.keyCode))b.value=a.prop(b,"value"),c.box.removeClass("placeholder-visible"),
|
32
|
+
clearTimeout(i),a(b).unbind(".placeholderremove")}).bind("mousedown.placeholderremove drag.placeholderremove select.placeholderremove",function(){g(b);clearTimeout(i);i=setTimeout(function(){g(b)},9)}).bind("blur.placeholderremove",function(){clearTimeout(i);a(b).unbind(".placeholderremove")});return}b.value=f}else if(!f&&h){a(b).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",function(d){if(!d||!(17==d.keyCode||
|
33
|
+
16==d.keyCode))c.box.removeClass("placeholder-visible"),a(b).unbind(".placeholderremove")}).bind("blur.placeholderremove",function(){a(b).unbind(".placeholderremove")});return}c.box.removeClass("placeholder-visible")},m=function(b,c,f,g,h){if(!g&&(g=a.data(b,"placeHolder"),!g))return;a(b).unbind(".placeholderremove");if("focus"==h||!h&&a(b).is(":focus"))("password"==b.type||d||a(b).hasClass("placeholder-visible"))&&i(b,g,"",!0);else if(!1===c&&(c=a.prop(b,"value")),c)i(b,g,c);else if(!1===f&&(f=a.attr(b,
|
34
|
+
"placeholder")||""),f&&!c){c=g;!1===f&&(f=a.prop(b,"placeholder"));if(!d&&"password"!=b.type)b.value=f;c.box.addClass("placeholder-visible")}else i(b,g,c)},j=function(b){var b=a(b),d=b.prop("id"),c=!(!b.prop("title")&&!b.attr("aria-labelledby"));!c&&d&&(c=!!a('label[for="'+d+'"]',b[0].form)[0]);c||(d||(d=a.webshims.getID(b)),c=!!a("label #"+d)[0]);return a(c?'<span class="placeholder-text"></span>':'<label for="'+d+'" class="placeholder-text"></label>')},t=function(){var b={text:1,search:1,url:1,
|
35
|
+
email:1,password:1,tel:1};return{create:function(b){var c=a.data(b,"placeHolder"),g;if(c)return c;c=a.data(b,"placeHolder",{});a(b).bind("focus.placeholder blur.placeholder",function(a){m(this,!1,!1,c,a.type);c.box["focus"==a.type?"addClass":"removeClass"]("placeholder-focused")});(g=a.prop(b,"form"))&&a(g).bind("reset.placeholder",function(a){setTimeout(function(){m(b,!1,!1,c,a.type)},0)});if("password"==b.type||d)c.text=j(b),c.box=f||a(b).is(".responsive-width")||-1!=(b.currentStyle||{width:""}).width.indexOf("%")?
|
36
|
+
c.text:a(b).wrap('<span class="placeholder-box placeholder-box-'+(b.nodeName||"").toLowerCase()+" placeholder-box-"+a.css(b,"float")+'" />').parent(),c.text.insertAfter(b).bind("mousedown.placeholder",function(){m(this,!1,!1,c,"focus");try{setTimeout(function(){b.focus()},0)}catch(a){}return!1}),a.each(["lineHeight","fontSize","fontFamily","fontWeight"],function(d,f){var g=a.css(b,f);c.text.css(f)!=g&&c.text.css(f,g)}),a.each(["Left","Top"],function(d,f){var g=(parseInt(a.css(b,"padding"+f),10)||
|
37
|
+
0)+Math.max(parseInt(a.css(b,"margin"+f),10)||0,0)+(parseInt(a.css(b,"border"+f+"Width"),10)||0);c.text.css("padding"+f,g)}),a(b).bind("updateshadowdom",function(){var d,f;((f=b.offsetWidth)||(d=b.offsetHeight))&&c.text.css({width:f,height:d}).css(a(b).position())}).triggerHandler("updateshadowdom");else{var h=function(d){a(b).hasClass("placeholder-visible")&&(i(b,c,""),d&&"submit"==d.type&&setTimeout(function(){d.isDefaultPrevented()&&m(b,!1,!1,c)},9))};a(v).bind("beforeunload",h);c.box=a(b);g&&
|
38
|
+
a(g).submit(h)}return c},update:function(d,f){var g=(a.attr(d,"type")||a.prop(d,"type")||"").toLowerCase();!b[g]&&!a.nodeName(d,"textarea")?(c.error('placeholder not allowed on input[type="'+g+'"]'),"date"==g&&c.error('but you can use data-placeholder for input[type="date"]')):(g=t.create(d),g.text&&g.text.text(f),m(d,!1,f,g))}}}();a.webshims.publicMethods={pHolder:t};h.forEach(function(a){c.defineNodeNameProperty(a,"placeholder",{attr:{set:function(a){b?(c.data(this,"textareaPlaceholder",a),this.placeholder=
|
39
|
+
""):c.contentAttr(this,"placeholder",a);t.update(this,a)},get:function(){return(b?c.data(this,"textareaPlaceholder"):"")||c.contentAttr(this,"placeholder")}},reflect:!0,initAttr:!0})});h.forEach(function(d){var f={},g;["attr","prop"].forEach(function(d){f[d]={set:function(f){var h;b&&(h=c.data(this,"textareaPlaceholder"));h||(h=c.contentAttr(this,"placeholder"));a.removeData(this,"cachedValidity");var i=g[d]._supset.call(this,f);h&&"value"in this&&m(this,f,h);return i},get:function(){return a(this).hasClass("placeholder-visible")?
|
40
|
+
"":g[d]._supget.call(this)}}});g=c.defineNodeNameProperty(d,"value",f)})}})();(function(){if(!("value"in j.createElement("output"))){c.defineNodeNameProperty("output","value",{prop:{set:function(d){var c=a.data(this,"outputShim");c||(c=b(this));c(d)},get:function(){return c.contentAttr(this,"value")||a(this).text()||""}}});c.onNodeNamesPropertyModify("input","value",function(b,c,h){"removeAttr"!=h&&(c=a.data(this,"outputShim"))&&c(b)});var b=function(b){if(!b.getAttribute("aria-live")){var b=a(b),
|
41
|
+
f=(b.text()||"").trim(),h=b.attr("id"),g=b.attr("for"),i=a('<input class="output-shim" type="text" disabled name="'+(b.attr("name")||"")+'" value="'+f+'" style="display: none !important;" />').insertAfter(b),m=i[0].form||j,l=function(a){i[0].value=a;a=i[0].value;b.text(a);c.contentAttr(b[0],"value",a)};b[0].defaultValue=f;c.contentAttr(b[0],"value",f);b.attr({"aria-live":"polite"});h&&(i.attr("id",h),b.attr("aria-labelledby",c.getID(a('label[for="'+h+'"]',m))));g&&(h=c.getID(b),g.split(" ").forEach(function(a){(a=
|
42
|
+
j.getElementById(a))&&a.setAttribute("aria-controls",h)}));b.data("outputShim",l);i.data("outputShim",l);return l}};c.addReady(function(c,f){a("output",c).add(f.filter("output")).each(function(){b(this)})});(function(){var b={updateInput:1,input:1},f={radio:1,checkbox:1,submit:1,button:1,image:1,reset:1,file:1,color:1},h=function(a){var f,h=a.prop("value"),j=function(f){if(a){var i=a.prop("value");i!==h&&(h=i,(!f||!b[f.type])&&c.triggerInlineForm&&c.triggerInlineForm(a[0],"input"))}},l,k=function(){clearTimeout(l);
|
43
|
+
l=setTimeout(j,9)},n=function(){a.unbind("focusout",n).unbind("keyup keypress keydown paste cut",k).unbind("input change updateInput",j);clearInterval(f);setTimeout(function(){j();a=null},1)};clearInterval(f);f=setInterval(j,99);k();a.bind("keyup keypress keydown paste cut",k).bind("focusout",n).bind("input updateInput change",j)};if(a.event.customEvent)a.event.customEvent.updateInput=!0;a(j).bind("focusin",function(b){b.target&&b.target.type&&!b.target.readOnly&&!b.target.disabled&&"input"==(b.target.nodeName||
|
44
|
+
"").toLowerCase()&&!f[b.target.type]&&h(a(b.target))})})()}})()});
|
@@ -0,0 +1,3 @@
|
|
1
|
+
jQuery.webshims.validityMessages.sv={typeMismatch:{email:"Fyll i en e-postadress.",url:"Fyll i en URL.",number:"Fyll i ett nummer.",date:"Fyll i ett datum.",time:"Fyll i en tid.",range:"Felaktig inmatning.","datetime-local":"Fyll i datum och tid."},tooLong:"Fyll i max {%maxlength} tecken. Du fyllde i {%valueLen} tecken.",patternMismatch:"Felaktig inmatning. {%title}",valueMissing:{defaultMessage:"Fyll i detta f\u00e4lt.",checkbox:"Bocka dennaa ruta f\u00f6r att g\u00e5 vidare.",select:"V\u00e4lj n\u00e5got ur listan.",
|
2
|
+
radio:"V\u00e4lj ett av valen."},rangeUnderflow:{defaultMessage:"V\u00e4rdet m\u00e5ste vara st\u00f6rre eller lika med {%min}.",date:"Datumet m\u00e5ste vara efter eller lika med {%min}.",time:"Tiden m\u00e5ste vara efter eller lika med {%min}.","datetime-local":"V\u00e4rdet m\u00e5ste vara efter eller lika med {%min}."},rangeOverflow:{defaultMessage:"V\u00e4rdet m\u00e5ste vara mindre eller lika med {%max}.",date:"Datumet m\u00e5ste vara f\u00f6re eller lika med {%max}.",time:"Tiden m\u00e5ste vara f\u00f6re eller lika med {%max}.",
|
3
|
+
"datetime-local":"V\u00e4rdet m\u00e5ste vara f\u00f6re eller lika med {%max}."},stepMismatch:"Felaktig inmatning."};
|
Binary file
|
@@ -1,87 +1,87 @@
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
-
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
-
<head>
|
4
|
-
|
5
|
-
<title>About the JW Player 5</title>
|
6
|
-
|
7
|
-
<style type="text/css">
|
8
|
-
body { background-color: #fff; padding: 0 20px; color:#000; font: 13px/18px Arial, sans-serif; }
|
9
|
-
a { color: #360; }
|
10
|
-
h3 { padding-top: 20px; }
|
11
|
-
ol { margin:5px 0 15px 16px; padding:0; list-style-type:square; }
|
12
|
-
</style>
|
13
|
-
|
14
|
-
</head>
|
15
|
-
<body>
|
16
|
-
|
17
|
-
<h1>About the JW Player 5</h1>
|
18
|
-
<p>Thank you for downloading the JW Player, the leading open source video player for Flash and HTML5 on the Web. Not only is the JW Player the easiest way to put video on your website, but we offer a host of other products and services to assist in providing the best possible video experience for your users.</p>
|
19
|
-
|
20
|
-
<h3>Quickstart</h3>
|
21
|
-
<p>The quickest way to get started is to unzip the file you downloaded (you must have done that if you're reading this!) and copy the contents into a folder called 'jwplayer' at the root of your website. The end result should be:</p>
|
22
|
-
<ol>
|
23
|
-
<li>{webroot}/jwplayer/player.swf</li>
|
24
|
-
<li>{webroot}/jwplayer/jwplayer.js</li>
|
25
|
-
<li>etc...</li>
|
26
|
-
</ol>
|
27
|
-
<p>You can then view the source of this page and copy the code from the example below onto your webpage. That's it! You should see a player on your site.</p>
|
28
|
-
|
29
|
-
<h3>An Example of the JW Player</h3>
|
30
|
-
<p>Below you see a simple embedded example of the JW Player.</p>
|
31
|
-
|
32
|
-
<!-- START OF THE PLAYER EMBEDDING TO COPY-PASTE -->
|
33
|
-
<div id="mediaplayer">JW Player goes here</div>
|
34
|
-
|
35
|
-
<script type="text/javascript" src="jwplayer.js"></script>
|
36
|
-
<script type="text/javascript">
|
37
|
-
jwplayer("mediaplayer").setup({
|
38
|
-
flashplayer: "player.swf",
|
39
|
-
file: "video.mp4",
|
40
|
-
image: "preview.jpg"
|
41
|
-
});
|
42
|
-
</script>
|
43
|
-
<!-- END OF THE PLAYER EMBEDDING -->
|
44
|
-
|
45
|
-
<h3>Support, Documentation and Source Code</h3>
|
46
|
-
|
47
|
-
<p>If you need help, the LongTail Support Community contains a wealth of information, include a large <a href="http://www.longtailvideo.com/support/jw-player/">library of documentation</a>, a very active <a href="http://www.longtailvideo.com/support/forums/jw-player/">support forum</a>, and a <a href="http://www.longtailvideo.com/support/blog">blog</a> on the latest releases and tips on publishing video.</p>
|
48
|
-
|
49
|
-
<p>Some documents you might find useful are:</p>
|
50
|
-
<ol>
|
51
|
-
<li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12539/supported-video-and-audio-formats">Supported file formats</a>.</li>
|
52
|
-
<li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12537/xml-playlist-support">Supported XML playlist formats</a>.</li>
|
53
|
-
<li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12536/configuration-options">Complete list of configuration options</a> (for customizing the player).</li>
|
54
|
-
<li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12540/javascript-api-reference">Supported JavaScript API calls</a> (for JavaScript interaction).</li>
|
55
|
-
<li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/14/skinning-the-jw-player-5">Supported skinning elements</a> (for creating your own graphics).</li>
|
56
|
-
<li><a href="http://developer.longtailvideo.com/trac/roadmap/">Roadmap with full changelogs</a> for each version.</li>
|
57
|
-
</ol>
|
58
|
-
<p>Last, the source code of all different versions of the player can <a href="http://developer.longtailvideo.com/trac/browser/tags">be found here</a>. You can click a version and download the ZIP files (the links are at the bottom).</p>
|
59
|
-
|
60
|
-
<h3>Licensing</h3>
|
61
|
-
<p>The player is licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/2.0/">Creative Commons License</a>. It allows you to use, modify and redistribute the script, but only for <b>non-commercial</b> purposes.</p>
|
62
|
-
<p>Examples of <b>commercial use</b> include:
|
63
|
-
|
64
|
-
<ul>
|
65
|
-
<li>websites with any advertisements; </li>
|
66
|
-
<li>websites owned or operated by corporations; </li>
|
67
|
-
<li>websites designed to promote other products, such as a band or artist;</li>
|
68
|
-
<li>products (e.g. a CMS) that bundle LongTail products into its offering. </li>
|
69
|
-
</ul>
|
70
|
-
|
71
|
-
If any of the above conditions apply to you, then <a href="http://www.longtailvideo.com/order/" title="Order commercial licenses">please purchase a license for the player</a>. If you are still unsure whether you need to purchase a license, please <a href="http://www.longtailvideo.com/support/contact-us">contact us</a>.</p>
|
72
|
-
|
73
|
-
<h3>Related Products</h3>
|
74
|
-
<p>In addition to the JW Player, <a href="http://www.longtailvideo.com">LongTail Video</a> has a suite of products to help you publish video.</p>
|
75
|
-
<p>Learn more about them here:</p>
|
76
|
-
|
77
|
-
<ul>
|
78
|
-
<li><a href="http://www.longtailvideo.com/addons/skins">Skins</a> - Change the look of your player to match your site. <a href="http://www.longtailvideo.com/addons/skins">View our library</a>.</li>
|
79
|
-
<li><a href="http://www.longtailvideo.com/addons/plugins">Plugins</a> - Add functionality to your player, like sharing, social networking, analytics, advertising and more. <a href="http://www.longtailvideo.com/addons/plugins">Find one for you</a>.</li>
|
80
|
-
<li><a href="http://www.longtailvideo.com/referral.aspx?page=pubreferral&ref=xvwjuhgktajeelu">AdSolution</a> - Monetize your videos with LongTail's AdSolution. Integrate pre-roll, overlay and post-roll ads into your site and starting making money today. <a href="http://www.longtailvideo.com/referral.aspx?page=pubreferral&ref=xvwjuhgktajeelu">Sign up now</a>.</li>
|
81
|
-
<li><a href="http://www.bitsontherun.com/via/longtailvideo">Bits on the Run</a> - Upload, encode, store, manage and stream your videos with Bits on the Run, LongTail's end-to-end online video platform. <a href="http://www.bitsontherun.com/via/longtailvideo">Sign up now</a>.</li>
|
82
|
-
</ul>
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
</body>
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
3
|
+
<head>
|
4
|
+
|
5
|
+
<title>About the JW Player 5</title>
|
6
|
+
|
7
|
+
<style type="text/css">
|
8
|
+
body { background-color: #fff; padding: 0 20px; color:#000; font: 13px/18px Arial, sans-serif; }
|
9
|
+
a { color: #360; }
|
10
|
+
h3 { padding-top: 20px; }
|
11
|
+
ol { margin:5px 0 15px 16px; padding:0; list-style-type:square; }
|
12
|
+
</style>
|
13
|
+
|
14
|
+
</head>
|
15
|
+
<body>
|
16
|
+
|
17
|
+
<h1>About the JW Player 5</h1>
|
18
|
+
<p>Thank you for downloading the JW Player, the leading open source video player for Flash and HTML5 on the Web. Not only is the JW Player the easiest way to put video on your website, but we offer a host of other products and services to assist in providing the best possible video experience for your users.</p>
|
19
|
+
|
20
|
+
<h3>Quickstart</h3>
|
21
|
+
<p>The quickest way to get started is to unzip the file you downloaded (you must have done that if you're reading this!) and copy the contents into a folder called 'jwplayer' at the root of your website. The end result should be:</p>
|
22
|
+
<ol>
|
23
|
+
<li>{webroot}/jwplayer/player.swf</li>
|
24
|
+
<li>{webroot}/jwplayer/jwplayer.js</li>
|
25
|
+
<li>etc...</li>
|
26
|
+
</ol>
|
27
|
+
<p>You can then view the source of this page and copy the code from the example below onto your webpage. That's it! You should see a player on your site.</p>
|
28
|
+
|
29
|
+
<h3>An Example of the JW Player</h3>
|
30
|
+
<p>Below you see a simple embedded example of the JW Player.</p>
|
31
|
+
|
32
|
+
<!-- START OF THE PLAYER EMBEDDING TO COPY-PASTE -->
|
33
|
+
<div id="mediaplayer">JW Player goes here</div>
|
34
|
+
|
35
|
+
<script type="text/javascript" src="jwplayer.js"></script>
|
36
|
+
<script type="text/javascript">
|
37
|
+
jwplayer("mediaplayer").setup({
|
38
|
+
flashplayer: "player.swf",
|
39
|
+
file: "video.mp4",
|
40
|
+
image: "preview.jpg"
|
41
|
+
});
|
42
|
+
</script>
|
43
|
+
<!-- END OF THE PLAYER EMBEDDING -->
|
44
|
+
|
45
|
+
<h3>Support, Documentation and Source Code</h3>
|
46
|
+
|
47
|
+
<p>If you need help, the LongTail Support Community contains a wealth of information, include a large <a href="http://www.longtailvideo.com/support/jw-player/">library of documentation</a>, a very active <a href="http://www.longtailvideo.com/support/forums/jw-player/">support forum</a>, and a <a href="http://www.longtailvideo.com/support/blog">blog</a> on the latest releases and tips on publishing video.</p>
|
48
|
+
|
49
|
+
<p>Some documents you might find useful are:</p>
|
50
|
+
<ol>
|
51
|
+
<li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12539/supported-video-and-audio-formats">Supported file formats</a>.</li>
|
52
|
+
<li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12537/xml-playlist-support">Supported XML playlist formats</a>.</li>
|
53
|
+
<li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12536/configuration-options">Complete list of configuration options</a> (for customizing the player).</li>
|
54
|
+
<li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12540/javascript-api-reference">Supported JavaScript API calls</a> (for JavaScript interaction).</li>
|
55
|
+
<li><a href="http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/14/skinning-the-jw-player-5">Supported skinning elements</a> (for creating your own graphics).</li>
|
56
|
+
<li><a href="http://developer.longtailvideo.com/trac/roadmap/">Roadmap with full changelogs</a> for each version.</li>
|
57
|
+
</ol>
|
58
|
+
<p>Last, the source code of all different versions of the player can <a href="http://developer.longtailvideo.com/trac/browser/tags">be found here</a>. You can click a version and download the ZIP files (the links are at the bottom).</p>
|
59
|
+
|
60
|
+
<h3>Licensing</h3>
|
61
|
+
<p>The player is licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/2.0/">Creative Commons License</a>. It allows you to use, modify and redistribute the script, but only for <b>non-commercial</b> purposes.</p>
|
62
|
+
<p>Examples of <b>commercial use</b> include:
|
63
|
+
|
64
|
+
<ul>
|
65
|
+
<li>websites with any advertisements; </li>
|
66
|
+
<li>websites owned or operated by corporations; </li>
|
67
|
+
<li>websites designed to promote other products, such as a band or artist;</li>
|
68
|
+
<li>products (e.g. a CMS) that bundle LongTail products into its offering. </li>
|
69
|
+
</ul>
|
70
|
+
|
71
|
+
If any of the above conditions apply to you, then <a href="http://www.longtailvideo.com/order/" title="Order commercial licenses">please purchase a license for the player</a>. If you are still unsure whether you need to purchase a license, please <a href="http://www.longtailvideo.com/support/contact-us">contact us</a>.</p>
|
72
|
+
|
73
|
+
<h3>Related Products</h3>
|
74
|
+
<p>In addition to the JW Player, <a href="http://www.longtailvideo.com">LongTail Video</a> has a suite of products to help you publish video.</p>
|
75
|
+
<p>Learn more about them here:</p>
|
76
|
+
|
77
|
+
<ul>
|
78
|
+
<li><a href="http://www.longtailvideo.com/addons/skins">Skins</a> - Change the look of your player to match your site. <a href="http://www.longtailvideo.com/addons/skins">View our library</a>.</li>
|
79
|
+
<li><a href="http://www.longtailvideo.com/addons/plugins">Plugins</a> - Add functionality to your player, like sharing, social networking, analytics, advertising and more. <a href="http://www.longtailvideo.com/addons/plugins">Find one for you</a>.</li>
|
80
|
+
<li><a href="http://www.longtailvideo.com/referral.aspx?page=pubreferral&ref=xvwjuhgktajeelu">AdSolution</a> - Monetize your videos with LongTail's AdSolution. Integrate pre-roll, overlay and post-roll ads into your site and starting making money today. <a href="http://www.longtailvideo.com/referral.aspx?page=pubreferral&ref=xvwjuhgktajeelu">Sign up now</a>.</li>
|
81
|
+
<li><a href="http://www.bitsontherun.com/via/longtailvideo">Bits on the Run</a> - Upload, encode, store, manage and stream your videos with Bits on the Run, LongTail's end-to-end online video platform. <a href="http://www.bitsontherun.com/via/longtailvideo">Sign up now</a>.</li>
|
82
|
+
</ul>
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
</body>
|
87
87
|
</html>
|
@@ -1,13 +1,16 @@
|
|
1
|
-
(function(i,
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
a)
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
"
|
13
|
-
|
1
|
+
(function(i,l,f){var j=l.audio&&l.video,s=!1,o=f.cfg.mediaelement,m=f.bugs,v=function(){f.ready("mediaelement-swf",function(){if(!f.mediaelement.createSWF)f.modules["mediaelement-swf"].test=i.noop,f.reTest(["mediaelement-swf"],j)})},k;if(j){var p=document.createElement("video");l.videoBuffered="buffered"in p;s="loop"in p;f.capturingEvents("play,playing,waiting,paused,ended,durationchange,loadedmetadata,canplay,volumechange".split(","));l.videoBuffered||(f.addPolyfill("mediaelement-native-fix",{f:"mediaelement",
|
2
|
+
test:l.videoBuffered,d:["dom-support"]}),f.reTest("mediaelement-native-fix"))}if(j&&!o.preferFlash){var n=function(c){var e=c.target.parentNode;!o.preferFlash&&(i(c.target).is("audio, video")||e&&i("source:last",e)[0]==c.target)&&f.ready("DOM mediaelement",function(){k&&v();f.ready("WINDOWLOAD mediaelement-swf",function(){setTimeout(function(){k&&!o.preferFlash&&f.mediaelement.createSWF&&!i(c.target).closest("audio, video").is(".nonnative-api-active")?(o.preferFlash=!0,document.removeEventListener("error",
|
3
|
+
n,!0),i("audio, video").mediaLoad(),f.info("switching mediaelements option to 'preferFlash', due to an error with native player: "+c.target.src)):k||document.removeEventListener("error",n,!0)},20)})})};document.addEventListener("error",n,!0);i("audio, video").each(function(){this.error&&n({target:this})})}m.track=!1;l.track&&function(){if(!m.track)m.track="number"!=typeof i("<track />")[0].readyState;if(!m.track)try{new TextTrackCue(2,3,"")}catch(c){m.track=!0}var e=f.cfg.track,k=function(c){i(c.target).filter("track").each(j)},
|
4
|
+
j=function(){if(m.track||!e.override&&3==i.prop(this,"readyState"))e.override=!0,f.reTest("track"),document.removeEventListener("error",k,!0),this&&i.nodeName(this,"track")?f.error("track support was overwritten. Please check your vtt including your vtt mime-type"):f.info("track support was overwritten. due to bad browser support")},l=function(){document.addEventListener("error",k,!0);m.track?j():i("track").each(j)};e.override||(f.isReady("track")?l():i(l))}();f.register("mediaelement-core",function(c,
|
5
|
+
e,f,i,n){k=swfobject.hasFlashPlayerVersion("9.0.115");var g=e.mediaelement,p=function(a,b){var a=c(a),h={src:a.attr("src")||"",elem:a,srcProp:a.prop("src")};if(!h.src)return h;var d=a.attr("type");if(d)h.type=d,h.container=c.trim(d.split(";")[0]);else if(b||(b=a[0].nodeName.toLowerCase(),"source"==b&&(b=(a.closest("video, audio")[0]||{nodeName:"video"}).nodeName.toLowerCase())),d=g.getTypeForSrc(h.src,b))h.type=d,h.container=d;if(d=a.attr("media"))h.media=d;return h},q=!k&&"postMessage"in f&&j,w=
|
6
|
+
function(){var a;return function(){!a&&q&&(a=!0,e.loader.loadScript("https://www.youtube.com/player_api"),c(function(){e.polyfill("mediaelement-yt")}))}}(),x=function(){k?v():w()};e.addPolyfill("mediaelement-yt",{test:!q,d:["dom-support"]});g.mimeTypes={audio:{"audio/ogg":["ogg","oga","ogm"],'audio/ogg;codecs="opus"':"opus","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",
|
7
|
+
"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","asx"],"video/flv":["flv","f4v"],"video/3gpp":["3gp","3gpp"],"video/webm":["webm"],"application/x-mpegURL":["m3u8","m3u"],"video/MP2T":["ts"]}};g.mimeTypes.source=c.extend({},g.mimeTypes.audio,g.mimeTypes.video);g.getTypeForSrc=function(a,b){if(-1!=a.indexOf("youtube.com/watch?")||
|
8
|
+
-1!=a.indexOf("youtube.com/v/"))return"video/youtube";var a=a.split("?")[0].split("."),a=a[a.length-1],h;c.each(g.mimeTypes[b],function(b,c){if(-1!==c.indexOf(a))return h=b,!1});return h};g.srces=function(a,b){a=c(a);if(b)a.removeAttr("src").removeAttr("type").find("source").remove(),c.isArray(b)||(b=[b]),b.forEach(function(b){var c=i.createElement("source");"string"==typeof b&&(b={src:b});c.setAttribute("src",b.src);b.type&&c.setAttribute("type",b.type);b.media&&c.setAttribute("media",b.media);a.append(c)});
|
9
|
+
else{var b=[],h=a[0].nodeName.toLowerCase(),d=p(a,h);d.src?b.push(d):c("source",a).each(function(){d=p(this,h);d.src&&b.push(d)});return b}};c.fn.loadMediaSrc=function(a,b){return this.each(function(){b!==n&&(c(this).removeAttr("poster"),b&&c.attr(this,"poster",b));g.srces(this,a);c(this).mediaLoad()})};g.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(",");
|
10
|
+
g.canThirdPlaySrces=function(a,b){var h="";if(k||q)a=c(a),b=b||g.srces(a),c.each(b,function(a,b){if(b.container&&b.src&&(k&&-1!=g.swfMimeTypes.indexOf(b.container)||q&&"video/youtube"==b.container))return h=b,!1});return h};var r={};g.canNativePlaySrces=function(a,b){var h="";if(j){var a=c(a),d=(a[0].nodeName||"").toLowerCase();if(!r[d])return h;b=b||g.srces(a);c.each(b,function(b,c){if(c.type&&r[d].prop._supvalue.call(a[0],c.type))return h=c,!1})}return h};g.setError=function(a,b){b||(b="can't play sources");
|
11
|
+
c(a).pause().data("mediaerror",b);e.warn("mediaelementError: "+b);setTimeout(function(){c(a).data("mediaerror")&&c(a).trigger("mediaerror")},1)};var y=function(){var a;return function(b,c,d){e.ready(k?"mediaelement-swf":"mediaelement-yt",function(){g.createSWF?g.createSWF(b,c,d):a||(a=!0,x(),y(b,c,d))});!a&&q&&!g.createSWF&&w()}}(),t=function(a,b,c,d,e){c||!1!==c&&b&&"third"==b.isActive?(c=g.canThirdPlaySrces(a,d))?y(a,c,b):e?g.setError(a,!1):t(a,b,!1,d,!0):(c=g.canNativePlaySrces(a,d))?b&&"third"==
|
12
|
+
b.isActive&&g.setActive(a,"html5",b):e?(g.setError(a,!1),b&&"third"==b.isActive&&g.setActive(a,"html5",b)):t(a,b,!0,d,!0)},z=/^(?:embed|object|datalist)$/i,u=function(a,b){var h=e.data(a,"mediaelementBase")||e.data(a,"mediaelementBase",{}),d=g.srces(a),f=a.parentNode;clearTimeout(h.loadTimer);c.data(a,"mediaerror",!1);if(d.length&&f&&!(1!=f.nodeType||z.test(f.nodeName||"")))b=b||e.data(a,"mediaelement"),t(a,b,o.preferFlash||n,d)};c(i).bind("ended",function(a){var b=e.data(a.target,"mediaelement");
|
13
|
+
(!s||b&&"html5"!=b.isActive||c.prop(a.target,"loop"))&&setTimeout(function(){!c.prop(a.target,"paused")&&c.prop(a.target,"loop")&&c(a.target).prop("currentTime",0).play()},1)});s||e.defineNodeNamesBooleanProperty(["audio","video"],"loop");["audio","video"].forEach(function(a){var b=e.defineNodeNameProperty(a,"load",{prop:{value:function(){var a=e.data(this,"mediaelement");u(this,a);j&&(!a||"html5"==a.isActive)&&b.prop._supvalue&&b.prop._supvalue.apply(this,arguments)}}});r[a]=e.defineNodeNameProperty(a,
|
14
|
+
"canPlayType",{prop:{value:function(b){var d="";j&&r[a].prop._supvalue&&(d=r[a].prop._supvalue.call(this,b),"no"==d&&(d=""));!d&&k&&(b=c.trim((b||"").split(";")[0]),-1!=g.swfMimeTypes.indexOf(b)&&(d="maybe"));return d}}})});e.onNodeNamesPropertyModify(["audio","video"],["src","poster"],{set:function(){var a=this,b=e.data(a,"mediaelementBase")||e.data(a,"mediaelementBase",{});clearTimeout(b.loadTimer);b.loadTimer=setTimeout(function(){u(a);a=null},9)}});f=function(){e.addReady(function(a,b){c("video, audio",
|
15
|
+
a).add(b.filter("video, audio")).each(function(){c.browser.msie&&8<e.browserVersion&&c.prop(this,"paused")&&!c.prop(this,"readyState")&&c(this).is('audio[preload="none"][controls]:not([autoplay])')?c(this).prop("preload","metadata").mediaLoad():u(this);if(j){var a,b,f=this,g=function(){var a=c.prop(f,"buffered");if(a){for(var b="",d=0,e=a.length;d<e;d++)b+=a.end(d);return b}},i=function(){var a=g();a!=b&&(b=a,c(f).triggerHandler("progress"))};c(this).bind("play loadstart progress",function(c){"progress"==
|
16
|
+
c.type&&(b=g());clearTimeout(a);a=setTimeout(i,999)}).bind("emptied stalled mediaerror abort suspend",function(c){"emptied"==c.type&&(b=!1);clearTimeout(a)})}})})};l.track&&!m.track&&e.defineProperty(TextTrack.prototype,"shimActiveCues",{get:function(){return this._shimActiveCues||this.activeCues}});j?(e.isReady("mediaelement-core",!0),f(),e.ready("WINDOWLOAD mediaelement",x)):e.ready("mediaelement-swf",f);c(function(){e.loader.loadList(["track-ui"])})})})(jQuery,Modernizr,jQuery.webshims);
|
@@ -1,30 +1,30 @@
|
|
1
|
-
jQuery.webshims.register("mediaelement-swf",function(c,f,
|
2
|
-
muted:!1};Object.keys(
|
3
|
-
"jwplayer/"+(j.playerName||"player.swf"),
|
4
|
-
a.duration!=a._lastDuration?(g(a._elem,"durationchange"),("audio"==a._elemNodeName||a._callMeta)&&h.jwEvents.Model.META(c.extend({duration:a.duration},b),a),a._durationCalcs--):a._durationCalcs++}},k=function(a,b){3>a&&clearTimeout(b._canplaythroughTimer);if(3<=a&&3>b.readyState)b.readyState=a,g(b._elem,"canplay"),clearTimeout(b._canplaythroughTimer),b._canplaythroughTimer=setTimeout(function(){k(4,b)},4E3);if(4<=a&&4>b.readyState)b.readyState=a,g(b._elem,"canplaythrough");b.readyState=a};
|
5
|
-
{View:{PLAY:function(a){var b=l(a.id);if(b&&!b.stopPlayPause&&(b._ppFlag=!0,b.paused==a.state)){b.paused=!a.state;if(b.ended)b.ended=!1;g(b._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(a){var b=l(a.id);if(b&&"percentage"in a&&b._bufferedEnd!=a.percentage){b.networkState=100==a.percentage?1:2;(isNaN(b.duration)||5<a.percentage&&25>a.percentage||100===a.percentage)&&
|
6
|
-
b._bufferedEnd>a.percentage)b._bufferedStart=b.currentTime||0;b._bufferedEnd=a.percentage;b.buffered.length=1;if(100==a.percentage)b.networkState=1,k(4,b);c.event.trigger("progress",
|
7
|
-
a.width||0;if(!b.networkState)b.networkState=2;1>b.readyState&&k(1,b);b.duration&&d!==b.duration&&g(b._elem,"durationchange");g(b._elem,"loadedmetadata")}}else b._callMeta=!0},TIME:function(a){var b=l(a.id);if(b&&b.currentTime!==a.position){b.currentTime=a.position;b.duration&&b.duration<b.currentTime&&
|
8
|
-
break;case "PLAYING":b.paused=!1;b._ppFlag=!0;b.duration||
|
9
|
-
a.position)b.currentTime=a.position,g(b._elem,"timeupdate")}},VOLUME:function(a){var b=l(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,g(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=l(a.id);if(b&&b.muted!=a.state)b.muted=a.state,g(b._elem,"volumechange")}}}};var
|
10
|
-
a.actionQueue.length,d=0,c;if(b&&"
|
11
|
-
(b.remove(),b=!1),f=p,o=q,clearTimeout(g),d="auto"==a._elem.style.width,e="auto"==a._elem.style.height,d||e){i=i||c(a._elem).getShadowElement();var h;d&&!e?(h=i.height(),p*=h/q,q=h):!d&&e&&(h=i.width(),q*=h/p,p=h);j=!0;setTimeout(function(){j=!1},9);i.css({width:p,height:q})}},l=function(){if(!("
|
12
|
-
b=c('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),b.bind("load error alreadycomplete",function(){clearTimeout(g);var a=this,d=a.naturalWidth||a.width||a.offsetWidth,i=a.naturalHeight||a.height||a.offsetHeight;i&&d?(h(d,i),a=null):setTimeout(function(){d=a.naturalWidth||a.width||a.offsetWidth;i=a.naturalHeight||a.height||a.offsetHeight;
|
13
|
-
this.error?c(this).triggerHandler("alreadycomplete"):(clearTimeout(g),g=setTimeout(function(){c(a._elem).triggerHandler("error")},9999))})}};c(a._elem).bind("loadedmetadata",function(){h(c.prop(this,"videoWidth"),c.prop(this,"videoHeight"))}).bind("emptied",l).bind("swfstageresize updatemediaelementdimensions",function(){j||h(f,o)}).bind("emptied",function(){f=void 0;o=void 0}).triggerHandler("swfstageresize");
|
14
|
-
h.playerResize=function(a){a&&(a=
|
15
|
-
9*d),2<d&&9>b.tryedReframeing&&(b.tryedReframeing++,b.shadowElem.css({overflow:"visible"}),setTimeout(function(){b.shadowElem.css({overflow:"hidden"})},16))};if(b&&b.jwapi){if(!b.tryedReframeing)b.tryedReframeing=0;clearTimeout(
|
16
|
-
|
17
|
-
b);var e=f.data(a,"shadowData");d.activating=b;c(a).pause();d.isActive=b;"
|
18
|
-
for(k(0,d);--c;)delete d[a[c]];d.actionQueue=[];d.buffered.length=0;f&&g(d._elem,"emptied")}}}(),
|
19
|
-
if(d&&d.swfCreated)h.setActive(a,"
|
20
|
-
f.objectCreate(
|
21
|
-
"muted")});c.extend(e,{id:i,controlbar:o?j.jwVars.controlbar||("video"==k?"over":"bottom"):"video"==k?"none":"bottom",icons:""+(o&&"video"==k)},g,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});e.plugins=e.plugins?e.plugins+(","+
|
22
|
-
"-1").css("outline","none"),setTimeout(function(){if(!b.ref.parentNode&&m[0].parentNode||"none"==b.ref.style.display)m.addClass("flashblocker-assumed"),c(a).trigger("flashblocker"),f.warn("flashblocker assumed");c(b.ref).css({minHeight:"2px",minWidth:"2px",
|
23
|
-
(2>a[0].offsetWidth||2>a[0].offsetHeight)&&f.info("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){c(a).mediaLoad()},
|
24
|
-
("videoHeight"==c||"videoWidth"==c)||(b[c]={get:function(){var a=n(this);return a?a[c]:
|
25
|
-
a
|
26
|
-
|
27
|
-
|
28
|
-
c.cleanData,
|
29
|
-
a
|
30
|
-
|
1
|
+
jQuery.webshims.register("mediaelement-swf",function(c,f,m,u,s,j){var h=f.mediaelement,A=m.swfobject,v=Modernizr.audio&&Modernizr.video,B=A.hasFlashPlayerVersion("9.0.115"),t=0,m={paused:!0,ended:!1,currentSrc:"",duration:m.NaN,readyState:0,networkState:0,videoHeight:0,videoWidth:0,error:null,buffered:{start:function(a){if(a)f.error("buffered index size error");else return 0},end:function(a){if(a)f.error("buffered index size error");else return 0},length:0}},J=Object.keys(m),C={currentTime:0,volume:1,
|
2
|
+
muted:!1};Object.keys(C);var D=c.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_bufferedEnd:0,_bufferedStart:0,_metadata:!1,_durationCalcs:-1,_callMeta:!1,currentTime:0,_ppFlag:s},m,C),E=/^jwplayer-/,l=function(a){if(a=u.getElementById(a.replace(E,"")))return a=f.data(a,"mediaelement"),"third"==a.isActive?a:null},n=function(a){return(a=f.data(a,"mediaelement"))&&"third"==a.isActive?a:null},g=function(a,b){b=c.Event(b);b.preventDefault();c.event.trigger(b,s,a)},K=j.playerPath||f.cfg.basePath+
|
3
|
+
"jwplayer/"+(j.playerName||"player.swf"),F=j.pluginPath||f.cfg.basePath+"swf/jwwebshims.swf";f.extendUNDEFProp(j.jwParams,{allowscriptaccess:"always",allowfullscreen:"true",wmode:"transparent"});f.extendUNDEFProp(j.jwVars,{screencolor:"ffffffff"});f.extendUNDEFProp(j.jwAttrs,{bgcolor:"#000000"});var x=function(a,b){var d=a.duration;if(!(d&&0<a._durationCalcs)){try{if(a.duration=a.jwapi.getPlaylist()[0].duration,!a.duration||0>=a.duration||a.duration===a._lastDuration)a.duration=d}catch(e){}a.duration&&
|
4
|
+
a.duration!=a._lastDuration?(g(a._elem,"durationchange"),("audio"==a._elemNodeName||a._callMeta)&&h.jwEvents.Model.META(c.extend({duration:a.duration},b),a),a._durationCalcs--):a._durationCalcs++}},k=function(a,b){3>a&&clearTimeout(b._canplaythroughTimer);if(3<=a&&3>b.readyState)b.readyState=a,g(b._elem,"canplay"),clearTimeout(b._canplaythroughTimer),b._canplaythroughTimer=setTimeout(function(){k(4,b)},4E3);if(4<=a&&4>b.readyState)b.readyState=a,g(b._elem,"canplaythrough");b.readyState=a};c.extend(c.event.customEvent,
|
5
|
+
{updatemediaelementdimensions:!0,flashblocker:!0,swfstageresize:!0,mediaelementapichange:!0});h.jwEvents={View:{PLAY:function(a){var b=l(a.id);if(b&&!b.stopPlayPause&&(b._ppFlag=!0,b.paused==a.state)){b.paused=!a.state;if(b.ended)b.ended=!1;g(b._elem,a.state?"play":"pause")}}},Model:{BUFFER:function(a){var b=l(a.id);if(b&&"percentage"in a&&b._bufferedEnd!=a.percentage){b.networkState=100==a.percentage?1:2;(isNaN(b.duration)||5<a.percentage&&25>a.percentage||100===a.percentage)&&x(b,a);if(b.ended)b.ended=
|
6
|
+
!1;if(b.duration){2<a.percentage&&20>a.percentage?k(3,b):20<a.percentage&&k(4,b);if(b._bufferedEnd&&b._bufferedEnd>a.percentage)b._bufferedStart=b.currentTime||0;b._bufferedEnd=a.percentage;b.buffered.length=1;if(100==a.percentage)b.networkState=1,k(4,b);c.event.trigger("progress",s,b._elem,!0)}}},META:function(a,b){if(b=b&&b.networkState?b:l(a.id))if("duration"in a){if(!b._metadata||!((!a.height||b.videoHeight==a.height)&&a.duration===b.duration)){b._metadata=!0;var d=b.duration;if(a.duration)b.duration=
|
7
|
+
a.duration;b._lastDuration=b.duration;if(a.height||a.width)b.videoHeight=a.height||0,b.videoWidth=a.width||0;if(!b.networkState)b.networkState=2;1>b.readyState&&k(1,b);b.duration&&d!==b.duration&&g(b._elem,"durationchange");g(b._elem,"loadedmetadata")}}else b._callMeta=!0},TIME:function(a){var b=l(a.id);if(b&&b.currentTime!==a.position){b.currentTime=a.position;b.duration&&b.duration<b.currentTime&&x(b,a);2>b.readyState&&k(2,b);if(b.ended)b.ended=!1;g(b._elem,"timeupdate")}},STATE:function(a){var b=
|
8
|
+
l(a.id);if(b)switch(a.newstate){case "BUFFERING":if(b.ended)b.ended=!1;k(1,b);g(b._elem,"waiting");break;case "PLAYING":b.paused=!1;b._ppFlag=!0;b.duration||x(b,a);3>b.readyState&&k(3,b);if(b.ended)b.ended=!1;g(b._elem,"playing");break;case "PAUSED":if(!b.paused&&!b.stopPlayPause)b.paused=!0,b._ppFlag=!0,g(b._elem,"pause");break;case "COMPLETED":4>b.readyState&&k(4,b),b.ended=!0,g(b._elem,"ended")}}},Controller:{ERROR:function(a){var b=l(a.id);b&&h.setError(b._elem,a.message)},SEEK:function(a){var b=
|
9
|
+
l(a.id);if(b){if(b.ended)b.ended=!1;if(b.paused)try{b.jwapi.sendEvent("play","false")}catch(d){}if(b.currentTime!=a.position)b.currentTime=a.position,g(b._elem,"timeupdate")}},VOLUME:function(a){var b=l(a.id);if(b&&(a=a.percentage/100,b.volume!=a))b.volume=a,g(b._elem,"volumechange")},MUTE:function(a){if(!a.state){var b=l(a.id);if(b&&b.muted!=a.state)b.muted=a.state,g(b._elem,"volumechange")}}}};var L=function(a){var b=!0;c.each(h.jwEvents,function(d,e){c.each(e,function(c){try{a.jwapi["add"+d+"Listener"](c,
|
10
|
+
"jQuery.webshims.mediaelement.jwEvents."+d+"."+c)}catch(e){return b=!1}})});return b},M=function(a){var b=a.actionQueue.length,d=0,c;if(b&&"third"==a.isActive)for(;a.actionQueue.length&&b>d;)d++,c=a.actionQueue.shift(),a.jwapi[c.fn].apply(a.jwapi,c.args);if(a.actionQueue.length)a.actionQueue=[]},G=function(a){a&&(a._ppFlag===s&&c.prop(a._elem,"autoplay")||!a.paused)&&setTimeout(function(){if("third"==a.isActive&&(a._ppFlag===s||!a.paused))try{c(a._elem).play()}catch(b){}},1)},N=function(a){if(a&&
|
11
|
+
"video"==a._elemNodeName){var b,d,e,f,o,i,g,j,h=function(p,q){if(q&&p&&!(1>q||1>p||"third"!=a.isActive))if(b&&(b.remove(),b=!1),f=p,o=q,clearTimeout(g),d="auto"==a._elem.style.width,e="auto"==a._elem.style.height,d||e){i=i||c(a._elem).getShadowElement();var h;d&&!e?(h=i.height(),p*=h/q,q=h):!d&&e&&(h=i.width(),q*=h/p,p=h);j=!0;setTimeout(function(){j=!1},9);i.css({width:p,height:q})}},l=function(){if(!("third"!=a.isActive||c.prop(a._elem,"readyState")&&c.prop(this,"videoWidth"))){var i=c.prop(a._elem,
|
12
|
+
"poster");if(i&&(d="auto"==a._elem.style.width,e="auto"==a._elem.style.height,d||e))b&&(b.remove(),b=!1),b=c('<img style="position: absolute; height: auto; width: auto; top: 0px; left: 0px; visibility: hidden;" />'),b.bind("load error alreadycomplete",function(){clearTimeout(g);var a=this,d=a.naturalWidth||a.width||a.offsetWidth,i=a.naturalHeight||a.height||a.offsetHeight;i&&d?(h(d,i),a=null):setTimeout(function(){d=a.naturalWidth||a.width||a.offsetWidth;i=a.naturalHeight||a.height||a.offsetHeight;
|
13
|
+
h(d,i);b&&(b.remove(),b=!1);a=null},9);c(this).unbind()}).prop("src",i).appendTo("body").each(function(){this.complete||this.error?c(this).triggerHandler("alreadycomplete"):(clearTimeout(g),g=setTimeout(function(){c(a._elem).triggerHandler("error")},9999))})}};c(a._elem).bind("loadedmetadata",function(){h(c.prop(this,"videoWidth"),c.prop(this,"videoHeight"))}).bind("emptied",l).bind("swfstageresize updatemediaelementdimensions",function(){j||h(f,o)}).bind("emptied",function(){f=void 0;o=void 0}).triggerHandler("swfstageresize");
|
14
|
+
l();c.prop(a._elem,"readyState")&&h(c.prop(a._elem,"videoWidth"),c.prop(a._elem,"videoHeight"))}};h.playerResize=function(a){a&&(a=u.getElementById(a.replace(E,"")))&&c(a).triggerHandler("swfstageresize")};c(u).bind("emptied",function(a){a=n(a.target);G(a)});var w;h.jwPlayerReady=function(a){var b=l(a.id),d=0,e=function(){if(!(9<d))if(d++,L(b)){if(b.wasSwfReady)c(b._elem).mediaLoad();else{var g=parseFloat(a.version,10);(5.1>g||6<=g)&&f.warn("mediaelement-swf is only testet with jwplayer 5.6+")}b.wasSwfReady=
|
15
|
+
!0;b.tryedReframeing=0;M(b);G(b)}else clearTimeout(b.reframeTimer),b.reframeTimer=setTimeout(e,9*d),2<d&&9>b.tryedReframeing&&(b.tryedReframeing++,b.shadowElem.css({overflow:"visible"}),setTimeout(function(){b.shadowElem.css({overflow:"hidden"})},16))};if(b&&b.jwapi){if(!b.tryedReframeing)b.tryedReframeing=0;clearTimeout(w);b.jwData=a;b.shadowElem.removeClass("flashblocker-assumed");c.prop(b._elem,"volume",b.volume);c.prop(b._elem,"muted",b.muted);e()}};var y=c.noop;if(v){var O={play:1,playing:1},
|
16
|
+
H="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),I=H.map(function(a){return a+".webshimspolyfill"}).join(" "),P=function(a){var b=f.data(a.target,"mediaelement");b&&(a.originalEvent&&a.originalEvent.type===a.type)==("third"==b.activating)&&(a.stopImmediatePropagation(),O[a.type]&&b.isActive!=b.activating&&c(a.target).pause())},y=function(a){c(a).unbind(I).bind(I,P);H.forEach(function(b){f.moveToFirstEvent(a,b)})};y(u)}h.setActive=function(a,b,
|
17
|
+
d){d||(d=f.data(a,"mediaelement"));if(d&&d.isActive!=b){"html5"!=b&&"third"!=b&&f.warn("wrong type for mediaelement activating: "+b);var e=f.data(a,"shadowData");d.activating=b;c(a).pause();d.isActive=b;"third"==b?(e.shadowElement=e.shadowFocusElement=d.shadowElem[0],c(a).addClass("swf-api-active nonnative-api-active").hide().getShadowElement().show()):(c(a).removeClass("swf-api-active nonnative-api-active").show().getShadowElement().hide(),e.shadowElement=e.shadowFocusElement=!1);c(a).trigger("mediaelementapichange")}};
|
18
|
+
var Q=function(){var a="_bufferedEnd,_bufferedStart,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta,_durationCalcs".split(","),b=a.length;return function(d){if(d){var c=b,f=d.networkState;for(k(0,d);--c;)delete d[a[c]];d.actionQueue=[];d.buffered.length=0;f&&g(d._elem,"emptied")}}}(),z=function(a,b){var d=a._elem,e=a.shadowElem;c(d)[b?"addClass":"removeClass"]("webshims-controls");"audio"==a._elemNodeName&&!b?e.css({width:0,height:0}):e.css({width:d.style.width||
|
19
|
+
c(d).width(),height:d.style.height||c(d).height()})};h.createSWF=function(a,b,d){if(B){1>t?t=1:t++;var e=c.extend({},j.jwVars,{image:c.prop(a,"poster")||"",file:b.srcProp}),g=c(a).data("jwvars")||{};d||(d=f.data(a,"mediaelement"));if(d&&d.swfCreated)h.setActive(a,"third",d),Q(d),d.currentSrc=b.srcProp,c.extend(e,g),j.changeJW(e,a,b,d,"load"),r(a,"sendEvent",["LOAD",e]);else{var o=c.prop(a,"controls"),i="jwplayer-"+f.getID(a),l=c.extend({},j.jwParams,c(a).data("jwparams")),k=a.nodeName.toLowerCase(),
|
20
|
+
n=c.extend({},j.jwAttrs,{name:i,id:i},c(a).data("jwattrs")),m=c('<div class="polyfill-'+k+' polyfill-mediaelement" id="wrapper-'+i+'"><div id="'+i+'"></div>').css({position:"relative",overflow:"hidden"}),d=f.data(a,"mediaelement",f.objectCreate(D,{actionQueue:{value:[]},shadowElem:{value:m},_elemNodeName:{value:k},_elem:{value:a},currentSrc:{value:b.srcProp},swfCreated:{value:!0},buffered:{value:{start:function(a){if(a>=d.buffered.length)f.error("buffered index size error");else return 0},end:function(a){if(a>=
|
21
|
+
d.buffered.length)f.error("buffered index size error");else return(d.duration-d._bufferedStart)*d._bufferedEnd/100+d._bufferedStart},length:0}}}));z(d,o);m.insertBefore(a);v&&c.extend(d,{volume:c.prop(a,"volume"),muted:c.prop(a,"muted")});c.extend(e,{id:i,controlbar:o?j.jwVars.controlbar||("video"==k?"over":"bottom"):"video"==k?"none":"bottom",icons:""+(o&&"video"==k)},g,{playerready:"jQuery.webshims.mediaelement.jwPlayerReady"});e.plugins=e.plugins?e.plugins+(","+F):F;f.addShadowDom(a,m);y(a);h.setActive(a,
|
22
|
+
"third",d);j.changeJW(e,a,b,d,"embed");c(a).bind("updatemediaelementdimensions updateshadowdom",function(){z(d,c.prop(a,"controls"))});N(d);A.embedSWF(K,i,"100%","100%","9.0.0",!1,e,l,n,function(b){if(b.success)d.jwapi=b.ref,o||c(b.ref).attr("tabindex","-1").css("outline","none"),setTimeout(function(){if(!b.ref.parentNode&&m[0].parentNode||"none"==b.ref.style.display)m.addClass("flashblocker-assumed"),c(a).trigger("flashblocker"),f.warn("flashblocker assumed");c(b.ref).css({minHeight:"2px",minWidth:"2px",
|
23
|
+
display:"block"})},9),w||(clearTimeout(w),w=setTimeout(function(){var a=c(b.ref);1<a[0].offsetWidth&&1<a[0].offsetHeight&&0===location.protocol.indexOf("file:")?f.error("Add your local development-directory to the local-trusted security sandbox: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html"):(2>a[0].offsetWidth||2>a[0].offsetHeight)&&f.info("JS-SWF connection can't be established on hidden or unconnected flash objects")},8E3))})}}else setTimeout(function(){c(a).mediaLoad()},
|
24
|
+
1)};var r=function(a,b,d,c){return(c=c||n(a))?(c.jwapi&&c.jwapi[b]?c.jwapi[b].apply(c.jwapi,d||[]):(c.actionQueue.push({fn:b,args:d}),10<c.actionQueue.length&&setTimeout(function(){5<c.actionQueue.length&&c.actionQueue.shift()},99)),c):!1};["audio","video"].forEach(function(a){var b={},d,e=function(c){"audio"==a&&("videoHeight"==c||"videoWidth"==c)||(b[c]={get:function(){var a=n(this);return a?a[c]:v&&d[c].prop._supget?d[c].prop._supget.apply(this):D[c]},writeable:!1})},h=function(a,c){e(a);delete b[a].writeable;
|
25
|
+
b[a].set=c};h("volume",function(a){var b=n(this);if(b){if(a*=100,!isNaN(a)){var c=b.muted;(0>a||100<a)&&f.error("volume greater or less than allowed "+a/100);r(this,"sendEvent",["VOLUME",a],b);if(c)try{b.jwapi.sendEvent("mute","true")}catch(e){}a/=100;if(!(b.volume==a||"third"!=b.isActive))b.volume=a,g(b._elem,"volumechange")}}else if(d.volume.prop._supset)return d.volume.prop._supset.apply(this,arguments)});h("muted",function(a){var b=n(this);if(b){if(a=!!a,r(this,"sendEvent",["mute",""+a],b),!(b.muted==
|
26
|
+
a||"third"!=b.isActive))b.muted=a,g(b._elem,"volumechange")}else if(d.muted.prop._supset)return d.muted.prop._supset.apply(this,arguments)});h("currentTime",function(a){var b=n(this);if(b){if(a*=1,!isNaN(a)){if(b.paused)clearTimeout(b.stopPlayPause),b.stopPlayPause=setTimeout(function(){b.paused=!0;b.stopPlayPause=!1},50);r(this,"sendEvent",["SEEK",""+a],b);if(b.paused){if(0<b.readyState)b.currentTime=a,g(b._elem,"timeupdate");try{b.jwapi.sendEvent("play","false")}catch(c){}}}}else if(d.currentTime.prop._supset)return d.currentTime.prop._supset.apply(this,
|
27
|
+
arguments)});["play","pause"].forEach(function(a){b[a]={value:function(){var b=n(this);if(b)b.stopPlayPause&&clearTimeout(b.stopPlayPause),r(this,"sendEvent",["play","play"==a],b),setTimeout(function(){if("third"==b.isActive&&(b._ppFlag=!0,b.paused!=("play"!=a)))b.paused="play"!=a,g(b._elem,a)},1);else if(d[a].prop._supvalue)return d[a].prop._supvalue.apply(this,arguments)}}});J.forEach(e);f.onNodeNamesPropertyModify(a,"controls",function(b,d){var e=n(this);c(this)[d?"addClass":"removeClass"]("webshims-controls");
|
28
|
+
if(e){try{r(this,d?"showControls":"hideControls",[a],e)}catch(g){f.warn("you need to generate a crossdomain.xml")}"audio"==a&&z(e,d);c(e.jwapi).attr("tabindex",d?"0":"-1")}});d=f.defineNodeNameProperties(a,b,"prop")});if(B){var R=c.cleanData,S=c.browser.msie&&9>f.browserVersion,T={object:1,OBJECT:1};c.cleanData=function(a){var b,c,e;if(a&&(c=a.length)&&t)for(b=0;b<c;b++)if(T[a[b].nodeName]){if("sendEvent"in a[b]){t--;try{a[b].sendEvent("play",!1)}catch(f){}}if(S)try{for(e in a[b])"function"==typeof a[b][e]&&
|
29
|
+
(a[b][e]=null)}catch(g){}}return R.apply(this,arguments)}}v||(["poster","src"].forEach(function(a){f.defineNodeNamesProperty("src"==a?["audio","video","source"]:["video"],a,{reflect:!0,propType:"src"})}),["autoplay","controls"].forEach(function(a){f.defineNodeNamesBooleanProperty(["audio","video"],a)}),f.defineNodeNamesProperties(["audio","video"],{HAVE_CURRENT_DATA:{value:2},HAVE_ENOUGH_DATA:{value:4},HAVE_FUTURE_DATA:{value:3},HAVE_METADATA:{value:1},HAVE_NOTHING:{value:0},NETWORK_EMPTY:{value:0},
|
30
|
+
NETWORK_IDLE:{value:1},NETWORK_LOADING:{value:2},NETWORK_NO_SOURCE:{value:3}},"prop"))});
|
@@ -0,0 +1,14 @@
|
|
1
|
+
jQuery.webshims.register("mediaelement-yt",function(d,e,i,r,m){var n=e.mediaelement,p=jQuery.Deferred();i.onYouTubePlayerAPIReady=function(){p.resolve()};if(i.YT&&YT.Player)i.onYouTubePlayerAPIReady();var i={paused:!0,ended:!1,currentSrc:"",duration:i.NaN,readyState:0,networkState:0,videoHeight:0,videoWidth:0,error:null,buffered:{start:function(b){if(b)e.error("buffered index size error");else return 0},end:function(b){if(b)e.error("buffered index size error");else return 0},length:0}},v=Object.keys(i),
|
2
|
+
s={currentTime:0,volume:1,muted:!1};Object.keys(s);var w=d.extend({isActive:"html5",activating:"html5",wasSwfReady:!1,_metadata:!1,_callMeta:!1,currentTime:0,_buffered:0,_ppFlag:m},i,s),k=function(b,c){c=d.Event(c);c.preventDefault();d.event.trigger(c,m,b)},x=function(){var b="_buffered,_metadata,_ppFlag,currentSrc,currentTime,duration,ended,networkState,paused,videoHeight,videoWidth,_callMeta".split(","),c=b.length;return function(a){if(a){var d=c,h=a.networkState;for(a.readyState=0;--d;)delete a[b[d]];
|
3
|
+
a.buffered.length=0;clearInterval(a._timeInterval);h&&k(a._elem,"emptied")}}}(),t=function(b){var c=b._elem;b.shadowElem.css({width:c.style.width||d(c).width(),height:c.style.height||d(c).height()})},j=function(b){return(b=e.data(b,"mediaelement"))&&"third"==b.isActive?b:null},y=function(b){var c,b=b.split("?");-1!=b[0].indexOf("youtube.com/watch")&&b[1]?(b=b[1].split("&"),d.each(b,function(a,d){d=d.split("=");if("v"==d[0])return b=d[1],c=!0,!1})):-1!=b[0].indexOf("youtube.com/v/")&&(b=b[0].split("/"),
|
4
|
+
d.each(b,function(a,d){if(c)return b=d,!1;"v"==d&&(c=!0)}));c||e.warn("no youtube id found: "+b);return b},u=function(b){b&&(b._ppFlag===m&&d.prop(b._elem,"autoplay")||!b.paused)&&setTimeout(function(){if("third"==b.isActive&&(b._ppFlag===m||!b.paused))try{d(b._elem).play()}catch(c){}},1)},q=d.noop;(function(){var b={play:1,playing:1},c="play,pause,playing,canplay,progress,waiting,ended,loadedmetadata,durationchange,emptied".split(","),a=c.map(function(a){return a+".webshimspolyfill"}).join(" "),
|
5
|
+
g=function(a){var c=e.data(a.target,"mediaelement");c&&(a.originalEvent&&a.originalEvent.type===a.type)==("third"==c.activating)&&(a.stopImmediatePropagation(),b[a.type]&&c.isActive!=c.activating&&d(a.target).pause())};q=function(b){d(b).unbind(a).bind(a,g);c.forEach(function(a){e.moveToFirstEvent(b,a)})};q(r)})();d(r).bind("emptied",function(b){b=j(b.target);u(b)});n.setActive=function(b,c,a){a||(a=e.data(b,"mediaelement"));if(a&&a.isActive!=c){"html5"!=c&&"third"!=c&&e.warn("wrong type for mediaelement activating: "+
|
6
|
+
c);var g=e.data(b,"shadowData");a.activating=c;d(b).pause();a.isActive=c;"third"==c?(g.shadowElement=g.shadowFocusElement=a.shadowElem[0],d(b).addClass("yt-api-active nonnative-api-active").hide().getShadowElement().show()):(clearInterval(a._timeInterval),d(b).removeClass("yt-api-active nonnative-api-active").show().getShadowElement().hide(),g.shadowElement=g.shadowFocusElement=!1);d(b).trigger("mediaelementapichange")}};var o=function(b,c){c._ppFlag=!0;if("playing"==b){o("play",c);if(3>c.readyState)c.readyState=
|
7
|
+
3,k(c._elem,"canplay");d(c._elem).trigger("playing")}if("play"==b&&c.paused)c.paused=!1,k(c._elem,"play");else if("pause"==b&&!c.paused)c.paused=!0,k(c._elem,"pause")},z=function(b,c,a,e){p.done(function(){var h=function(){var c,f;if(a._metadata&&a._ytAPI.getVideoLoadedFraction){f=a._ytAPI.getVideoLoadedFraction();c=f*a.duration;if(a._buffered!==c)a._buffered=c,a.buffered.length=1,d(b).trigger("progress");if(0.99<f)a.networkState=1;if(4>a.readyState&&a.currentTime&&(9<a._buffered-a.currentTime||0.9<
|
8
|
+
f))a.readyState=4,k(a._elem,"canplaythrough")}},f=function(){if("third"==a.isActive&&a._ytAPI&&a._ytAPI.getVolume){var c=a._ytAPI.getVolume()/100,f=a._ytAPI.isMuted(),l;if(c!=a.volume)a.volume=c,l=!0;if(f!=a.muted)a.muted=f,l=!0;if(a._ytAPI&&a._ytAPI.getCurrentTime){c=a._ytAPI.getCurrentTime();if(a.currentTime!=c)a.currentTime=c,d(b).trigger("timeupdate");h()}h();l&&d(b).trigger("volumechange")}},l=function(){clearInterval(a._timeInterval);a._timeInterval=setInterval(function(){var c=a._ytAPI.getCurrentTime();
|
9
|
+
if(a.currentTime!=c)a.currentTime=c,d(b).trigger("timeupdate")},350)};a._ytAPI=new YT.Player(c,{height:"100%",width:"100%",playerVars:{allowfullscreen:!0,fs:1,rel:0,showinfo:0,autohide:1,controls:d.prop(b,"controls")?1:0},videoId:e,events:{onReady:function(){u(a);setTimeout(f,9);setInterval(f,5E3)},onStateChange:function(c){if(c.target.getDuration){var e;if(!a._metadata){var g=c.target.getDuration();if(g){a._metadata=!0;a.duration=g;if(1>a.readyState)a.readyState=1;if(1>a.networkState)a.networkState=
|
10
|
+
2;e=!0}}e&&d(b).trigger("durationchange").trigger("loadedmetadata");setTimeout(f,9);if(1==c.data)o("playing",a),l();else if(2==c.data)clearInterval(a._timeInterval),o("pause",a);else if(3==c.data){if(2<a.readyState)a.readyState=2;a.networkState=2;d(b).trigger("waiting")}else if(0===c.data){if(4<a.readyState)a.readyState=4;a.networkState=1;clearInterval(a._timeInterval);d(b).trigger("ended")}}}}});d(b).bind("updateytdata",f)})};n.createSWF=function(b,c,a){a||(a=e.data(b,"mediaelement"));var g=y(c.src);
|
11
|
+
if(a)n.setActive(b,"third",a),x(a),a.currentSrc=c.srcProp,p.done(function(){a._ytAPI.loadVideoById&&a._ytAPI.loadVideoById(g)});else{d.prop(b,"controls");var h="yt-"+e.getID(b),f=d('<div class="polyfill-video polyfill-mediaelement" id="wrapper-'+h+'"><div id="'+h+'"></div>').css({position:"relative",overflow:"hidden"}),a=e.data(b,"mediaelement",e.objectCreate(w,{shadowElem:{value:f},_elem:{value:b},currentSrc:{value:c.srcProp},buffered:{value:{start:function(b){if(b>=a.buffered.length)e.error("buffered index size error");
|
12
|
+
else return 0},end:function(b){if(b>=a.buffered.length)e.error("buffered index size error");else return a._buffered},length:0}}}));t(a);f.insertBefore(b);e.addShadowDom(b,f);n.setActive(b,"third",a);q(b);z(b,h,a,g);d(b).bind("updatemediaelementdimensions updateshadowdom",function(){t(a)})}};(function(){var b=function(a){clearTimeout(a.updateDataTimer);a.updateDataTimer=setTimeout(function(){d(a._elem).triggerHandler("updateytdata")},9)},c={},a,g=function(b){c[b]={get:function(){var c=j(this);return c?
|
13
|
+
c[b]:a[b].prop._supget.apply(this)},writeable:!1}},h=function(a,b){g(a);delete c[a].writeable;c[a].set=b};v.forEach(g);h("currentTime",function(c){var d=j(this);if(d)c*=1,!isNaN(c)&&d._ytAPI&&d._ytAPI.seekTo&&(d._ytAPI.seekTo(c),b(d));else return a.currentTime.prop._supset.apply(this,arguments)});h("muted",function(c){var d=j(this);if(d)d._ytAPI&&d._ytAPI.mute&&(d._ytAPI[c?"mute":"unMute"](),b(d));else return a.muted.prop._supset.apply(this,arguments)});h("volume",function(c){var d=j(this);if(d)c*=
|
14
|
+
100,!isNaN(c)&&d._ytAPI&&d._ytAPI.setVolume&&((0>c||100<c)&&e.error("volume greater or less than allowed "+c/100),d._ytAPI.setVolume(c),b(d));else return a.volume.prop._supset.apply(this,arguments)});d.each(["play","pause"],function(b,d){var e=d+"Video";c[d]={value:function(){var b=j(this);if(b)b._ytAPI&&b._ytAPI[e]&&(b._ytAPI[e](),o(d,b));else return a[d].prop._supvalue.apply(this,arguments)}}});a=e.defineNodeNameProperties("video",c,"prop")})()});
|
@@ -1,6 +1,6 @@
|
|
1
1
|
article,aside,canvas,details,figcaption,figure,
|
2
2
|
footer,header,hgroup,menu,nav,section,summary {
|
3
|
-
|
3
|
+
display:block;
|
4
4
|
}
|
5
5
|
audio {
|
6
6
|
display: none;
|
@@ -26,6 +26,50 @@ audio * {
|
|
26
26
|
min-height: 20px;
|
27
27
|
min-width: 20px;
|
28
28
|
}
|
29
|
+
.cue-display {
|
30
|
+
position: absolute !important;
|
31
|
+
margin: 0;
|
32
|
+
padding: 0px !important;
|
33
|
+
max-width: 100% !important;
|
34
|
+
max-height: 100% !important;
|
35
|
+
border: none !important;
|
36
|
+
background: none !important;
|
37
|
+
text-align: center;
|
38
|
+
visibility: hidden;
|
39
|
+
font-family: sans-serif;
|
40
|
+
font-size: 12px;
|
41
|
+
white-space: pre-wrap;
|
42
|
+
overflow: hidden;
|
43
|
+
}
|
44
|
+
.cue-display b {
|
45
|
+
font-weight: bold;
|
46
|
+
}
|
47
|
+
.cue-display i {
|
48
|
+
font-style: italic;
|
49
|
+
}
|
50
|
+
.cue-display u {
|
51
|
+
text-decoration: underline;
|
52
|
+
}
|
53
|
+
.cue-display span.cue-wrapper {
|
54
|
+
position: absolute;
|
55
|
+
left: 0;
|
56
|
+
bottom: 0;
|
57
|
+
right: 0;
|
58
|
+
display: block;
|
59
|
+
padding: 0;
|
60
|
+
margin: 0;
|
61
|
+
width: 100%;
|
62
|
+
font-size: 160%;
|
63
|
+
color: #fff;
|
64
|
+
visibility: visible !important;
|
65
|
+
}
|
66
|
+
.cue-display span.cue {
|
67
|
+
display: inline-block;
|
68
|
+
padding: 3px 5px;
|
69
|
+
background: #000;
|
70
|
+
background: rgba(0,0,0,0.8);
|
71
|
+
color: #fff;
|
72
|
+
}
|
29
73
|
mark {
|
30
74
|
background-color: #ff9;
|
31
75
|
color: #000;
|
@@ -36,7 +80,6 @@ mark {
|
|
36
80
|
/* reset */
|
37
81
|
.input-range .ui-slider-range,
|
38
82
|
.placeholder-box,
|
39
|
-
.placeholder-box,
|
40
83
|
.placeholder-text,
|
41
84
|
.input-datetime-local,
|
42
85
|
.step-controls,
|
@@ -55,6 +98,19 @@ output {
|
|
55
98
|
position: relative;
|
56
99
|
}
|
57
100
|
|
101
|
+
.webshims-visual-hide {
|
102
|
+
position: absolute !important;
|
103
|
+
top: 0 !important;
|
104
|
+
left: 0 !important;
|
105
|
+
visibility: hidden !important;
|
106
|
+
width: 0 !important;
|
107
|
+
height: 0 !important;
|
108
|
+
overflow: hidden !important;
|
109
|
+
}
|
110
|
+
|
111
|
+
.webshims-visual-hide * {
|
112
|
+
visibility: hidden !important;
|
113
|
+
}
|
58
114
|
|
59
115
|
/* placeholder */
|
60
116
|
.placeholder-box {
|
@@ -65,7 +121,6 @@ output {
|
|
65
121
|
.polyfill-important .placeholder-box {
|
66
122
|
position: relative !important;
|
67
123
|
display: inline-block !important;
|
68
|
-
overflow: hidden !important;
|
69
124
|
margin: 0 !important;
|
70
125
|
padding: 0 !important;
|
71
126
|
width: auto !important;
|
@@ -104,13 +159,15 @@ output {
|
|
104
159
|
.placeholder-visible {
|
105
160
|
color: #999;
|
106
161
|
}
|
107
|
-
.placeholder-visible .placeholder-text
|
162
|
+
.placeholder-visible .placeholder-text,
|
163
|
+
.placeholder-text.placeholder-visible {
|
108
164
|
display: inline-block;
|
109
165
|
}
|
110
166
|
.placeholder-focused.placeholder-visible {
|
111
167
|
color: #ccc;
|
112
168
|
}
|
113
|
-
.polyfill-important .placeholder-visible .placeholder-text
|
169
|
+
.polyfill-important .placeholder-visible .placeholder-text,
|
170
|
+
.polyfill-important .placeholder-text.placeholder-visible {
|
114
171
|
display: inline-block !important;
|
115
172
|
}
|
116
173
|
|
@@ -500,6 +557,7 @@ datalist {
|
|
500
557
|
position: absolute !important;
|
501
558
|
overflow: hidden;
|
502
559
|
padding: 0 6px 6px 0;
|
560
|
+
font: 12px/140% sans-serif;
|
503
561
|
z-index: 1000000000;
|
504
562
|
|
505
563
|
}
|
@@ -511,9 +569,10 @@ datalist {
|
|
511
569
|
display: inline-block !important;
|
512
570
|
background: #fafafa;
|
513
571
|
color: #000;
|
514
|
-
border: 1px solid #
|
572
|
+
border: 1px solid #ccc;
|
515
573
|
padding: 5px;
|
516
|
-
border-radius:
|
574
|
+
border-radius: 5px;
|
575
|
+
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
|
517
576
|
zoom: 1 !important;
|
518
577
|
min-width: 60px;
|
519
578
|
}
|
@@ -528,16 +587,18 @@ datalist {
|
|
528
587
|
border-left: 9px solid transparent;
|
529
588
|
border-right: 9px solid transparent;
|
530
589
|
|
531
|
-
border-bottom: 7px solid #
|
590
|
+
border-bottom: 7px solid #ccc;
|
532
591
|
border-top: none;
|
533
592
|
zoom: 1;
|
534
593
|
font-size: 0;
|
535
594
|
}
|
536
|
-
html .validity-alert span.va-arrow
|
595
|
+
html .validity-alert span.va-arrow,
|
596
|
+
html .validity-alert .va-arrow .va-arrow-box{
|
537
597
|
border-left-color: transparent;
|
538
598
|
border-right-color: transparent;
|
539
599
|
}
|
540
|
-
.polyfill-important .validity-alert span.va-arrow
|
600
|
+
.polyfill-important .validity-alert span.va-arrow,
|
601
|
+
.polyfill-important .validity-alert .va-arrow .va-arrow-box {
|
541
602
|
border-left-color: transparent !important;
|
542
603
|
border-right-color: transparent !important;
|
543
604
|
}
|