From 3523c89610fc37d0be808427a099188982cecf76 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Thu, 26 Apr 2018 15:20:34 +0200 Subject: [PATCH] Added temporary scripts for testing --- .eslintignore | 3 +++ docs/assets/javascripts/ginseng.js | 1 + material/base.html | 1 - mkdocs.yml | 4 ++++ src/base.html | 3 --- 5 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 docs/assets/javascripts/ginseng.js diff --git a/.eslintignore b/.eslintignore index b6c862836..a33a8523e 100644 --- a/.eslintignore +++ b/.eslintignore @@ -22,3 +22,6 @@ /build /material /site + +# Extra JavaScript +/docs/**/*.js diff --git a/docs/assets/javascripts/ginseng.js b/docs/assets/javascripts/ginseng.js new file mode 100644 index 000000000..7d24af66f --- /dev/null +++ b/docs/assets/javascripts/ginseng.js @@ -0,0 +1 @@ +!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(2);var r=n(3),o=n(4);window.addEventListener("load",function(){o.capture(document.body,function(e){r.request("https://4s8ipes8zk.execute-api.us-east-1.amazonaws.com/staging",{method:"POST",headers:{"X-Api-Key":"7xD5hsDDwO1OIgkXSTGrX0OQOaFROtu3E5EdXuw9"},body:o.pack(e)},function(){})})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),window.requestIdleCallback=window.requestIdleCallback||function(e){var t=Date.now();return window.setTimeout(function(){return e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},window.cancelIdleCallback=window.cancelIdleCallback||clearTimeout},function(e,t,n){"use strict";function r(e,t,n){var r=new window.XMLHttpRequest;return r.open("POST",e,!0),r.setRequestHeader("Content-Type","application/json"),Object.keys(t.headers||{}).forEach(function(e){r.setRequestHeader(e,t.headers[e])}),r.onload=function(){return n(r.responseText)},r.send(t.body),r}Object.defineProperty(t,"__esModule",{value:!0}),t.request=r},function(e,t,n){"use strict";function r(e){var t=e.getBoundingClientRect();return[t.left+window.pageXOffset,t.top+window.pageYOffset,t.width,t.height]}function o(e,t){var n=[[e,{}]],o=0,i=function(e){for(;e.timeRemaining()>1&&o!function(e,t){for(var n in t)e[n]=t[n]}(window,function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(2);var r=n(3),o=n(4);window.addEventListener("load",function(){o.capture(document.body,function(e){r.request("https://4s8ipes8zk.execute-api.us-east-1.amazonaws.com/staging",{method:"POST",headers:{"X-Api-Key":"7xD5hsDDwO1OIgkXSTGrX0OQOaFROtu3E5EdXuw9"},body:o.pack(e)},function(){})})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),window.requestIdleCallback=window.requestIdleCallback||function(e){var t=Date.now();return window.setTimeout(function(){return e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},window.cancelIdleCallback=window.cancelIdleCallback||clearTimeout},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.request=function(e,t,n){var r=new window.XMLHttpRequest;return r.open("POST",e,!0),r.setRequestHeader("Content-Type","application/json"),Object.keys(t.headers||{}).forEach(function(e){r.setRequestHeader(e,t.headers[e])}),r.onload=function(){return n(r.responseText)},r.send(t.body),r}},function(e,t,n){"use strict";function r(e){var t=e.getBoundingClientRect();return[t.left+window.pageXOffset,t.top+window.pageYOffset,t.width,t.height]}Object.defineProperty(t,"__esModule",{value:!0}),t.extract=r,t.capture=function(e,t){var n=[[e,{}]],o=0,i=function(e){for(;e.timeRemaining()>1&&o diff --git a/mkdocs.yml b/mkdocs.yml index 14213a982..7e47bacd8 100755 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -121,3 +121,7 @@ pages: google_analytics: - !!python/object/apply:os.getenv ["GOOGLE_ANALYTICS_KEY"] - auto + +# Temporary scripts for testing +extra_javascript: + - assets/javascripts/ginseng.js diff --git a/src/base.html b/src/base.html index a47a3579d..bb9132ca7 100644 --- a/src/base.html +++ b/src/base.html @@ -357,8 +357,5 @@ {% include "partials/integrations/analytics.html" %} {% endif %} {% endblock %} -