Gapless playback of multiple audio files in the browser
AutoIt Forum » JavaScript
by
6M ago
Is there a way to do that? I tried several different approaches and none of them worked, the two most promising approaches I tried were: My own DIY double-buffer solution which listens for the `timeupdate` event on two audio elements and tries to start playback of the other one just a little while before the other ends, but the resolution is nowhere near high-enough for this to work. Gapless-5 - Even this fails and introduces small pauses in-between the files, even though it's supposed to work perfectly. I was actually streaming audio which arrives in little chunks of MP3s encoded as base64 ..read more
Visit website
Having Difficulty Implementing KMP Algorithm [JS Code]
AutoIt Forum » JavaScript
by
11M ago
I'm having difficulty implementing the KMP Algorithm using JavaScript. I've followed the algorithm and tried to trace through step by step, but I'm still stuck on what to do next. I will add the code snippets below so that someone can help me figure out what the issue is. Question reference from here. Any help would be greatly appreciated! Code (JS):  let s = ‘abababca’; let p = ‘ababca’; let lps = [0, 0, 0, 0, 1, 2, 3]; let i = 0; let j = 0; while (i < s.length) { if (s[i] === p[j]) { i++; j++; } else if (j === 0) { i++; } else { j = lps[j-1 ..read more
Visit website
Beginer to JavaScript
AutoIt Forum » JavaScript
by
1y ago
Any suggestions on where to start learning JavaScript? Seems to be a overwhelming amout of options.    ..read more
Visit website
Javascript assistance
AutoIt Forum » JavaScript
by
1y ago
This is supposed to insert the "item[value]" into the third input in a form but it's not. I'm clearly using "find("input", 3)" incorrectly, I was trying and hoping it would work like this, but it actually only finds the first element. And when I use it properly and remove the 3, it sets the value in all the inputs. How can I rewrite this to find "X" index position element in the "$(this).closest(".item-row")" and set what I need to? $(this).closest(".item-row").find("input", 3).attr("value", item["value"]); Thanks ..read more
Visit website
What is the feasibility of this UI feature (correcting incorrect graph lines)?
AutoIt Forum » JavaScript
by
2y ago
 I will be digitizing(scanning) [ICU Graphs][1] i.e over which patient vitals will be plotted(eg. heart rate wrt time) using a machine learning model. However the lines may need to be 'nudged' up and down sometimes by a person (a human-in-the-loop) to correct them.  The approach will be similar to how we move the lines to [crop an image in camscanner][2] i.e user only move the vertices. How can we go about implementing the UI(say in a JS framework like Angular/React) to allow the user to move these lines up and down and correct them?   [1]: https://i.stack.imgur.com/iEHqL.png ..read more
Visit website
User Script - Make Video Playlist
AutoIt Forum » JavaScript
by
2y ago
Hello. I need to write a User Script to add videos to created playlists. On the video watch page on the right, there are recommended videos. When cursor on thumbnail upper-right on icon appears plus sign, when cursor on that plus sign appears list of user's playlists and by clicking on playlist name video adding to playlist and appears plus sign located right of playlist name. If video already in some playlist, when cursor on thumbnail plus sign, plus sign already located right of playlist name. I think it must be like JS function copy thumbnail, link and video name, after adding that on playl ..read more
Visit website
Can javascript change the variable value via the byref like au3?
AutoIt Forum » JavaScript
by
2y ago
Reference website: https://www.quanzhanketang.com/ajax/tryajax_header.html?filename=tryajax_header Reference Code: <!DOCTYPE html> <html> <body> <p>The getAllResponseHeaders() function returns the header information of a resource, like length, server-type, content-type, last-modified, etc.</p> <button onclick="loadDoc()">Get header information</button> <p id="demo"></p> <script> function loadDoc() { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (xhttp.readyState == 4 && xhttp.status ..read more
Visit website
Javascript Object Constructor
AutoIt Forum » JavaScript
by
2y ago
Hi there,  I have recently started learning Javascript. Now I started working with Objects. I got some problems when I want to define my own Object with it's own methods. The code looks like this: function Model(){ var model = document.createElement("div"); return model; this.append = function(parent) { document.getElementById(parent).appendChild(model); } } var farm = new Model(); farm.append("map"); The result should have looked like this:  <div id="map"> <div></div> </div> But instead the "map" container is empty. T ..read more
Visit website
HTML FORM IF..then
AutoIt Forum » JavaScript
by
2y ago
Hello there ? I'm stuck google is not helping me,  I need a little help form you guys.. This is the scenario if any of Hongkong1, Hongkong2 and Hongkong3 value is greater than "0" then Noodle value is equal to "1", ill be using this on our Daily Inventory ? <!DOCTYPE html> <html> <body> <h2>HTML Forms</h2> <form action="/action_page.php"> NOODLES: <input type="text" name="Category" value="" size="2"> <br> <br> Hongkong1: <input type="text" name="Hongkong1" value="" size="2"> <br> Hongkong2: <input type ..read more
Visit website
Mobile Pinch zoom problem
AutoIt Forum » JavaScript
by
2y ago
Hi, I'm working on an interface and I have a problem with zoom management. In desktop mode it works and in android cell mode it seems to work fine too. However, on a Windows tablet, it seems to have a problem ... Basically what I'm trying to do is display a modal in bootstrap 4. But when on the tablet I zoom, my modal s really big and out of my screen. On the android mobile, I remove the zoom before displaying the modal but on the Windows tablet I am unable to reproduce the same behavior.   My toggle function to reset zoom before display modal  ( Yeah it maybe sketches but I'm not fi ..read more
Visit website

Follow AutoIt Forum » JavaScript on FeedSpot

Continue with Google
Continue with Apple
OR