« first day (3986 days earlier)      last day (961 days later) » 

10:55 AM
 
11:55 AM
@BrianVar comlink
 
12:19 PM
Correct me if I am wrong, but do external scripts and stylesheets only work in the angular.json scripts and styles arrays and not when referenced in the index.html
 
I'll check it out
 
 
1 hour later…
1:31 PM
hmm ... if you add a space in a CSS selector, does it not mean that the specified elements after the space is ... child of the parent?
<div class="foo">
<div>
  <div/>
  <div>
    <p class="getThis"></p>
    <p></p>
  </div>
</div>
<div>
  <div/>
  <div>
    <p class="getThis"></p>
    <p></p>
  </div>
</div>
<div class="nope">
  <div/>
  <div>
    <p class="getThis"></p>    DO NOT WANT DIZ
    <p></p>
  </div>
</div>
</div>
document.querySelectorAll('.foo div:not(.nope) .getThis') does select that I don't want to. I am confused
using > works but is weird
🤔
 
1:47 PM
@KarelG That last <p class="getThis"></p> is inside some <div> which doesn’t have the nope class. This isn’t related to child combinators or descendant combinators. It’s about how :not works. ".foo .getThis:not(.nope .getThis)" works.
 
2:05 PM
Hi everyone! I am on the process of creating an text portrait converter with JavaScript. So far, I was able to achieve this by hardcoded text and image through this method: geeksforgeeks.org/text-portrait-using-css I would like to add dynamic functionality by manipulating the user input image and text and combining them into a text portrait. Then the image should be able to downloaded by the user. Can anyone suggest me a canvas manipulating library for this task?
I came across names of several ones online. Found Fabric JS in several places. I would like to know whether it would be able to achieve this task. Your suggestions and directions would be extremely helpful. Thank you!
 
2:58 PM
If a bounty isn't awarded manually, after the time period passes SO will automatically award it correct?
 
Hi everyone. Sorry for coming there for that... I wanted to answer to a question, but it has been closed and wrongly marked as a duplicate. (stackoverflow.com/questions/69177439/…). It's not. The OP want to take a fullscreen screenshot (not only inner browser) screenshot and I'm able to give a working example. Is there someone who can reopen it for me ? Thanks.
 
@Ariart 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.
 
What does your answer entail?
 
We can take a fullscreen screenshot using webrtc features.
Since it offers an API for screensharing, we can get the screen video in an HTTPS context and draw it in a canvas, then closing the videotrack. And we get a screenshot of the fullscreen. I have a working demo.
 
3:19 PM
Since the question seems to be marked as duplicate based on the false assumption that i'ts impossible, I think that it would profit to everyone to provide a correct answer.
 
It was the question author who accepted the duplicate closure. It wasn't (fully) closed by other users.
If you have an answer that's not present in the duplicate target, feel free to post it there.
 
996
Q: Using HTML5/Canvas/JavaScript to take in-browser screenshots

joelvhGoogle's "Report a Bug" or "Feedback Tool" lets you select an area of your browser window to create a screenshot that is submitted with your feedback about a bug. Screenshot by Jason Small, posted in a duplicate question. How are they doing this? Google's JavaScript feedback API is loaded from...

has several answers demonstrating use of the getDisplayMedia api
 
VLAZ : In the duplicate target, it would feel weird to add an answer that is not related to the question, no ?
 
The dupe target is (was) "How to take screen shot of current webpage using Javascript/JQuery?" so, I don't see how posting about taking a screenshot using JavaScript is not relevant to the question.
I've added "Using HTML5/Canvas/JavaScript to take in-browser screenshots" to the dupe targets, as it also seems relevant.
Duplicates are there, so we don't have answers scattered all around, you should be able to visit one Q&A and see all relevant approaches.
It...doesn't exactly work that way, due to having too many duplicates that we cannot really administer but it's just proof for why we don't need more duplicates and more knowledge scattering.
 
Thanks. at least the OP will have a reference to achieve what he wanted to do.
Yes, I understand the purpose, I just felt bad for the OP that get a duplicate that doesn't fit with what he wanted to do, and another answer that stated that it's impossible.
 
3:30 PM
(that's a good reason to cast a downvote, btw)
 
Since I have a working example that is really simple (compared to the one linked in Using HTML5/Canvas/JavaScript to take in-browser screenshots), should I post an answer anyway in the first link VLAZ suggested ?
 
First or second one, whichever you feel more appropriate. Don't double post, though.
I'd suggest the second one, as it seems like it has better stuff in it, overall.
 
Ok, thanks.
Or not. I read the other answer, there is enough info to achieve what he want to do. I have nothing to add that is more valuable than what have already been posted. Thanks for your answers !
 
 
2 hours later…
user16776772
5:42 PM
Kevin, I have a question.
 
user16776772
It's about a jslint error and how to fix it.
 
Passed 800 RP :D
 
I didn't know there were still people using JSLint.
 
user16776772
JSLint Error: Expected one space between ',' and 'playerOptions'

I don't know how this is fixed.
i.imgur.com/xfaCvap.png

I can't do this because that is longer than 80 characters long.
combined[prop] = Object.assign({}, playerOptions1[prop], playerOptions2[prop]);

jslint.com

jsfiddle.net/35h60pgq

function combinePlayerOptions(playerOptions1 = {}, playerOptions2 = {}) {
    const combined = Object.assign({}, playerOptions1, playerOptions2);
    Object.keys(playerOptions1).forEach(function checkObjects(prop) {
 
i had a project that was using it, till i updated it a week ago for the first time in years
..
those are easy to fix
 
user16776772
5:51 PM
How do I fix that?
 
put a space after the comma in question
break the line into multiple lines
or use a comment to tell the linter to ignore that rule for that file
 
user16776772
These were the 2 errors:

1. Expected one space between ',' and 'playerOptions1'.

                playerOptions1[prop],

2. Expected one space between ',' and 'playerOptions2'.

                playerOptions2[prop]);
 
user16776772
        playerOptions1[prop],
        playerOptions2[prop]);
 
user16776772
Isn't that multiple lines?
 
combined[prop] = Object.assign({}, playerOptions1[prop], playerOptions2[prop]);
(btw, eslint can fix most of these issues automagically)
 
6:05 PM
Can also be configured to your liking. As opposed to Crockford's liking.
 
user16776772
Longer than 80 Characters:

combined[prop] = Object.assign({}, playerOptions1[prop], playerOptions2[prop]);
 
was very satisfying to change a rule, hit fix, and see it correct hundreds of cases
 
 
1 hour later…
7:20 PM
Whats best beautifier extension for VSC? Prettier?
 
tab
anything that doesn't out of the gate also support your linter is useless
(if you're using eslint, there's an extension for that specifically)
 
8:00 PM
I have eslint was just curious
 
8:59 PM
hello guys
any one online
 
@DanfordKija what's your question?
 
9:23 PM
there'a slways someone online, somewhere
 

« first day (3986 days earlier)      last day (961 days later) »