Japoll246
@Japoll246
I am really new to Javascript and basically I made this href a button because the styling wasn't working on an tag. When I click the button it opens
HTML, CSS, JS
I'm trying to make it so that you have to login instead of just pressing the buttons to access different areas of the website but I think something is
HTML, CSS, JS
InvisibleOne I think you have to change:
var username = document.getElementById(Username).innerHTML;
var password = document.getElementById(Password).innerHTML;
to:
var username = document.getElementById("Username").value;
var password = document.getElementById("Password").value;2 years ago
RYANTADIPARTHI You are getting js code when you sign up, because your action in the form is telling to go to script.js. Put it to a HTML file instead. IT will work then.2 years ago
When I try to use the randomizer on parents.html it doesn't work and I don't know why. I think it's a problem with my JavaScript.
HTML, CSS, JS
RYANTADIPARTHI solution
Your error is you are using randomizer but you have forgotten to add () to the randomizer. the onclick is thus not working:
randomize
Just copy and paste that line of code into your code, and replace it. It will probably work after that.
That should work2 years ago
Im doing an html code and it keeps saying "not found when I use the hrefs
HTML, CSS, JS
I'm trying to do a secret santa type of website and I was wondering what the easiest way to randomly pair the people with each other randomly.
HTML, CSS, JS
I have a basic understanding of HTML but am very new to JS. I am trying to practice by making this website that helps my family navigate our yearly "n
HTML, CSS, JS
RYANTADIPARTHI You didn't call your function:
Screenshot 2020-11-08 at 2.33.35 PM
It will probably work2 years ago
This was answered. Thanks for all the responses they all helped in the end.
Pygame
PattanAhmed @Japoll246 Hi,
Normally, This error will occur due to Bad Indentation
Check your program again and check how everything is!
And please comment below if you can't find anything wrong
Ready to help anytime!
*Hope this helps
Please mark my answer if this helps.*3 years ago
InvisibleOne Screen Shot 2020-08-05 at 3.51.55 PM
Hmm, one else can't be in the same line with another, you either need to use elif, or that other else has wrong indentation3 years ago
I dont understand the error message here. I'm trying to use buttons in pygame for the first time.
SixBeeps Are you following a tutorial of some sort?
What you're doing in your code is you create what's called a 'tuple', which is just something that holds multiple values. You're creating a tuple that holds the color white, 150, 255, 250, 100, and the word 'MAGNITUDE'. Unless PyGame has some kind of undocumented button thing that takes in a tuple like this, that's not quite what you need.3 years ago
VulcanWM It means that the variable button is a tuple and you can't use the function isoOver with it.3 years ago
So I am watching a series of pygame tutorials to help me get started and he has a set of PNGs to add to our code. I want to know how I can add these P
Pygame
Highwayman UwU it has definitely improved since I last played it’s harder now this is sick :P or maybe that”s just me lol.3 years ago
XanderEhlert I was bored so i made it in one line:
from replit import clear; import random; import sys; ammo = 0; aiammo = 0; shoot = 0; decision = 0; yourchoice = 0; yourchoice = input('What do you want to do? 1. Block 2. Load 3. Shoot (enter the number) you have' + ' ' + str(ammo) + ' ' + 'bullet(s).\n>>>'); clear(); print('The AI shot you, but you blocked its shot.' if shoot == 1 and yourchoice == '1' else 'The AI also blocked.' if shoot == 2 and yourchoice == '1' else 'The AI also reloaded.'if yourchoic3 years ago