Skip to content
Sign UpLog In
Profile icon

Japoll246

@Japoll246
  • Smash bros score

    Cover page
    Made with Python
    Recent comments (0)
Repls
Community
Japoll246
Japoll246
shared a Post
2 years ago
My Javascript isn't doing what I'm telling it to
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
Car organizer
HTML, CSS, JS
Coder100
Coder100
lol that's not how you use buttons2 years ago
Japoll246
Japoll246
shared a Post
2 years ago
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
Not So Secret Santa
HTML, CSS, JS
InvisibleOne
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
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
Japoll246
Japoll246
shared a Post
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.
Not So Secret Santa
HTML, CSS, JS
RYANTADIPARTHI
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
Japoll246
Japoll246
shared a Post
2 years ago
Im doing an html code and it keeps saying "not found when I use the hrefs
Not So Secret Santa
HTML, CSS, JS
Japoll246
Japoll246
shared a Post
2 years ago
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.
Not So Secret Santa
HTML, CSS, JS
Japoll246
Japoll246
shared a Post
2 years ago
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
Not So Secret Santa
HTML, CSS, JS
RYANTADIPARTHI
RYANTADIPARTHI
You didn't call your function: Screenshot 2020-11-08 at 2.33.35 PM It will probably work2 years ago
Coder100
Coder100
you forgot to call the function! ^ `2 years ago
Japoll246
Japoll246
shared a Post
2 years ago
This was answered. Thanks for all the responses they all helped in the end.
Blue Box
Pygame
PattanAhmed
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.*2 years ago
InvisibleOne
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 indentation2 years ago
Japoll246
Japoll246
shared a Post
3 years ago
I dont understand the error message here. I'm trying to use buttons in pygame for the first time.
SixBeeps
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
VulcanWM
It means that the variable button is a tuple and you can't use the function isoOver with it.3 years ago
Japoll246
Japoll246
shared a Post
3 years ago
it keeps on saying this and not letting me run my program.
first pygame
Pygame
VulcanWM
VulcanWM
Maybe it is because you wrote  pygame.quit()  Try doing removing it.3 years ago
Japoll246
Japoll246
shared a Post
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
first pygame
Pygame
ash15khng
ash15khng
You can add files in 2 ways. 1) Click the 3 dots on the left sidebar and click upload file. Then find the file you want to upload. 2) Drag and drop the image into the left sidebar.3 years ago
08KINPLIX
08KINPLIX
I have done it a few times but I do not remember3 years ago
Japoll246
Japoll246
shared a Post
3 years ago
A game made mostly using the random module. Satisfying to win.
Japoll.007
Python
Highwayman
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
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