add digkult

This commit is contained in:
skidoodle 2023-09-18 20:49:27 +02:00
parent 38cb124b3d
commit 6ddf455499
2 changed files with 7 additions and 2 deletions

View file

@ -60,6 +60,7 @@ export default function handler(req: NextApiRequest, res: NextApiResponse) {
switch (vizsgatargy) {
case 'inf':
case 'infoism':
case 'digkult':
switch (ZipUrl) {
case ZipUrl:
flZipUrl = `${baseUrl}${ev}${idoszak}_${szint}/${prefix}${forras}_${shortev}${honap}_${feladat}.zip`

View file

@ -128,7 +128,9 @@ export default function Home() {
</button>
</div>
<div className="space-x-3">
{selectedSubject === 'inf' || selectedSubject === 'infoism' ? (
{selectedSubject === 'inf' ||
selectedSubject === 'infoism' ||
selectedSubject === 'digkult' ? (
<button
className="w-24 mt-3 text-sm bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-2 rounded"
onClick={flZipLink ? () => window.open(flZipLink) : () => {}}
@ -136,7 +138,9 @@ export default function Home() {
Forrás
</button>
) : null}
{selectedSubject === 'inf' || selectedSubject === 'infoism' ? (
{selectedSubject === 'inf' ||
selectedSubject === 'infoism' ||
selectedSubject === 'digkult' ? (
<button
className="w-24 mt-3 text-sm bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-2 rounded"
onClick={utZipLink ? () => window.open(utZipLink) : () => {}}