« first day (3423 days earlier)      last day (1508 days later) » 

1:38 AM
Heres the two colors of your page, or I can use just plain 1 color, or the greys too
and thats an example of how theyd look on text
I think itd just look better as a single word "Socratic" or something
without the orange
@JBis if youd want a specific font and style I could go for, or I could Attempt to make it manually
just ask, and Ill attempt to work it
 
i was thinking more of an icon, not text
something relating to Socrates
 
1:58 AM
oh ok
Well I kinda suck at icon making, ive mostly done computer generated paintings and logos
Take for example my wip SVG logo
thats for the functional workflow page.

Seriously dude, Im decent, but im not that good
if you were relying on PNGs I could probably do something nice
its tough to learn how everything works
Ive done this much in about 5 hours of "playing around"
I mean I could get fancy... Sigh
Make it look like a Japhanese coffee shop logo or somehting
smh
Ya know, I actually kinda like it
Ill keep it as Functflow's PFP
and use the other SVG as the site logo
 
 
2 hours later…
4:01 AM
@SamuelLiew lol i found your post in the wild, thought i recognized the name
 
hello
yes I have over 5000 posts on that forum, if you use Webflow you're bound to bump into me
 
nice. Never used webflow. I was inspecting a website and found the "wf" prefix attached to a lot of classes, looked it up, and discovered webflow.
 
I did the Stack Exchange Timeline's UI in Webflow in about a day. Here you can see how it was done in the WF designer (project read-only link) preview.webflow.com/preview/…
cos I'm not much of a designer so I use WF to prototype stuff
 
Thats pretty fast. So you just use wf as a designer mostly and then you custom the real thing?
reminds me a bit like of wordpress
 
like I said, I'm not a designer. No, it's not Wordpress and not Squarespace/Wix.
 
4:16 AM
maybe i'll try it out one day, thanks for the info :)
 
If I were to describe it, Webflow is more like Photoshop for web, with hosting, or export functionality if you want to host on your own server
I can work with WF because you can insert custom code (JavaScript/CSS) in the site/page header/footer, as well as code in embed blocks which you can use variables from the CMS into JS, or CSS (like if you want a custom color for each category for example).
 
 
2 hours later…
6:05 AM
Hmm is React.useRef() the correct position to put "large, slow to calculate variables that won't change over time -- which shouldn't be recalculated when the component is drawn again"?
 
 
1 hour later…
7:29 AM
@paul23 No, use an effect hook and pass an empty array as the second argument
 
Thanks, though a bit more googling showed the useMemo which seems to be similar with just a better name :P.
 
Samuel, have you ever lived in Arizona by any chance?
@paul23 Good catch, I haven't used that one
 
 
4 hours later…
11:10 AM
When pressing a "contact" button from a company, do you expect a popup to the form, or do you expect to be redirected to another page?
 
 
2 hours later…
12:57 PM
@paul23 Either, as long as it presents a contact form or contact information.
 
1:34 PM
hi
anone here?
 
 
3 hours later…
4:49 PM
🚽
 
 
1 hour later…
user12960916
6:06 PM
Anyone here?
 
6:59 PM
may I ask something about node.js, or I have to go for other room in this respect .. ?
 
@mcaS48 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.
 
user12960916
Does anyone know how you cant put a div inside a div for javascript?
 
@csscoder would you mind if I give here a SO link with this matter (about placing a div inside other div) in js ?
 
0
Q: Alert ender or a declare event

mikoto dreadRun the code snippet to see the mini game i'm talking about. as soon as the players cant pick anymore, i want the game to end and declare the player who has the most points as the winner. How i'm supposed to end the game and declare a winner? i tried using window.alert() but its not working, i...

any help would be appreciated
 
user12960916
What's an SO link? And yes please if you have a link that can help me you can post it here.
 
7:06 PM
ok, here it is:
https://stackoverflow.com/questions/12622465/creating-a-div-element-inside-a-div-element-in-javascript
 
