Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. Johna

    Fun activity How many programming languages do you know?

    That's actually a good idea, so yeah, I made this thread. Here are the ones I know: HTML (I know it's a markup language, but yeah) CSS JavaScript Some Python Edit: forgot about SQL and also PHP, which I never use anymore Not sure if TypeScript is considered a language or part of JavaScript
  2. Johna

    Node.JS 'TypeError: superagent.agent is not a constructor' when sending POST request to functions on CloudFlare Pages

    Hi everyone. On a site I'm creating, there's a newsletter form. I'm using Brevo (previously SendinBlue) to add the email entered in the newsletter form to a contact list. The site is hosted on CloudFlare Pages, so I'm using the functions API to send a POST request to...
  3. Johna

    JavaScript How can I add a timeout in between functions?

    <button id="button">Click me!</button> $("#button").click(function() { console.log("clicked"); }) The button can be clicked any number of times, but I want the JavaScript function to only run at most once per second. So if the button was clicked twice in a second, the function will only run...
  4. Johna

    JavaScript $("#slider:hover") not working

    I have this piece of jQuery code: if ($("#slider:hover")) { console.log("hovering"); } else { console.log("not hovering"); } If the element with the id "slider" is being hovered on it should output "hovering" in the console, but even if I don't hover over it it still outputs "hovering". Is...
  5. Johna

    PHP rename() not working to move files

    I have a file called index.php (located in the root folder of the website) which creates a file called cat.php in the root folder of the website. <?php $title = "cat"; $image = "cat_pics"; $desc = "funny cat pictures"; $content = "<?php include '_data/head.php'; ?><title>" . $title . " | Crazy...
  6. Johna

    Python Floating point numbers subtracting incorrectly

    I have this Replit for an IGCSE computer science assignment. I'm supposed to calculate change by subtracting price from cash given. Here's my code: price = float(input("Price in Pounds and pence: £")) cash_given = float(input("Cash given: £")) change = cash_given - price print("\nChange: £" +...
  7. Johna

    PHP Why does ../ work but not / for relative file paths?

    In my website, I have a header that is the same for every page, so rather than typing the code for the header in each page, I've created a file called header.php and then include it in each page using the include statement. When I type in this, it works: <?php include "../_data/header.php"; ?>...
  8. Johna

    JavaScript Mobile navigation menu immediately closing when opened

    I'm making this website for someone, link is here: https://crazy-chicken-girl.22web.org I've made it so that when the width of the window is less than 515px, the navigation bar will change. When the arrow to open the navigation bar is almost off the screen (by scrolling) and is clicked, before...
  9. Johna

    HTML & CSS Space between two <div> elements

    So I have a friend who is learning web development and he coded this. There is a gap in between the 2 <div> elements which he doesn't want there. The only way I can think of removing that gap is by adding margin-top: -19px; to the div with the info id, but that doesn't really seem like the best...
  10. Johna

    Answered SecurityError: Permission denied to access property "css" on cross-origin object

    What does this error mean? It's on CodePen: SecurityError: Permission denied to access property "css" on cross-origin object This is the JavaScript that's giving the error: var button = $("#button"); var top = $("#top"); var middle1 = $("#middle1"); var middle2 = $("#middle2"); var bottom =...
  11. Johna

    What is GitHub?

    I don't really know what exactly GitHub is, or what it's for. I know you put your code there, but is that all it does? Is it something every coder should have? Should I get GitHub, and if yes, how do I use it and what does it do? Can someone please explain to me what it is, and if I should get...
  12. Johna

    JavaScript Image Carousel Issue with First and Last Image

    I've been trying to make an image carousel for quite a while not, I've finally got somewhere, but there's still one issue. When the carousel moves to the next image, rather that the last image sliding in, it just appears. Same with going to previous Image, but then it's the first image. I know...
  13. Johna

    Fun activity How many languages do y'all know?

    I'm just wondering how common it is for people to know more that 1 language (I mean speaking language not coding language XD). My main language is English (as you might have guessed), and I know a little bit of Dutch and French. Dutch is kinda supposed to be my first language, cause I was born...
  14. Johna

    Solved How do I verify my email?

    So I've done everything in the account progress, and I'm wondering how I verify my email? I've looked everywhere in my account settings, but I can't find it.
  15. Johna

    JavaScript JS code not working

    Hi all, I have this piece of JS code, but it's not working, any idea why. Or have I made some very obvious error in the code? :Rofl: let sm = document.getElementById("sliderMain"); let ll = document.getElementById("sliderLL"); let l = document.getElementById("sliderL"); let m =...
  16. Johna

    HTML & CSS Slider does one Complete Loop, Continues to the Next Image, Goes Back to the First, and then Runs Normally Again.

    I'm trying to create a slider with HTML and CSS, but there's an error that after one complete loop, the slider continues to the next image, and then goes back to the first, and then runs normally again. Here's the code: <link rel="stylesheet" href="style.css"> <div id="sliderMain"> <div...
  17. Johna

    CSS Is it Possible to Pause a CSS Animation at a Specific Key Frame?

    Is it possible to pause a CSS animation at a specific key frame? I have this HTML: <div id="sliderMain"> <div id="sliderLL" class="st2"></div> <div id="sliderL" class="st1"></div> <a href="#" style="cursor: default;"><div id="sliderM" class="st0"></div></a> <div id="sliderR"...
  18. Johna

    CSS Can I set animation keyframes using frames

    Hi all, I'm guessing this is not possible, because I haven't found it anywhere, but it is possible so set the key frames of an animation in frames? Like I know you can use % and from and to, but is it possible with frames, like this? @keyframes anim { 1f {margin-left: 10px;} /*I'm using "f"...
  19. Johna

    Bug Multiple messages being sent.

    Quite often (like 1 in every 2 posts) when I post a message It shows like 5 of the same message have been posted (as if I've posted it 5 times). When I reload the page there are then two messages posted so I have to delete one of them. This bug only started on Tuesday I think.
  20. Johna

    CSS How do I add shadow to SVG

    I've embedded an SVG in HTML and I want to add a shadow to it, but I don't know how to. I've tried adding filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.2)); to the CSS and doing what they have here [https://www.w3schools.com/graphics/svg_feoffset.asp], but none of them seem to work. <svg>...
Back
Top Bottom