Skip to content

Commit cb62eb2

Browse files
authored
add climate strike banner (#672)
1 parent 3db2171 commit cb62eb2

File tree

2 files changed

+70
-2
lines changed

2 files changed

+70
-2
lines changed

assets/js/bundle.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,74 @@ layout: docs
55

66
---
77

8+
<script type="text/javascript">
9+
var DIGITAL_CLIMATE_STRIKE_OPTIONS = {
10+
/**
11+
* Specify view cookie expiration. After initial view, widget will not be
12+
* displayed to a user again until after this cookie expires. Defaults to
13+
* one day.
14+
*/
15+
cookieExpirationDays: 1, // @type {number}
16+
17+
/**
18+
* Set the language of the widget. We currently support:
19+
* 'en': English
20+
* 'de': German
21+
* 'es': Spanish
22+
* 'cs': Czech
23+
* 'fr': French
24+
* 'nl': Dutch
25+
* Defaults to null, which will obey the nagivator.language setting of the
26+
* viewer's browser.
27+
*/
28+
language: null, // @type {string}
29+
30+
/**
31+
* Allow you to override the iFrame hostname. Defaults to https://assets.digitalclimatestrike.net
32+
*/
33+
iframeHost: 'https://assets.digitalclimatestrike.net', // @type {string}
34+
35+
/**
36+
* Prevents the widget iframe from loading Google Analytics. Defaults to
37+
* false. (Google Analytics will also be disabled if doNotTrack is set on
38+
* the user's browser.)
39+
*/
40+
disableGoogleAnalytics: true, // @type {boolean}
41+
42+
/**
43+
* Always show the widget, even when someone has closed the widget and set the cookie on their device.
44+
* Useful for testing. Defaults to false.
45+
*/
46+
alwaysShowWidget: false, // @type {boolean}
47+
48+
/**
49+
* Automatically makes the widget full page. Defaults to false.
50+
*/
51+
forceFullPageWidget: false, // @type {boolean}
52+
53+
/**
54+
* For the full page widget, shows a close button "x" and hides the message about the site being
55+
* available tomorrow. Defaults to false.
56+
*/
57+
showCloseButtonOnFullPageWidget: true, // @type {boolean}
58+
59+
/**
60+
* The date when the sticky footer widget should start showing on your web site.
61+
* Note: the month is one integer less than the number of the month. E.g. 8 is September, not August.
62+
* Defaults to new Date(2019, 7, 1) (August 1st, 2019).
63+
*/
64+
footerDisplayStartDate: new Date(), //@ type {Date object}
65+
66+
/**
67+
* The date when the full page widget should showing on your web site for 24 hours.
68+
* Note: the month is one integer less than the number of the month. E.g. 8 is September, not August.
69+
* Defaults to new Date(2019, 8, 20) (September 20th, 2019)
70+
*/
71+
fullPageDisplayStartDate: new Date(2019, 8, 20), //@ type {Date object}
72+
};
73+
</script>
74+
<script src="https://assets.digitalclimatestrike.net/widget.js" async></script>
75+
876
<div class="container padding-top-40 padding-bottom-50" data-nav-waypoint>
977
<div class="copy-block">
1078
<h3 class="h3 h3--blue margin-bottom-10">The more you know.</h3>

0 commit comments

Comments
 (0)