Skip to content

Commit

Permalink
Merge pull request #388 from cofacts/mgp-award
Browse files Browse the repository at this point in the history
feat(liff): embed mgp award
  • Loading branch information
MrOrz committed Mar 28, 2024
2 parents f476d7c + ae57f0a commit c680acb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/liff/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
import Comment from './pages/Comment.svelte';
import UserSetting from './pages/UserSetting.svelte';
import Feedback from './pages/Feedback.svelte';
import Mgp from './pages/Mgp.svelte';
const routes = {
article: Article,
articles: Articles,
setting: UserSetting,
comment: Comment,
feedback: Feedback,
mgp: Mgp,
};
// Send pageview with correct path on each page change.
Expand Down
18 changes: 18 additions & 0 deletions src/liff/pages/Mgp.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<script>
const userId = liff.getDecodedIDToken().sub;
let iframeUrl = `https://www.surveycake.com/s/eqNpB?ssn0=${userId}&ssn58=cofacts`
</script>

<style>
iframe {
width: 100vw;
height: 100vh;
border: 0;
}
</style>

<svelte:head>
<title>Cofacts x 第四屆 MyGoPen 謠言惑眾獎</title>
</svelte:head>

<iframe title="謠言惑眾獎" src={iframeUrl} />

0 comments on commit c680acb

Please sign in to comment.