« first day (3685 days earlier)      last day (1485 days later) » 

03:01
 
1 hour later…
04:11
@cookiestarninja 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.
@cookiestarninja 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.
1 message moved to Trash can
@cookiestarninja 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
hello! just wanted a quick sanity check - is this valid json?

https://codeshare.io/G6v1bN

this is giving me a json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 2 column 2 (char 3) error, and i'm not quite sure why. thanks!
04:32
gud morning
anyone has worked with the ion-select option.
@cookiestarninja No. the quotes are smart quoted you want " instead of “ and ”
|| welcome User
@User 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.
04:58
@JamesBot
ok
i have list coming in array.
i want to sort that list & show
05:17
@JBis ah thank you!
06:02
Can someone demystify the language confusion. async can be a keword as well as a variable e.g var async = require('async')...so the js language parser can identify this correctly, right?
 
1 hour later…
07:14
i am unable to set value using ngmodel in ion-select
 
2 hours later…
08:49
Imagine i have a context being passed to child components like this
<NavbarContext.Provider value={ this.state }>
                    <NavMenu basket={this.state.selectedCartProducts} customer={ this.state.selectedCustomer }/>
                    <Container>
                        {this.props.children}
                    </Container>
                </NavbarContext.Provider>
Why can i retrieve the context in the NavMenu component
but not in the this.props.children-components
?
09:05
Found the problem
Had to add context as parameter in the constructor in the child-component
since i used the context there, and this.context is not defined then
constructor(props, context) {

}
 
2 hours later…
11:02
@deostroll Yeah it's part of the language construct. Check it out in an AST parser
 
2 hours later…
12:53
@deostroll meanwhile in C#: var var = new var();
13:17
@BenFortune cool site
gud evening
anyone here
urgent help
@NIKHILCHANDRAROY
hi
I want to Configuring a publishing source for GitHub Pages site by terminal
@NIKHILCHANDRAROY
13:26
Is this possible to control the github settings by terminal?
yeah
but terminal is bit complex
docs.github.com/en/free-pro-team@latest/github/… here is the custom way but I want to publish it from terminal not going to settings each time
i have invited you to new room.
lets discuss
 
1 hour later…
14:42
@NIKHILCHANDRAROY eh? you just give it a branch and push to that branch with git
15:04
i wonder if anyone has come across some best practices for building angular (applications? sites?) incorporating oAuth
15:19
Hello, could I get some help with this- stackoverflow.com/questions/64866776/…
15:52
@Jarede err
best practices... of doing stuff... gotta be more specific than that
if you're looking for a tutorial, call it a tutorial
or example
kay, pls no downvotes tho?
@LlamaButt iirc there are entirely different events for touch
onTouchDown and onTouchUp or something
I know, but those just didn't do anything
wait, touchStart
15:57
hmm... they did work for me
do you have an MCVE?
huh. I'll try it again, maybe it was a syntax error. Thanks.
<div id = 'drawingArea'>
<canvas id='dr' width = '640' height = '480' style = 'display: none;'></canvas>
<div style = 'width: 35%; margin: auto; display: none;' id = 'ClearAndColor'>
<button onclick = 'switchColor()'> Change color</button>
<button onclick = 'clean()' > clear drawing program</button>
<p id = 'color'>black</p>
</div>
</div>
<script>
var canvas = document.getElementById('dr');
var ctx = canvas.getContext('2d');
var line = false

