16 lines
42 KiB
JavaScript
16 lines
42 KiB
JavaScript
|
!function(){for(var o=0,e=["ms","moz","webkit","o"],t=0;t<e.length&&!window.requestAnimationFrame;++t)window.requestAnimationFrame=window[e[t]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[t]+"CancelAnimationFrame"]||window[e[t]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,t){var n=(new Date).getTime(),i=Math.max(0,16-(n-o)),r=window.setTimeout(function(){e(n+i)},i);return o=n+i,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}(),function(){var e="undefined"!=typeof exports?exports:"undefined"!=typeof self?self:$.global,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function l(e){this.message=e}(l.prototype=new Error).name="InvalidCharacterError",e.btoa||(e.btoa=function(e){for(var t,n,i=String(e),r=0,o=s,a="";i.charAt(0|r)||(o="=",r%1);a+=o.charAt(63&t>>8-r%1*8)){if(255<(n=i.charCodeAt(r+=.75)))throw new l("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");t=t<<8|n}return a}),e.atob||(e.atob=function(e){var t=String(e).replace(/[=]+$/,"");if(t.length%4==1)throw new l("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,a="";i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?a+=String.fromCharCode(255&n>>(-2*r&6)):0)i=s.indexOf(i);return a})}(),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):"object"==typeof exports?exports.Holder=t():e.Holder=t()}(this,function(){return function(n){function i(e){if(r[e])return r[e].exports;var t=r[e]={exports:{},id:e,loaded:!1};return n[e].call(t.exports,t,t.exports,i),t.loaded=!0,t.exports}var r={};return i.m=n,i.c=r,i.p="",i(0)}([function(E,e,T){(function(L){function M(e,t,n,i){var r=D(n.substr(n.lastIndexOf(e.domain)),e);r&&j({mode:null,el:i,flags:r,engineSettings:t})}function D(e,t){for(var n={theme:R(Q.settings.themes.gray,null),stylesheets:t.stylesheets,holderURL:[]},i=!1,r=String.fromCharCode(11),o=e.replace(/([^\\])\//g,"$1"+r).split(r),a=/%[0-9a-f]{2}/gi,s=o.length,l=0;l<s;l++){var c=o[l];if(c.match(a))try{c=decodeURIComponent(c)}catch(g){c=o[l]}var u=!1;if(Q.flags.dimensions.match(c))i=!0,n.dimensions=Q.flags.dimensions.output(c),u=!0;else if(Q.flags.fluid.match(c))i=!0,n.dimensions=Q.flags.fluid.output(c),u=n.fluid=!0;else if(Q.flags.textmode.match(c))n.textmode=Q.flags.textmode.output(c),u=!0;else if(Q.flags.colors.match(c)){var d=Q.flags.colors.output(c);n.theme=R(n.theme,d),u=!0}else if(t.themes[c])t.themes.hasOwnProperty(c)&&(n.theme=R(t.themes[c],null)),u=!0;else if(Q.flags.font.match(c))n.font=Q.flags.font.output(c),u=!0;else if(Q.flags.auto.match(c))u=n.auto=!0;else if(Q.flags.text.match(c))n.text=Q.flags.text.output(c),u=!0;else if(Q.flags.size.match(c))n.size=Q.flags.size.output(c),u=!0;else if(Q.flags.random.match(c)){null==Q.vars.cache.themeKeys&&(Q.vars.cache.themeKeys=Object.keys(t.themes));var h=Q.vars.cache.themeKeys[0|Math.random()*Q.vars.cache.themeKeys.length];n.theme=R(t.themes[h],null),u=!0}u&&n.holderURL.push(c)}return n.holderURL.unshift(t.domain),n.holderURL=n.holderURL.join("/"),!!i&&n}function j(e){var t=e.mode,n=e.el,i=e.flags,r=e.engineSettings,o=i.dimensions,a=i.theme,s=o.width+"x"+o.height;if(t=null==t?i.fluid?"fluid":"image":t,null!=i.text&&(a.text=i.text,"object"===n.nodeName.toLowerCase())){for(var l=a.text.split("\\n"),c=0;c<l.length;c++)l[c]=w(l[c]);a.text=l.join("\\n")}var u=i.holderURL,d=R(r,null);if(i.font&&(a.font=i.font,!d.noFontFallback&&"img"===n.nodeName.toLowerCase()&&Q.setup.supportsCanvas&&"svg"===d.renderer&&(d=R(d,{renderer:"canvas"}))),i.font&&"canvas"==d.renderer&&(d.reRender=!0),"background"==t)null==n.getAttribute("data-background-src")&&F(n,{"data-background-src":u});else{var h={};h[Q.vars.dataAttr]=u,F(n,h)}i.theme=a,n.holderData={flags:i,engineSettings:d},("image"==t||"fluid"==t)&&F(n,{alt:a.text?a.text+" ["+s+"]":s});var f={mode:t,el:n,holderSettings:{dimensions:o,theme:a,flags:i},engineSettings:d};"image"==t?("html"!=d.renderer&&i.aut
|
||
|
/*!
|
||
|
* IE10 viewport hack for Surface/desktop Windows 8 bug
|
||
|
* Copyright 2014-2019 Twitter, Inc.
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||
|
*/
|
||
|
function(){"use strict";if(navigator.userAgent.match(/IEMobile\/10\.0/)){var e=document.createElement("style");e.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.querySelector("head").appendChild(e)}}(),
|
||
|
/*!
|
||
|
* Copyright 2014-2019 Twitter, Inc.
|
||
|
*
|
||
|
* Licensed under the Creative Commons Attribution 3.0 Unported License. For
|
||
|
* details, see https://creativecommons.org/licenses/by/3.0/.
|
||
|
*/
|
||
|
function(){"use strict";var e=window.navigator.userAgent;if(!(-1<e.indexOf("Opera")||-1<e.indexOf("Presto"))){var t=function i(){var e=/MSIE ([0-9.]+)/.exec(window.navigator.userAgent);if(null===e)return null;var t=parseInt(e[1],10);return Math.floor(t)}();if(null!==t){var n=function r(){
|
||
|
// @cc_on docs: https://msdn.microsoft.com/library/8ka90k2e%28v=vs.94%29.aspx
|
||
|
var e=new Function("/*@cc_on return @_jscript_version; @*/")();return e===undefined?11:e<9?8:e}();t!==n&&window.alert("WARNING: You appear to be using IE"+n+" in IE"+t+" emulation mode.\nIE emulation modes can behave significantly differently from ACTUAL older versions of IE.\nPLEASE DON'T FILE BOOTSTRAP BUGS based on testing in IE emulation modes!")}}}();
|