File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ <script lang =" ts" >
2+ import GeneralObserver from ' ./general-observer.svelte'
3+
4+ export let width: string = ' 576'
5+ export let height: string = ' 420'
6+ export let username: string = ' '
7+ export let title: string = ' '
8+ export let byline: ' hidden' | ' visible' | ' default' = ' hidden'
9+ export let share: ' hidden' | ' visible' | ' default' = ' hidden'
10+ export let style:
11+ | ' light'
12+ | ' dark'
13+ | ' hidden'
14+ | ' transparent'
15+ | ' default' = ' dark'
16+
17+ let baseUrl = ` https://slides.com/${username }/${title }/embed? `
18+ const config = {
19+ style ,
20+ byline ,
21+ share ,
22+ }
23+
24+ const queryString = new URLSearchParams (config )
25+ const src = ` ${baseUrl }&${queryString .toString ()} `
26+ </script >
27+
28+ <GeneralObserver {height } {width }>
29+ <iframe
30+ {src }
31+ {width }
32+ {height }
33+ {title }
34+ scrolling =" no"
35+ frameborder =" 0"
36+ allowfullscreen
37+ style =" width: 100%;"
38+ />
39+ </GeneralObserver >
You can’t perform that action at this time.
0 commit comments