« first day (2048 days earlier)      last day (2903 days later) » 

10:01 AM
or am I thinking wrong?
 
@elsololobo export default const Heart ...
Or even, export default () => <span ...
 
yeah already figured that out ^^ sry for that
 
o/
@JanDvorak That works, it runs ESLint
 
[===========================]
[==================][========]
 
What would be the definition of a "PRINTABLE KEY"? I assume alphanumerals?
 
10:15 AM
is it possible to achieve that layout with a single flexbox container?
 
@AwalGarg Probably, but not as you'd want it
 
@techie_28 you assume incorrectly
 
You can make a flex item wide enough to force the others to go on the next row
But it's kinda meh
A more correct solution would be nested flex containers
 
@MadaraUchiha how do I do that anyways? I want the top one to take full width, and the other 2 to go the next row
 
Printable means there is something to see, so not whitespace or control characters
 
10:17 AM
braces etc as well
 
@AwalGarg What's wrong with nesting flex containers?
 
@techie_28 yes
 
out of the other two, I want the first one to take a fixed width (260px) and the last to take all remaining space
@MadaraUchiha don't have control over dom
 
@techie_28 if you were to print a given character from a printer, if you see it, it is a printable character
 
something like this
 
10:20 AM
@MadaraUchiha perfect, thank you
 
@doug65536 bookmarked, would have a look later. thanks
 
hey guys in my website i have 3 sections.one under the other-screen1,screen2,screen3(these are their id's)
 
@Slashy Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
10:22 AM
now i want to identify whenever a user scrolls down the page to each on of them
i know there is $(window).scroll event, but everytime i have to compare each of the section height and the window curren scroll height?
in other words,i need to get the element that the user scrolls to
@CapricaSix thanks! i read it :)
 
How to resolving the concurrent request in node.js .stackoverflow.com/questions/37433240/…
 
@Er.MohitAgrawal Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@CapricaSix is it a bot ?
 
@Er.MohitAgrawal i dont think so haha
but maybe
 
@CapricaSix they are calling you bot
 
10:31 AM
"I am no bot"
 
There's your proof
@CapricaSix If you aren't a bot, say nothing
See, clearly a person
 
Im bit confused bout this line from MDC Doc's "Gecko sets 0 if the pressed key is a printable key"
 
@techie_28 what's there to be confused about?
 
keycode.info here the printable key seems to give the correct keyCode's & not 0 as the doc states
 
@techie_28 maybe it is a different parameter
 
10:34 AM
that site tells you the keyCode of the key pressed.. when I press alphabets or numbers there it doesnt give 0 but the correct keyCodes
 
no one wants to help to a good person :(
 
who is good here?
 
Definitely not me.
 
@techie_28 You're reading a deprecated article.
 
10:36 AM
@techie_28 I have always known keyCode to return the number, and not 0
 
@Mr_Green me :)
 
