Hi there, I have not yet found any way to get SASS/Stylus to work. Please go in detail how I would go doing this. Thank you!
Coder100try my repl:
https://replit.com/@Coder100/TrickyAverageEmulator-aeouaeouaeouo#main.css
it's a bit hacky, but it works.
Just run npm run compile to compile the sass.
The explanation is just to use npm lol2 years ago
So uh, I need help fixing this. Supposedly, it should create a input inside a div. But it doesn't, and the reporting system doesn't work for attr, and
HTML, CSS, JS
Coder100lol what is that code on line 60, that's nonsense lmao
here's what you probably meant to do:
function onload(callback) {
window.onload = callback;
}
so much easier, right?3 years ago
Coder100wdym, you can put inputs inside divs smh3 years ago
So, I'm making a "shop" and the code in script.js shows how I'm going to be saving data, and I have some JSON in the third item of the array for stori
HTML, CSS, JS
Coder100Arrays start at index 0. You tried to access the fourth item, which is a boolean lol
Correct code:
var saver = ["password", "email", '{"cattabby": 340, "plasma4ku75intv": 8500, "hpss": 16.50}', false]
var json = saver[2];
var objCart = JSON.parse(JSON.stringify(json));
document.write(objCart.cattabby);
`3 years ago
RYANTADIPARTHIThe reason it is undefined is because it cannot happen. You can't do that. But if you are stringifying that, it probably will though. Stringing it.3 years ago
realTronsiYou cannot JSON parse an array. If you try stringifying, you will see, as the name suggests, turns it into a string. Parsing will do the opposite, turn a string back to its original form.3 years ago
Bookie0Hi,
not possible, but @CodingCactus made a custom color theme for the repl.it IDE: post here
you can also make how you want, follow the instructions on the post ;)3 years ago
Node.JS database tutorial links in the chat, please! :)
Why?
Here's why: I want to create a live chat on a website with whitelisting (hopefully poss
WorldDominatorI'm AnAlienIn_Disguise from scratch3 years ago
realTronsiThis is a big leap for someone coming from Scratch. I'd suggest taking a look at websocket/socket.io, there are also plenty of good tutorials on youtube. To be honest though, I'd suggest starting slow, familiarize yourself with html, css, and javascript first, and slowly making your way into the backend with some simple express projects etc.3 years ago
PattanAhmed@DabDatBass Hi,
To your direct question:-
> Node.JS database tutorial links
So, here are some in
Node.js MySQL:-
https://www.w3schools.com/nodejs/nodejs_mysql.asp
https://www.mysqltutorial.org/mysql-nodejs/
Here are some in
Node.JS MongoDB:-
https://www.w3schools.com/nodejs/nodejs_mongodb.asp
https://docs.mongodb.com/drivers/node/usage-examples
For your side note, Here are some tutorials on Node.JS too:-
https://www.w3schools.com/nodejs/
https://www.youtube.com/watch?v=RLtyhwFtXQA
https://n3 years ago
Hi! I would like to know how to make it where somebody adds something to the server, like a game or text, and it saves on the website for everyone to
Coder100You are looking for a database, not a web server (but a web server will still be essential to processing the data!)
I suggest you use repl.it db, although it is still in beta, you can use it! I made the node.js client :D just turn on explorer mode.
Node.js
Tutorial https://www.npmjs.com/package/@replit/database
Python
Docs https://pypi.org/project/replit/3 years ago
SixBeepsYou'll want to store that kind of info in a database. Something like Repl DB should work for it.
All you'd need to do is put the score in the database, then access it when you want to show the leaderboard. I haven't actually done something like this yet, but I know that's how it would be used.3 years ago