function drawType() {
  if (line === true) {
    line = false;
@LlamaButt 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.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
Yeah, this is the code that didn't work
@KevinB maybe more of a thorough example/tutorial. i'm having trouble understanding what systems are in play and where they should sit.
hmm...
I used these events
onMouseDown
onMouseMove
onMouseUp
onTouchStart
onTouchMove
onTouchEnd
although, I did use KotlinJs
which might overcome some minor flaws which could have solved the issue you are currently having
16:12
No, didn't work.
Yeah.
your event might be wrong tho
Every webpage that I have seen has told me that if you are using a javascriptevent listener you need to do no caps, and remove the 'on'
	private fun onDraggingTouch(event: TouchEvent)
	{
		val canvas = document.getElementById("canvas")!!
		val bounds = canvas.getBoundingClientRect()

		event.touches
			.filter { it.clientX >= bounds.x }
			.map {
				Point(
					it.clientX - bounds.x,
					it.clientY - bounds.y
				)
			}
			.firstOrNull()
			?.also { onDragging(it) }
	}
@Wietlol ew
16:14
for me, TouchEvent has a list of touches
each has their own clientX and clientY
What does that pile of shit- I mean code do?
go back to java @Wietlol
I assume also a pageX and pageT
oh thats kotlin, isn't it
16:14
ye
this is a canvas onTouchMove event handler
@Wietlol Is your picture a cosmic goat or a doge at a disco place
lol
it is a Majestic Green Flaming Lion
you uncultured zebra
Looks like a cosmic goat to me
Bahhh I shall smite you with my interdimensional wraaaath Bahhh
lmaooooooo
@LlamaButt but yea, if the onTouchMove event fires, maybe log it to see what values it has
I assume it has a property named touches
maybe it also has a pageX and pageY, but I doubt those would be what I think they would be
I can't get a proper text editor on this school computer so I'm using the google apps script HTML service for my web domain, and all of my javascript is inside of <script> tags inside of an HTML file so I can't log it
16:18
oReally?
document.body.innerText = "LOG IT ALREADY!";
ofcourse you can log
o I thot u ment console.log ok
although, that probably would remove everything else
logging is just you getting your hands on important data
16:19
how you get that important data is irrelevant
oopsies
I usually use something like console.log
but if I cant, I would do something on screen
maybe an overlay or a popup or something
I apologise in a most submissive position to the almighty gerrn cosmic goat
green
AAAAAAAAAAAAAAAAAAAAAAAAAAAH
16:20
I mean
ROOOOOOAAAAAAAAR
AAAHHHHHHHHHHHHH
Hey @Wietlol I have a room that needs some more users & you seem pretty chill, you wanna join

Ameteur web design coders

A place for anyone who is relatively new at html, css, or jav...
IK youre not new at JS but us who are could use you
> Ameteur
> web design
> new
not even necessarily for people who are new at it
16:22
the insolence
:)
but as i said you seem pretty nice, and those of us who are new could really use people like u
I am the mighty Majestic Green Flaming Lion
thou shalt feel my wrath!
What are you gonna do, eat my soda can?
lol
16:24
I shal roar in your general direction
OKay im technically in school i gtg thx 4 the help
did it work tho?
before I go, what exactly would I log to see if the pointermove is running?
no it didnt work bugt thx to you im much closer to finding out why its not working
onTouchMove
I assume the pointer move works
16:27
you should log the json of the object
so, like... json stringify it and the print it
IK but what would I stringify just touchmove
ye, the event
canvas.addEventListener("touchmove", (event) => {
    const json = JSON.stringify(event);
    ...
});
or something
so like this
@LlamaButt 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.
I DID FOR FUCKS SAKE SOMEBODY MUTILATE THE CODE FOR THIS FUCKING BOT
16:30
1 message moved to Trash can
canvas.addEventListener("onTouchMove", (CosmicGoatScream) => {
//do some stuff

}
var cosmicGoat = JSON.stringify(CosmicGoatScream);
alert(cosmicGoat);
ARGGGGGHHH
16:43
Don't use alert for debugging :(
So why are you?
Okay, I found the problem. It turns out, pointermove and pointerdown both work perfectly for touchscreen, but pointerup never fires on touchscreen.
speaking of alerts, why don't they add an async/non-blocking alert/confirm api?
Idk, i just used it to make sure that the variable was being transferred to the logging method, so that I could use a more effective method of logging afterwards
16:49
Browser notifications kind of fill that space
You're better off rolling your own anyway
SWAL etc
I think native dialogs could be a useful feature if we had some more customization around them.
Kay, edited the question, now it is updated to my current status of clusterfuck.
0
Q: event listener with Pointerup not firing when activated from touchscreen

LlamaButtI'm coding a simple javascript drawing program using an HTML canvas, it will allow you to draw a line, and change the color of said line via a button, and see which color you have selected using a element and some javascript involving innerText, and it works great, when used with a mouse or tra...

17:17
posted on November 17, 2020 by Lakshmana Pamarthy

The Beta channel has been updated to 87.0.4280.66 for Windows, Mac and Linux. A full list of changes in this build is available in the log. Interested in switching release channels?  Find out how here. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn about common issues. Lakshmana PamarthyGoogle

Paz
Paz
17:33
If someone here's familair with nuxt/vue:
Does anyone know how to stop the console overlapping the output of my code snippet?
0
Q: Canvas text is not all displaying

PureferretI'm recreating the classic Sandwich Alignment Chart using the HTML5 canvas, but my programatic titles for the blocks are not working properly. They seem to print out fine in the console, so I cannot see why they don't all get rendered on the canvas. Below is my latest Alignment Chart code. //...

Paz
Paz
Accidentally posted, anyway, is there a way to make the same fetch for every nested route of a route, including the route itself, called from the top route?
@Paz that sounds like a good Q for the main site
17:49
Could I get some help with this?
0
Q: event listener with Pointerup not firing when activated from touchscreen

LlamaButtI'm coding a simple javascript drawing program using an HTML canvas, it will allow you to draw a line, and change the color of said line via a button, and see which color you have selected using a element and some javascript involving innerText, and it works great, when used with a mouse or tra...

18:45
How would i convert the string "thisIsSpinalTap" into "this Is Spinal Tap"
is it possible to do it in regex?
||> "thisIsSpinalTap".replace(/([A-Z])/g, " $1")
@JBis "this Is Spinal Tap" Logged: `` Took: 0ms
didn't think i'd get that first try
@JMoss ^^
Jesus... and i have to do that for freecodecamp haha :<
thanks a lot
ahh i was using .match()
19:05
Can I get some help with this
0
Q: event listener with Pointerup not firing when activated from touchscreen

LlamaButtI'm coding a simple javascript drawing program using an HTML canvas, it will allow you to draw a line, and change the color of said line via a button, and see which color you have selected using a element and some javascript involving innerText, and it works great, when used with a mouse or tra...

 
1 hour later…
20:30
Hi I have uploaded the images on firebase using URL.createObjectURL() this i got a URL where my image was store in the firebase and i can view the URL and image was also shown but now when i try to access the URL it give me thiis Your file couldn’t be accessedIt may have been moved, edited, or deleted.
ERR_FILE_NOT_FOUND
@YaxirBajwa 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.
 
1 hour later…
21:41
posted on November 17, 2020 by Lakshmana Pamarthy

The Chrome team is delighted to announce the promotion of Chrome 87 to the Stable channel for Windows, Mac and Linux. This will roll out over the coming days/weeks. Chrome 87.0.4280.66 contains a number of fixes and improvements -- a list of changes is available in the log. Watch out for upcoming Chrome and Chromium blog posts about new features and big efforts de

21:54
Hi
@RoeiGrinshpan 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.
22:19
hey
@felix 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.
!!hi
Hello

« first day (3685 days earlier)      last day (1485 days later) »