Commit 4665003 Sebastian Flick
committed
1 parent 223c359 commit 4665003 Copy full SHA for 4665003
File tree 1 file changed +14
-11
lines changed
src/routes/textzeugen/[[sigla]]/[[thirties]]/[[verse]]
1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change 91
91
< p>
92
92
Vers: {localVerses[i]}
93
93
< / p>
94
- < a class = " btn btn-icon absolute top-0 right-0" href= {generateCloseLink (content .sigla )}
95
- >< i class = " fa-solid fa-x" >< / i>< / a
96
- >
94
+ < div class = " btngroup absolute top-0 right-0" >
95
+ {#if ! ($page .url .searchParams .get (' iiif' )? .split (' -' )[i] === ' true' )}
96
+ < a class = " btn btn-icon" href= {generateIiifLink ($page .url , i, true )}>
97
+ < i class = " fa-solid fa-eye-slash" >< / i>
98
+ < / a>
99
+ {: else }
100
+ < a class = " btn btn-icon" href= {generateIiifLink ($page .url , i, false )}>
101
+ < i class = " fa-solid fa-eye" >< / i>
102
+ < / a>
103
+ {/ if }
104
+ < a class = " btn btn-icon" href= {generateCloseLink (content .sigla )}
105
+ >< i class = " fa-solid fa-x" >< / i>< / a
106
+ >
107
+ < / div>
97
108
< / div>
98
109
{#await content .meta then meta}
99
110
{#if typeof meta === ' object' && typeof meta .tpData === ' object' }
126
137
< p> Loading... < / p>
127
138
{: then iiif}
128
139
{#if typeof iiif === ' object' }
129
- < a
130
- class = " btn btn-icon absolute top-0 right-0 z-10"
131
- href= {generateIiifLink ($page .url , i, true )}>< i class = " fa-solid fa-x" >< / i>< / a
132
- >
133
140
< IIIFViewer {iiif} / >
134
141
{/ if }
135
142
{: catch error}
138
145
{/ if }
139
146
{/ await }
140
147
< / section>
141
- {: else }
142
- < a class = " btn btn-icon" href= {generateIiifLink ($page .url , i, false )}
143
- >< i class = " fa-solid fa-image" >< / i>< / a
144
- >
145
148
{/ if }
146
149
< / article>
147
150
{/ each}
You can’t perform that action at this time.
0 commit comments