user12960916
Thanks, I read some of the answers in the link and it seems that I just need to use append child
 
yes, somethg. like that ..
 
user12960916
What I'm confused about is they wrote document.getElementById('lc').appendChild(element); in the beginning but my code is a little different
 
user12960916
var content = `<div id="imagebox">` + `<Image src="` + people[i].imgs + `"id="allimages"/>` + `</div>` ;
 
user12960916
This is my code
 
user12960916
7:10 PM
I am displaying images for my each person in my array of objects
 
user12960916
Those objects also have other things like name, age etc. I want to put another div inside the imagebox div that contains all of that information. I know how to get the information but I'm not sure how to put it it in the other div I have and then put that div in the images box
 
user12960916
Does anyone know how I could do that?
 
any tips or hints would be appreciated, i have only two hours left to submit my project :(((((((
 
user12960916
I just started learning javascript so I'm not that advanced but maybe you could take the two numbers, compare to find the bigger one and then try the alert box
 
@css
that wont work :( @csscoder
 
7:28 PM
@mcaS48 ask away
@PrakashReddyPotlapadu ask away
@SamuelLiew i like the exporting functionality.
@csscoder 'Image' is not a valid tag
 
user12960916
Yep I saw it and fixed that earlier
 
@mikotodread your question is not going to get an answer in its current form
you need to narrow it down it an specific issue, or an error message
var content = `<div id="imagebox"><img src="${people[i].imgs}" id="allimages"></div>`;
@csscoder ^
people[i].imgs must be a string and a url
 
user12960916
people[i] is not an image, I have an array of objects for people so when I wrote people[i].imgs, I'm getting the image for each person
 
user12960916
var content = `<div id="imagebox">` + `<img src="` + people[i].imgs + `"id="allimages"/>` + `</div>`;
 
user12960916
Is what I changed it to and it works now
 
7:38 PM
@JBis i thought i was clear, the problem is how to declare a winner when game ends
i editted the thread
 
8:01 PM
@mikotodread that's a feature request not troubleshooting a bug
 
@JBis i said i tried two methods and it didnt work out, and im asking if there is method i can use, and i'll make it my own and i also showed one method i tried but not getting error, but its hiding the table, and asked if anyone know why
1
Q: Alert ender or a declare event

mikoto dreadEDIT: Main ISSUE, how to DECLARE WINNER WHEN GAME ENDS Run the code snippet to see the mini game i'm talking about. as soon as the players cant pick anymore, i want the game to end and declare the player who has the most points as the winner. How i'm supposed to end the game and declare a win...

read it carefully
i'll reward 100 points to anyone who help me
 
8:21 PM
You don't have a bounty you can't reward 100 points
 
user10458813
Hello
 
@Esporia 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.
 
@JBis its possible, i wont check the answer and in two days i get to put bounty so i do and check the answer as correct
 
8:39 PM
God dammit, nothing working and only one hour left
i edited the thread for who's interested
 
user12960916
Quick question, if I want to add a string of text before something in Javascript I would use the `` correct? Not the " " ? I found this link which I read: stackoverflow.com/questions/242813/… but some people said its a personal preference. I want to know even though its a preference is it better to use one or the other in some cases?
 
user12960916
Name: Bob (break) Age: 12 (this is on the next line)
 
@csscoder no difference but in some special cases they would matter and could make difference, research on that
 
user12960916
@mikotodread alright thanks
 
10:03 PM
@MichaelFulton 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
1 message moved to Trash can
 
console.log(accessArr());

var mArr = [];
mArr[0] = 1;

function accessArr() {
    return mArr[0];
}

output: return mArr[0];
               ^

TypeError: Cannot read property '0' of undefined
Hi all.Why doesn't this work?
 
You are accessing mArr before it's defined
Put the console.log statement below the other two lines
@MichaelFulton
 
@JBis Thanks. I'm glad I decided to brush up on my coding skills before jumping into the interview test cry
 
10:32 PM
:facepalm:
 

« first day (3423 days earlier)      last day (1508 days later) »