feat: negative marking in quiz

This commit is contained in:
Jannat Patel
2025-06-27 19:58:35 +05:30
parent 02b8e02131
commit cf452c2300
9 changed files with 421 additions and 301 deletions

View File

@@ -104,24 +104,6 @@ export function getImgDimensions(imgSrc) {
})
}
export function updateDocumentTitle(meta) {
watch(
() => meta,
(meta) => {
if (!meta.value.title) return
if (meta.value.title && meta.value.subtitle) {
document.title = `${meta.value.title} | ${meta.value.subtitle}`
return
}
if (meta.value.title) {
document.title = `${meta.value.title}`
return
}
},
{ immediate: true, deep: true }
)
}
export function htmlToText(html) {
const div = document.createElement('div')
div.innerHTML = html