Skip to content

Tag: html

How to replace jsp tag with HTMLRewriter

I am kinda new to Cloudflare’s HTMLRewriter function. I am trying to replace a jsp tag with some html using HTMLRewriter. More precisely, <%= “${header}” %>. Is there a way I could possibly do this? I managed to replace a header tag <header>, but not jsp or some other string. Ans…

HTML/Javascript slow/crashing on quiz app

I have a problem with my otherwise fully functioning quiz game. There seems to be crashing/slow loading issues after around 5 or 6 (out of 10) questions. Its very strange because if I answer everything within a second (unrealistic but to error check), there is no problem. But as soon as I take a “normal…

How to use Link and Route inside of condition term

So I am trying to move through pages in react, my goal is when I did validate the things I need (name, and number) the page will switch and I will be in another route. (without refresh the page). I tried to do it with window.location but its refreshing the page I cant use <Link> because I want to switch

js DOM divs manipulation problems

I am currently learning DOM, and found the following task quite hard to complete in an proper manner. The js code is supposed to: append new divs, as a continuation of the existing ones, remove the existing divs, change colour of one div, switch all div’s text content. My issues: Task 1. works but in a …