Skip to content

Playing audio along with a random array of words

Hello everyone i want to know how can i play each audio files with certain words in this code. I want to make my quiz and my friend send me this. It kinda work but now i want that when clicking a word,…

How to set custom path for dotenv in nuxt

I have the following nuxt.config.js, where in the srcDir is pointing to “main-app” and I have placed the .env outside of it. So in the nuxt.config.js, how can set the custom path in line 1 …

How to calculate percentage in this JQuery

I have a problem in jQuery in html. Just need some changes in calculation, below are my codes All result will be calculated in one field as I did Existing: total = expenses – socso – kwsp The result i need is: total = expenses – socso – (kwsp / 100 * expenses) Thank you Answer As you c…

Angular nativeElement offsetTop alway 0

Im working in a menu where the current section is gonna be select it on scroll, but when i try to get the offsetTop of the elements i get alway 0 for some reason, on the parentElement a get value for offsetTop but in this case does not work for me using the offsetTop of the parentElement because i have

session value is not stored properly

I am using express-session and express-mysql-session in my app to generate sessions and store them in mysql database. Sessions are stored in a table called sessions. Sessions are stored in table but the value of it is not as same as the session value in client-side or console. Example: decoded value in client…