eclipsefdn-hugo-solstice-theme 0.1.17 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +1,39 @@
1
1
  {{ if and (isset .Params "portalId") (isset .Params "formId")}}
2
- <!--[if lte IE 8]>
3
- <script
4
- charset="utf-8"
5
- type="text/javascript"
6
- src="//js.hsforms.net/forms/v2-legacy.js"
7
- ></script>
8
- <![endif]-->
2
+ <div id="hubspot-form-fallback" class="alert alert-info">
3
+ {{ if isset .Params "fallbackMessage" }}
4
+ {{ .Params.fallbackMessage | markdownify }}
5
+ {{ else }}
6
+ <p>
7
+ If you are unable to access the contact form, please reach out to us at
8
+ <a href="mailto:membership.coordination@eclipse-foundation.org"
9
+ >membership.coordination@eclipse-foundation.org</a
10
+ >
11
+ for assistance with your membership inquiry.
12
+ </p>
13
+ {{ end }}
14
+ </div>
9
15
 
16
+ <!--[if lte IE 8]>
10
17
  <script
11
18
  charset="utf-8"
12
19
  type="text/javascript"
13
- src="//js.hsforms.net/forms/v2.js"
20
+ src="//js.hsforms.net/forms/v2-legacy.js"
14
21
  ></script>
15
- <script>
22
+ <![endif]-->
23
+
24
+ <script
25
+ charset="utf-8"
26
+ type="text/javascript"
27
+ src="//js.hsforms.net/forms/v2.js"
28
+ ></script>
29
+ <script>
16
30
  hbspt.forms.create({
17
- region: 'na1',
31
+ region: "na1",
18
32
  portalId: '{{ index .Params "portalId"}}',
19
33
  formId: '{{ index .Params "formId"}}',
34
+ onFormReady: function () {
35
+ document.getElementById("hubspot-form-fallback").classList.add("hidden");
36
+ },
20
37
  });
21
- </script>
22
- {{ end }}
38
+ </script>
39
+ {{ end }}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "webpack.min.js",
5
5
  "author": "Christopher Guindon",
6
6
  "license": "EPL-2.0",
7
- "version": "0.1.17",
7
+ "version": "0.1.18",
8
8
  "bugs": {
9
9
  "url": "https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme/-/issues"
10
10
  },
@@ -23,7 +23,7 @@
23
23
  "readmeFilename": "README.md",
24
24
  "dependencies": {
25
25
  "axios": "^1.7.7",
26
- "eclipsefdn-solstice-assets": "0.1.19",
26
+ "eclipsefdn-solstice-assets": "0.1.20",
27
27
  "json2yaml": "^1.1.0",
28
28
  "toml": "^3.0.0"
29
29
  },