tecitheme 1.1.5 → 1.2.0
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.
|
@@ -5,20 +5,36 @@
|
|
|
5
5
|
export let title = undefined;
|
|
6
6
|
export let data_key = undefined;
|
|
7
7
|
export let data_form = undefined;
|
|
8
|
+
export let cognito_form_name = undefined;
|
|
8
9
|
|
|
9
|
-
let
|
|
10
|
+
let backup = undefined;
|
|
10
11
|
|
|
11
12
|
onMount(async () => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
setTimeout(() => {
|
|
14
|
+
let form = document.getElementsByClassName("cog-cognito")[0];
|
|
15
|
+
if (form)
|
|
16
|
+
{
|
|
17
|
+
form.classList.toggle('cog-disable-movement');
|
|
18
|
+
backup.classList.toggle('hidden');
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (!form.checkVisibility())
|
|
22
|
+
{
|
|
23
|
+
backup.classList.remove("hidden")
|
|
24
|
+
}
|
|
25
|
+
}, 750)
|
|
16
26
|
});
|
|
17
27
|
</script>
|
|
18
28
|
|
|
19
29
|
{#if browser}
|
|
20
|
-
<div class="prose max-w-none w-full">
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
</div>
|
|
30
|
+
<div class="prose max-w-none w-full">
|
|
31
|
+
<h1>{title}</h1>
|
|
32
|
+
<script src="https://www.cognitoforms.com/f/seamless.js" data-key={data_key} data-form={data_form}></script>
|
|
33
|
+
</div>
|
|
24
34
|
{/if}
|
|
35
|
+
|
|
36
|
+
<div bind:this={backup} class="prose max-w-none w-full text-center">
|
|
37
|
+
<p>
|
|
38
|
+
If you cannot see the form above, click here: <a class="underline text-teci-blue-light visited:text-purple-700" href={`https://www.cognitoforms.com/ThunderheadEngineering/${cognito_form_name}`}>{title}</a>
|
|
39
|
+
</p>
|
|
40
|
+
</div>
|
|
@@ -5,6 +5,7 @@ export default class CognitoForm extends SvelteComponent<{
|
|
|
5
5
|
title?: any;
|
|
6
6
|
data_key?: any;
|
|
7
7
|
data_form?: any;
|
|
8
|
+
cognito_form_name?: any;
|
|
8
9
|
}, {
|
|
9
10
|
[evt: string]: CustomEvent<any>;
|
|
10
11
|
}, {}> {
|
|
@@ -18,6 +19,7 @@ declare const __propDef: {
|
|
|
18
19
|
title?: any;
|
|
19
20
|
data_key?: any;
|
|
20
21
|
data_form?: any;
|
|
22
|
+
cognito_form_name?: any;
|
|
21
23
|
};
|
|
22
24
|
events: {
|
|
23
25
|
[evt: string]: CustomEvent<any>;
|
|
@@ -27,20 +27,20 @@
|
|
|
27
27
|
];
|
|
28
28
|
|
|
29
29
|
let resellerLinks = [
|
|
30
|
-
'
|
|
31
|
-
'
|
|
32
|
-
'
|
|
33
|
-
'
|
|
34
|
-
'
|
|
35
|
-
'
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
43
|
-
'
|
|
30
|
+
'aeolus-consulting',
|
|
31
|
+
'beijing-huanzhongruichi-technology-co.-ltd.-(reachsoft)',
|
|
32
|
+
'recognity-s.r.o.',
|
|
33
|
+
'1point2',
|
|
34
|
+
'simtego-gmbh',
|
|
35
|
+
'elitesoft-srl',
|
|
36
|
+
'shiretechnik-solutions',
|
|
37
|
+
'cantene-s.r.l',
|
|
38
|
+
'cae-solutions-corporation',
|
|
39
|
+
'basissoft-inc.',
|
|
40
|
+
'stigo-sp.-z-o.o.',
|
|
41
|
+
'sigura-total-fire-and-building-engineering-srl.',
|
|
42
|
+
'building-system-and-diagnostics-pte.-ltd.-(bsd)',
|
|
43
|
+
'incendio3d',
|
|
44
44
|
];
|
|
45
45
|
|
|
46
46
|
function isReseller() {
|