summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBruno Oliveira <nicoddemus@gmail.com>2019-09-19 10:49:10 -0300
committerGitHub <noreply@github.com>2019-09-19 10:49:10 -0300
commitc8cf748c49e9e02e5f714d5ab60a5c4f1bfc75ba (patch)
treedc3e8b8ff4b226ddb8ac576239a950a8bb9aa683 /doc
parent702acdba4658ad0a7e732059d18b22b185c79e5c (diff)
parent249b53e623377ca1cdce920f4af56c9f4ffea1ac (diff)
downloadpytest-c8cf748c49e9e02e5f714d5ab60a5c4f1bfc75ba.tar.gz
Show banner/full page for the Digital Climate Strike (#5861)
Show banner/full page for the Digital Climate Strike
Diffstat (limited to 'doc')
-rw-r--r--doc/en/_templates/layout.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/doc/en/_templates/layout.html b/doc/en/_templates/layout.html
index 2fc8e2a7f..f76643272 100644
--- a/doc/en/_templates/layout.html
+++ b/doc/en/_templates/layout.html
@@ -17,4 +17,46 @@
})();
</script>
+<script type="text/javascript">
+ var DIGITAL_CLIMATE_STRIKE_OPTIONS = {
+
+ /**
+ * Allow you to override the iFrame hostname. Defaults to https://assets.digitalclimatestrike.net
+ */
+ iframeHost: 'https://assets.digitalclimatestrike.net', // @type {string}
+
+ /**
+ * Prevents the widget iframe from loading Google Analytics. Defaults to
+ * false. (Google Analytics will also be disabled if doNotTrack is set on
+ * the user's browser.)
+ */
+ disableGoogleAnalytics: false, // @type {boolean}
+
+ /**
+ * Always show the widget, even when someone has closed the widget and set the cookie on their device.
+ * Useful for testing. Defaults to false.
+ */
+ alwaysShowWidget: false, // @type {boolean}
+
+ /**
+ * Automatically makes the widget full page. Defaults to false.
+ */
+ forceFullPageWidget: false, // @type {boolean}
+
+ /**
+ * For the full page widget, shows a close button "x" and hides the message about the site being
+ * available tomorrow. Defaults to false.
+ */
+ showCloseButtonOnFullPageWidget: true, // @type {boolean}
+
+
+ /**
+ * The date when the full page widget should showing on your web site for 24 hours.
+ * Note: the month is one integer less than the number of the month. E.g. 8 is September, not August.
+ * Defaults to new Date(2019, 8, 20) (September 20th, 2019)
+ */
+ fullPageDisplayStartDate: new Date(2019, 8, 20), //@ type {Date object}
+ };
+</script>
+<script src="https://assets.digitalclimatestrike.net/widget.js" async></script>
{% endblock %}