From c8efaeead6cfc7bbe9dce60abf68f5895a88c45d Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Fri, 11 Mar 2016 18:43:04 +0100 Subject: [PATCH 01/17] Fix scrollbars, were not working on osx --- themes/grav/app/utils/scrollbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/grav/app/utils/scrollbar.js b/themes/grav/app/utils/scrollbar.js index 8055dbf1..10f39337 100644 --- a/themes/grav/app/utils/scrollbar.js +++ b/themes/grav/app/utils/scrollbar.js @@ -4,7 +4,7 @@ import GeminiScrollbar from 'gemini-scrollbar'; const defaults = { autoshow: false, createElements: true, - forceGemini: false + forceGemini: true }; export default class Scrollbar { From 658d0fefa507141ba1a08c30ce51e75de8c01a4a Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Fri, 11 Mar 2016 18:43:39 +0100 Subject: [PATCH 02/17] this.instance was undefined on the login form, throwing an error --- themes/grav/app/utils/scrollbar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/grav/app/utils/scrollbar.js b/themes/grav/app/utils/scrollbar.js index 10f39337..329ea9ed 100644 --- a/themes/grav/app/utils/scrollbar.js +++ b/themes/grav/app/utils/scrollbar.js @@ -23,7 +23,9 @@ export default class Scrollbar { } update() { - this.instance.update(); + if (typeof this.instance !== 'undefined') { + this.instance.update(); + } } destroy() { From 3d5bf396615763cc0aafa8dd2c3859e29acfa9c8 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Fri, 11 Mar 2016 18:45:38 +0100 Subject: [PATCH 03/17] Minimized js --- themes/grav/js/admin.min.js | 22 +++++++++++----------- themes/grav/js/vendor.min.js | 6 +++--- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/themes/grav/js/admin.min.js b/themes/grav/js/admin.min.js index 4149fa1d..2e0b628e 100644 --- a/themes/grav/js/admin.min.js +++ b/themes/grav/js/admin.min.js @@ -1,19 +1,19 @@ -var Grav=webpackJsonpGrav([0],[function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=r(i),a=n(2),s=r(a),u=n(295),c=r(u),l=n(296),f=r(l),d=n(301),h=r(d),p=n(306),m=r(p),v=n(385),g=r(v),_=n(476),y=r(_);n(478),n(479),n(480),n(481),n(482),n(483);var b=n(485),x=r(b);c["default"].start(),t.setInterval(function(){_.Instance.update(),b.Instance.scroller.update()},150),(0,o["default"])(t).on("sidebar_state._grav",function(){(0,o["default"])("#admin-menu").data("scrollbar").update(),(0,o["default"])("#admin-main .content-wrapper").data("scrollbar").update(),Object.keys(h["default"].Chart.Instances).forEach(function(t){h["default"].Chart.Instances[t].chart.update()})}),e["default"]={GPM:{GPM:s["default"],Instance:a.Instance},KeepAlive:c["default"],Dashboard:h["default"],Pages:m["default"],Forms:g["default"],Scrollbar:{Scrollbar:y["default"],Instance:_.Instance},Updates:{Updates:f["default"],Instance:l.Instance},Sidebar:{Sidebar:x["default"],Instance:b.Instance}}}).call(e,function(){return this}())},,function(t,e,n){(function(t){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Instance=void 0;var a=function(){function t(t,e){for(var n=0;n-1?e:t}function f(t,e){e=e||{};var n=e.body;if(f.prototype.isPrototypeOf(t)){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new i(t.headers)),this.method=t.method,this.mode=t.mode,n||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=t;if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new i(e.headers)),this.method=l(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function d(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}}),e}function h(t){var e=new i,n=t.getAllResponseHeaders().trim().split("\n");return n.forEach(function(t){var n=t.trim().split(":"),r=n.shift().trim(),i=n.join(":").trim();e.append(r,i)}),e}function p(t,e){e||(e={}),this.type="default",this.status=e.status,this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText,this.headers=e.headers instanceof i?e.headers:new i(e.headers),this.url=e.url||"",this._initBody(t)}if(!t.fetch){i.prototype.append=function(t,e){t=n(t),e=r(e);var i=this.map[t];i||(i=[],this.map[t]=i),i.push(e)},i.prototype["delete"]=function(t){delete this.map[n(t)]},i.prototype.get=function(t){var e=this.map[n(t)];return e?e[0]:null},i.prototype.getAll=function(t){return this.map[n(t)]||[]},i.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},i.prototype.set=function(t,e){this.map[n(t)]=[r(e)]},i.prototype.forEach=function(t,e){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(r){t.call(e,r,n,this)},this)},this)};var m={blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t},v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];f.prototype.clone=function(){return new f(this)},c.call(f.prototype),c.call(p.prototype),p.prototype.clone=function(){return new p(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},p.error=function(){var t=new p(null,{status:0,statusText:""});return t.type="error",t};var g=[301,302,303,307,308];p.redirect=function(t,e){if(-1===g.indexOf(e))throw new RangeError("Invalid status code");return new p(null,{status:e,headers:{location:t}})},t.Headers=i,t.Request=f,t.Response=p,t.fetch=function(t,n){return new e(function(e,r){function i(){return"responseURL"in a?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):void 0}var o;o=f.prototype.isPrototypeOf(t)&&!n?t:new f(t,n);var a=new XMLHttpRequest;a.onload=function(){var t=1223===a.status?204:a.status;if(100>t||t>599)return void r(new TypeError("Network request failed"));var n={status:t,statusText:a.statusText,headers:h(a),url:i()},o="response"in a?a.response:a.responseText;e(new p(o,n))},a.onerror=function(){r(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&m.blob&&(a.responseType="blob"),o.headers.forEach(function(t,e){a.setRequestHeader(e,t)}),a.send("undefined"==typeof o._bodyInit?null:o._bodyInit)})},t.fetch.polyfill=!0}}("undefined"!=typeof self?self:this),t.exports=n.fetch}).call(n)}).call(e,n(4),function(){return this}())},function(t,e,n){(function(e){(function(){"use strict";function r(t,e,n){t[e]||i(t,e,{writable:!0,configurable:!0,value:n})}var i=n(5)["default"];if(n(8),n(284),n(286),e._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");e._babelPolyfill=!0,r(String.prototype,"padLeft","".padStart),r(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&r(Array,t,Function.call.bind([][t]))}),t.exports=e.Promise}).call(e)}).call(e,function(){return this}())},function(t,e,n){t.exports={"default":n(6),__esModule:!0}},function(t,e,n){var r=n(7);t.exports=function(t,e,n){return r.setDesc(t,e,n)}},function(t,e){var n=Object;t.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},function(t,e,n){n(9),n(56),n(57),n(58),n(59),n(61),n(64),n(65),n(66),n(67),n(68),n(69),n(70),n(71),n(72),n(74),n(76),n(78),n(80),n(83),n(84),n(85),n(89),n(91),n(93),n(97),n(98),n(99),n(100),n(102),n(103),n(104),n(105),n(106),n(107),n(108),n(110),n(111),n(112),n(114),n(115),n(116),n(118),n(119),n(120),n(121),n(122),n(123),n(124),n(125),n(126),n(127),n(128),n(129),n(130),n(131),n(136),n(137),n(141),n(142),n(143),n(144),n(146),n(147),n(148),n(149),n(150),n(151),n(152),n(153),n(154),n(155),n(156),n(157),n(158),n(159),n(160),n(161),n(162),n(163),n(168),n(169),n(171),n(172),n(173),n(176),n(177),n(178),n(179),n(180),n(182),n(183),n(184),n(185),n(188),n(190),n(191),n(192),n(194),n(196),n(198),n(199),n(200),n(202),n(203),n(204),n(205),n(211),n(214),n(215),n(217),n(218),n(221),n(222),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(245),n(246),n(247),n(248),n(249),n(250),n(252),n(253),n(254),n(255),n(256),n(258),n(259),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(282),n(283),t.exports=n(11)},function(t,e,n){"use strict";var r=n(10),i=n(11),o=n(12),a=n(13),s=n(15),u=n(24),c=n(28).KEY,l=n(14),f=n(29),d=n(30),h=n(25),p=n(31),m=n(32),v=n(45),g=n(48),_=n(18),y=n(35),b=n(22),x=n(23),w=n(49),k=n(52),S=n(54),E=n(17),A=S.f,M=E.f,I=k.f,O=r.Symbol,j=r.JSON,z=j&&j.stringify,C=!1,P=p("_hidden"),T={}.propertyIsEnumerable,L=f("symbol-registry"),D=f("symbols"),q=Object.prototype,N="function"==typeof O,F=r.QObject,R=a&&l(function(){return 7!=w(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=A(q,e);r&&delete q[e],M(t,e,n),r&&t!==q&&M(q,e,r)}:M,U=function(t){var e=D[t]=w(O.prototype);return e._k=t,a&&C&&R(q,t,{configurable:!0,set:function(e){o(this,P)&&o(this[P],t)&&(this[P][t]=!1),R(this,t,x(1,e))}}),e},B=function(t){return"symbol"==typeof t},V=function(t,e,n){return _(t),e=b(e,!0),_(n),o(D,e)?(n.enumerable?(o(t,P)&&t[P][e]&&(t[P][e]=!1),n=w(n,{enumerable:x(0,!1)})):(o(t,P)||M(t,P,x(1,{})),t[P][e]=!0),R(t,e,n)):M(t,e,n)},H=function(t,e){_(t);for(var n,r=v(e=y(e)),i=0,o=r.length;o>i;)V(t,n=r[i++],e[n]);return t},W=function(t,e){return void 0===e?w(t):H(w(t),e)},K=function(t){var e=T.call(this,t=b(t,!0));return e||!o(this,t)||!o(D,t)||o(this,P)&&this[P][t]?e:!0},G=function(t,e){var n=A(t=y(t),e=b(e,!0));return!n||!o(D,e)||o(t,P)&&t[P][e]||(n.enumerable=!0),n},$=function(t){for(var e,n=I(y(t)),r=[],i=0;n.length>i;)o(D,e=n[i++])||e==P||e==c||r.push(e);return r},J=function(t){for(var e,n=I(y(t)),r=[],i=0;n.length>i;)o(D,e=n[i++])&&r.push(D[e]);return r},Y=function(t){if(void 0!==t&&!B(t)){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return e=r[1],"function"==typeof e&&(n=e),!n&&g(e)||(e=function(t,e){return n&&(e=n.call(this,t,e)),B(e)?void 0:e}),r[1]=e,z.apply(j,r)}},X=l(function(){var t=O();return"[null]"!=z([t])||"{}"!=z({a:t})||"{}"!=z(Object(t))});N||(O=function(){if(B(this))throw TypeError("Symbol is not a constructor");return U(h(arguments.length>0?arguments[0]:void 0))},u(O.prototype,"toString",function(){return this._k}),B=function(t){return t instanceof O},S.f=G,E.f=V,n(53).f=k.f=$,n(47).f=K,n(46).f=J,a&&!n(55)&&u(q,"propertyIsEnumerable",K,!0)),s(s.G+s.W+s.F*!N,{Symbol:O});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Z=0;Q.length>Z;){var tt=Q[Z++],et=i.Symbol,nt=p(tt);tt in et||M(et,tt,{value:N?nt:U(nt)})}F&&F.prototype&&F.prototype.findChild||(C=!0),s(s.S+s.F*!N,"Symbol",{"for":function(t){return o(L,t+="")?L[t]:L[t]=O(t)},keyFor:function(t){return m(L,t)},useSetter:function(){C=!0},useSimple:function(){C=!1}}),s(s.S+s.F*!N,"Object",{create:W,defineProperty:V,defineProperties:H,getOwnPropertyDescriptor:G,getOwnPropertyNames:$,getOwnPropertySymbols:J}),j&&s(s.S+s.F*(!N||X),"JSON",{stringify:Y}),d(O,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.1.4"};"number"==typeof __e&&(__e=n)},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){t.exports=!n(14)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,n){var r=n(10),i=n(11),o=n(16),a=n(24),s=n(26),u="prototype",c=function(t,e,n){var l,f,d,h,p=t&c.F,m=t&c.G,v=t&c.S,g=t&c.P,_=t&c.B,y=m?r:v?r[e]||(r[e]={}):(r[e]||{})[u],b=m?i:i[e]||(i[e]={}),x=b[u]||(b[u]={});m&&(n=e);for(l in n)f=!p&&y&&void 0!==y[l],d=(f?y:n)[l],h=_&&f?s(d,r):g&&"function"==typeof d?s(Function.call,d):d,y&&a(y,l,d,t&c.U),b[l]!=d&&o(b,l,h),g&&x[l]!=d&&(x[l]=d)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(17),i=n(23);t.exports=n(13)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(18),i=n(20),o=n(22),a=Object.defineProperty;e.f=n(13)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(19);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(13)&&!n(14)(function(){return 7!=Object.defineProperty(n(21)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(19),i=n(10).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(19);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(10),i=n(16),o=n(12),a=n(25)("src"),s="toString",u=Function[s],c=(""+u).split(s);n(11).inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,n,s){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(u&&(o(n,a)||i(n,a,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||u.call(this)})},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(27);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(25)("meta"),i=n(19),o=n(12),a=n(17).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(14)(function(){return u(Object.preventExtensions({}))}),l=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},f=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},d=function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[r].w},h=function(t){return c&&p.NEED&&u(t)&&!o(t,r)&&l(t),t},p=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:d,onFreeze:h}},function(t,e,n){var r=n(10),i="__core-js_shared__",o=r[i]||(r[i]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,n){var r=n(17).f,i=n(12),o=n(31)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(29)("wks"),i=n(25),o=n(10).Symbol,a="function"==typeof o;t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}},function(t,e,n){var r=n(33),i=n(35);t.exports=function(t,e){for(var n,o=i(t),a=r(o),s=a.length,u=0;s>u;)if(o[n=a[u++]]===e)return n}},function(t,e,n){var r=n(34),i=n(44);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(12),i=n(35),o=n(39)(!1),a=n(43)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){var r=n(36),i=n(38);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(37);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(35),i=n(40),o=n(42);t.exports=function(t){return function(e,n,a){var s,u=r(e),c=i(u.length),l=o(a,c);if(t&&n!=n){for(;c>l;)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l;return!t&&-1}}},function(t,e,n){var r=n(41),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(41),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),0>t?i(t+e,0):o(t,e)}},function(t,e,n){var r=n(29)("keys"),i=n(25);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(33),i=n(46),o=n(47);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var a,s=n(t),u=o.f,c=0;s.length>c;)u.call(t,a=s[c++])&&e.push(a);return e}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(37);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(18),i=n(50),o=n(44),a=n(43)("IE_PROTO"),s=function(){},u="prototype",c=function(){var t,e=n(21)("iframe"),r=o.length,i=">";for(e.style.display="none",n(51).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("