« first day (3655 days earlier)      last day (1297 days later) » 

2:07 AM
how can i pause this video event listener loop at the second video and keep it still
var myvid = document.getElementById('myvideo');

myvid.addEventListener('ended', function(e) {
// get the active source and the next video source.
// I set it so if there's no next, it loops to the first one
var activesource = document.querySelector("#myvideo source.active");
var nextsource = document.querySelector("#myvideo source.active + source") ||
document.querySelector("#myvideo source:first-child");

// deactivate current source, and activate next one
activesource.className = "";
nextsource.className = "active";
:(
 
2:28 AM
never mind :D
 
 
2 hours later…
4:25 AM
https://stackoverflow.com/questions/64137093/syntaxerror-missing-catch-or-finally-after-try-in-while-compiling-ejs
Does anybody have any hint about this issue?
 
 
5 hours later…
Sam
9:42 AM
Using Google's Firestore, is it possible to add filters on string fields with "starts with". I can see in the logical operators there exists a "contains" operator, but wondering how to achieve the former.
 
 
2 hours later…
11:32 AM
0
Q: How to fix function problems in npm package?

Pooya PanahandehI built a simple npm package for work with URL. it's working perfectly when you use it locally but when I published the package, I got many different errors that I am going to write it down and it would be perfect if you can help to solve those problems. package is available [here][1]. code: var ...

 
 
3 hours later…
2:07 PM
Hello guys, I am a newby and currently working on a project that needs to be handed in tomorrow. I'm currently trying to change input values into percentages to then be used in JavaScript for a plotly graph.
 
@AlexanderForrest Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
Is anyone available to help me out?
 
 
1 hour later…
3:09 PM
@AlexanderForrest what's the input?
 
3:45 PM
Hi @JBis
I actually got the percentage to work, not I'm trying to get it into a plotly array
This is the array:
 
@AlexanderForrest Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
1 message moved to Trash can
 
var data = [{
  values: [50, 30, 20],
  labels: ['Bank Accounts', 'Savings Accounts', 'Cash-on-Hand'],
  type: 'pie'
}];
I want to replace [50, 30, 20] with:

    data[0].values[0] = netSalaryPER;
    data[0].values[1] = bonusSalaryPER
    data[0].values[2] = gigSalaryPER
Maybe you have some advice?
 
 
3 hours later…
6:39 PM
Wow javascripts dead today
Anyways, Im trying to communicate between an Electron frontend, and a Node.JS backend...

I want to call a function from a button in the Electron webpage, and execute something in the backend.

Is this possible? im already able to run both the bot and the electron webpage in the same Node.JS file and instance, but I cant communicate with the webpage
Im trying to basically make an HTML-based control panel for my bot
any ideas?
 
 
1 hour later…
7:55 PM
Hey, I need help. I have asked a question here on stackoverflow but didn't get any response so far. I need to fix this issue as soon as possible but I can't find any solution for it. I'm new to machine learning and tensorflow and ml5 framework. Here's the question: stackoverflow.com/questions/64412066/…
 
8:29 PM
@JeanExtreme002 Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
0
Q: Electron generating the error “gl_utils (316)… GL_INVALID_OPERATION”

JeanExtreme002Sometimes when I run my application in Electron, the following message is printed on the console (from the application and not the browser): [10596::0630/003827.588:ERROR:gl_utils.cc(316)] [.DisplayCompositor] GL_INVALID_O PERATION: invalid maibox name. [10596::0630/003827.588:ERROR:gl_utils.cc(3...

 

« first day (3655 days earlier)      last day (1297 days later) »