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,…
Align item to full parent’s width minus margin
How can I stretch my subview across 100% width of its parent, minus 20px margin on each side? In other words, I need it to fill the width of the parent, with 20px open on each side. I know in React-Native I can use width: ‘80%’ to make my subview’s width relative to that of its parent, but t…
How to send a list from JavaScript to Django views.py?
How can I send the variable list to Django in the code below? Answer I use Django REST Framework here. This solution can submit more complex data to the server. If you use a modern library such as axios, you don’t even need to use JSON.stringify()
How can I delete an item from my todolist
I am trying to learn react js , but I don’t know how to delete an item from my list, could you help me ? Actually, I am not professional , but I am really interested in learning, there is my codes which add some new item to my list properly, but I don’t know how to delete them when
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 append different id into div and add text into input value when trigger click event
What I want to achieve: when clicking the add new step button the id “step1” will be added into HTML div and the value will also display step1 and if I click a second time it will increment so the id “step2” will be added into the second appended div and the value also will display ste…
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
Slick slider group navigation items with slides using data attributes
I am using Slick Slider JS to build out a history timeline. Each date range navigation item is connected to multiple slides using a data-group attribute. I am needing to adapt my code to transition the timeline__nav ul left or right using the previous and next buttons when the first slide with a matching data…
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…