<script>
var count = 1;
function createButton(){
count = count + 1;
var firstElement = document.createElement('div');
firstElement.className="button";
firstElement.addEventListener('click',createButton,false);
var spanE = document.createElement('span');
spanE.innerHTML = "Click me to Create other two button and distroy me"+count;
firstElement.appendChild(spanE);

count = count + 1;
var secondElement = document.createElement('div');
secondElement.className="button";
secondElement.addEventListener('click',createButton,false);
<div class="button" onclick="addEventListener('click',createButton,false)">
<span>Click me to Create other two button and distroy me 1</span>
</div>
Why my first div is removed, when i click for second time?
 
please use jsfiddle or pastebin/git if you want to post that amount of code next time
 
@cswl deprecated article?.. Im referring to MDN Docs here developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode
 
(or format it if it's a small snippet)
 
10:38 AM
oh sorry
 
@Neil nonetheless thats what the doc is saying.
it also warns against the usage of keyCodes saying that it is deprecated
 
chat client from scratch in my lunch break based on the chat api I wrote: i.imgur.com/Xb8BcjK.png. obviously is only 0.3% complete but you get the idea.
 
user3119231
Saddest story I've ever read... imgur.com/gallery/1f6PAnu
 
Hey what kind of transition do you use for a buttone xample where on hover the :hover background color loads from left to right?
 
@techie_28 probably a good idea to avoid them in fact
 
10:43 AM
opinions vary here for keyCodes actually..people say that they are here to stay for long time despite being deprecated
shall we use RegEx instead?
 
hello all
 
@SatanandTiwari Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
I want to connect my web socket with java script. but socket not working because there are lots of session variable created on website.
What should i do
 
hello guys,, how to disbale routing to specific directory in angularjs??
 
user3119231
 
10:57 AM
@Maurice i tried already many topics in google so my problem is that if i write the url / partials/nameofpage.html am able to still see it
iam using $routeProvider and locationProvider
 
time for bed
but I made you guys a gif
 
Building a website for a wine making company. And uhm- Decided to split the "Story" section into two with a Vine which goes through the middle of the div, but have no idea where to position what, got any advices?
The usual left image -> right text seems dull.
 
@Kob_24 That's not an Angular problem. Or, at least, not one that should be solved in Angular
 
iam using node
how to solve it?
@OliverSalzburg
 
If you want your users to be able to read the file, then they will always be able to read it
Why is it a problem that they can open the URL "manually"?
 
11:08 AM
@OliverSalzburg i have the following url localhost:4000/#/adminPanel, the user should be loged in to access the page otherwise if u try to get the adminPanel page from url u should be redirected to the login page. this senario is working for me but if i try this, localhost/partials/AdminPanel.html, the user is able to see the page
even if he is not authenticated! so i wonder why this is happening?
 
@Kob_24 How are you serving the files?
 
node js,,
 
@Kob_24 express? serve-static?
 
express
 
You're going to want to check if the user is logged in on your /partials express route and only serve the file if the user is logged in
 
11:12 AM
hmm any tutorial about it? never done this before
 
@Kob_24 Should be mostly copy&paste if you already have the login/redirect mechanism on another route
 
ahaa so u mean ok ok i got that
 
11:41 AM
umm
 
jsfiddle.net/utctqa77 why is the height of the <div class="content"/> always 0 ? how to get the height if the element from the top of the browser?
 
@shortCircuit What do you mean by height?
 
I mean the distance between the top of browser and the present position of the element
 
that's the offsetTop, and it's not affected by scrolling
 
11:54 AM
if you want to know whether or not it's at the top of the screen, compare the offsetTop to the scrollTop of the document
 
document.body.scrollTop - the offsetTop of el?
 
I added some console logs
 
user3119231
@StephanMuller because it's the container scrolling, not the document.body
 
12:15 PM
shoutcast should have written v2 in nodejs
source.pipe(listener);
 
@SterlingArcher i.imgur.com/kdKXBEb.gifv :D
 
@rlemon SterlingArcher is afk: eyebrow grooming meeting
4
 
omg @SterlingArcher gfycat.com/VelvetyAnguishedDavidstiger they're making it better
 
@rlemon What uh
What the fuck
 
user3119231
@rlemon totally unsafe for fucking everthing
 
12:29 PM
Hello
 
I made a javascript
 
another one?
One javascript is enough!
 
12:42 PM
ok, so I have this jsfiddle.net/utctqa77/3 .. which in normal browsers works like when I sroll to a certain height the header changes to a fixed position one.. now how do some ease in animation?
 
uhm
would it not be easier to just let it be fixed ?
 
Does it make sense to create a button component where you can set props (color, className) as u need or would one do e.g. a Danger & Success button component for its own to have something static? -> Reactjs
how u pro´s do that?
 
user3119231
I agree with KarelGott
 
@elsololobo *you (also, *pros)
 
pro's is an acceptable abbreviation for "professionals"
 
12:52 PM
@JanDvorak again on your correction trip?
 
IMO :P Please don't kill me
 
@KarelG hmm .. that will make it easier ..
 
@elsololobo Don't be lazy, that's my point
 
just an an answer to my question would also be fine. I want to got further
 
to make it fixed, you only have to apply some CSS.
 
12:53 PM
Better get your grammar correct, or Jan's 8th grade English teacher is going to whip you with a ruler.
 
*question
 
> They wrote "Q" instead of question because it was shorter, so I wrote "no" as an answer, because it was shorter
 
yay, great humor love it
 
we're a fun bunch around here. As to your question, I'm sorry I can't help you out, haven't ever touched React
 
12:55 PM
would it be possible to get an answer to my question from someone who has touched React already and I know you are here ;)
 
@KarelG I wouldn't fear Jan, if he ever attacks just show him some ebonics and he'll have an aneurysm
 
React is a much different programming approach that confuses me sometimes :) How much component abstraction is useful
 
What should be the HTTP response to a request when I have no data to output
because I don't have an incoming source
 
that question answers itsself
 

« first day (2048 days earlier)      last day (2903 days later) »