This is the template project that's checked out and configured when you run the bando-up command from ljsthw-bandolier. This is where the code really lives.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
bandolier-template/client/components/TOS.svelte

24 lines
746 B

<script>
import { onMount } from 'svelte';
import Spinner from "$/client/components/Spinner.svelte";
let tos_list = [];
onMount(async () => {
let res = await fetch(`/tos.json`, {credentials: 'same-origin'});
tos_list = await res.json();
});
</script>
{#each tos_list as section (section.metadata.id)}
<callout>
<b>TLDR:</b> "{@html section.metadata.summary}"
</callout>
<div>
{@html section.content}
</div>
{:else}
<Spinner />
{/each}
<p style="font-size: 0.8em">These Terms of Service modified from <a href="https://tldrlegal.com/license/tldrlegal-terms-of-service#fulltext">TLDRLegal's TOS</a>, with permission and are licensed <a href="http://creativecommons.org/licenses/by/3.0/legalcode">CC-BY</a>.</p>