File size: 981 Bytes
43a06dc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<script lang="ts">
    import SmallDialog from "$components/dialog/SmallDialog.svelte";
</script>

<noscript style="display: contents">
    <div id="nojs-ack">
        <SmallDialog
            id="nojs-dialog"
            meowbalt="error"
            bodyText={
                "cobalt uses javascript for api requests and ui interactions, but it's not available in your browser. "
                + "you can still navigate around cobalt, but most functionality won't work."
            }
            buttons={[
                {
                    text: "got it",
                    main: true,
                    action: () => {},
                    link: "#nojs-ack"
                },
            ]}
        />
        <div id="nojs-dialog-backdrop"></div>
    </div>
</noscript>

<style>
    :global(#nojs-ack) {
        display: contents;
    }

    :global(#nojs-ack:target) {
        display: none;
    }

    #nojs-dialog-backdrop {
        opacity: 1;
    }
</style>