Trying to control a video frame-by-frame in HTML/JS but video current time is imprecise
Stack Overflow » HTML
by brufru
10m ago
I want to control a video frame-by-frame in JS. As you can control only the time in seconds of a video, it's easy to say go to frame 18 if you know the video FPS (e.g., 18/60 = 0.3s, so video.currentTime = 0.3 does the trick). My problem is that when playing the video with the web browser when I pause the video (regular play/pause with the video controls) and try to do +1 or -1 frame (i.e., video.currentTime -= 1/60), there is actually a time offset: the video jumps back 2 or more frames instead of one. Here is a minimal example of my problem: https://codepen.io/brufru/pen/XWQWpZa. The video I ..read more
Visit website
How can I download YouTube captions using JavaScript?
Stack Overflow » HTML
by Rebaz Xoshnaw
10m ago
I'm working on a project where I need to download captions (subtitles) from YouTube videos using JavaScript. I've searched for solutions online but haven't found a clear way to accomplish this. Can someone provide guidance on how I can achieve this using JavaScript? Specifically, I need to: Retrieve the available captions (subtitles) for a given YouTube video. Allow users to select a specific caption language. Download the selected caption in the SubRip (SRT) format. Implement this functionality within a web application using JavaScript. Any help or examples demonstrating how to achieve this w ..read more
Visit website
The webkit appearence do not seem to work properly
Stack Overflow » HTML
by AHMED ELKADIOUI
10m ago
a problem of the hamburger menu button it suppose to be shown like this hello plz help me fix this issue on my css this is my code: *{ padding: 0%; margin: 0; box-sizing: border-box; font-family: sans-serif; } .container{ height: 100%; width: 250px; position: absolute; background: #161616; transition: 0.5s ease; transform: translateX(-250px); } .container .head{ color:#fbfdce ; font-size: 30px; font-weight: bold; padding:30px; text-transform: uppercase; text-align: center; letter-spacing: 3px; background: linear-gradien ..read more
Visit website
How do I put the data received from an API response into elements of an HTML file when I'm working with express
Stack Overflow » HTML
by Jayant Verma
10m ago
This is the server file, app.js - const express = require('express'); const bodyParser = require('body-parser'); const omdbapi = new(require('omdbapi'))('api_key'); const app = express(); app.use(bodyParser.urlencoded({ extended: true })); app.use(express.static("public")); app.get('/', function(req, res) { res.sendFile(__dirname + '/app.html'); }); app.get('/query', function(req, res) { let movieId = req.query.id; let title = req.query.title; omdbapi.get({ id: movieId }).then(response => { renderDetails(response); res.send(response); }).catch(console.error ..read more
Visit website
Is it possible to put the navigation arrows outside the swiper container?
Stack Overflow » HTML
by Соня Сапиро
10m ago
Is it possible to place the swiper navigation arrows like in the picture? If yes, how? Just like this: https://imgur.com/a/9gEPbJE I tried making stylized blocks and just classifying them as the original swiper arrows, but that didn't seem to work ..read more
Visit website
Rating stars using CSS (each radio and label inside a div)
Stack Overflow » HTML
by Hari prasath
10m ago
I need to create a rating stars using css. I have refered from below link https://codepen.io/andreacrawford/pen/NvqJXW But I have different DOM structure. input { display: none; } .radio-div label { visibility: hidden; } .wrapper { display: flex; align-items: center; } .radio-div>label:before { content: '★ '; visibility: visible; } .radio-div>input:checked~label { color: green; } <div > <div > <input type="radio" name="rating" id="star_1"> <label for="star_1">1</label> </div> <div > <input type="radio" n ..read more
Visit website
Problems with Python Web Scraping: Incomplete HTML Code Extraction
Stack Overflow » HTML
by user23501892
10m ago
I am a Python newbie, currently facing issues with my scraping code. The script successfully accesses the website and avoids cookies. However, it is unfortunately not copying the entire HTML code. This is the full part of the HTML code on the website: <div ><h4 >Arbeitsatmosphäre</h4><div ><span data- fillcolor="butterscotch" data-score="5"></span></div><p >Dynamisch</p></div> And this is the code which is extracted: <div ><h4 >Work Atmosphere</h4><p >Dynamic</p></div> This is the code i alrea ..read more
Visit website
How do I set a sequence of questions based on the answers selected using jQuery?
Stack Overflow » HTML
by Jagruti Solanki
10m ago
I have a question-answer bank. First a question is selected from a dropdown then the answers appear. Now, sub-dropdowns appear next to each answers to select the next question. So, a sequence will be generated as and when the question or answer is selected. Ex. Q1-A1-Q3-A4, Q1-A3-Q2-A1. This should go on until all the questions are used per sequence. I have tried my best to populate the questions and answers based on the selections. However, I am not able to set the conditions to reach to the end of the sequence. The conditions required are the following: no question should be repeated within ..read more
Visit website
I get an error in upload a file page "form is null"
Stack Overflow » HTML
by boakoms
1h ago
I got a page that upload a file when a file selected but i get error "Uncaught TypeError: form is null" in console when i selected a file. I use below code to upload. <form id="uploadForm" action="https://gpstest.surveybook.net/upload/upload.cgi" method="post" enctype="multipart/form-data"> <label for="file_upload">Select a file:</label> <input type="file" name="file_upload" id="file_upload" onchange="uploadFile()"><br> </form> <script> function uploadFile() { //alert('You are in uploadFile!'); // Get the form element ..read more
Visit website
How to set sequence of questions based on the answers selected using jQuery
Stack Overflow » HTML
by Jagruti Solanki
1h ago
I have a question-answer bank. First a question is selected from a dropdown then the answers appear. Now, sub-dropdowns appear next to each answers to select the next question. So, a sequence will be generated as and when the question or answer is selected. Ex. Q1-A1-Q3-A4, Q1-A3-Q2-A1. This should go on until all the questions are used per sequence. I have tried my best to populate the questions and answers based on the selections. However, I am not able to set the conditions to reach to the end of the sequence. The conditions required are, no question should be repeated within a sequence. Bu ..read more
Visit website

Follow Stack Overflow » HTML on FeedSpot

Continue with Google
Continue with Apple
OR