1. B

    JavaScript for some reason this text doesnt show up

    aimCanvas.ctx.fillStyle = "#404040"; aimCanvas.ctx.textAlign = "center"; aimCanvas.ctx.textBaseline = "center"; aimCanvas.ctx.font = "50px Open Sans"; aimCanvas.ctx.fillText("End", this.centerLeft, this.centerTop - 20)...
  2. Q

    HTML & CSS Help with aligment of the code-source with!

    Hello, I would like your help to correct with code some of the situations that I couldn't do with the code. My site is a responsive site, but when I see the full screen from my computer, the look/layout of the site is not similar when it shrinks the screen for tablets or mobile devices. My...
  3. ⠀gb⠀

    JavaScript JS Webserverinteraction

    Hey, I want to create a site on my webserver that shows all of my projects and link them. I want to realize that with JS. I want to check with the JS file in my webserver for new created/uploaded folders. Search in them for a .html file and want to link this .html file in my site that will show...
  4. Supa

    Node.JS MongoDB/Mongoose save a string to a specific collection

    there is a thing that im confused about, i'm using node.js and express.js (template express) and i have a mongodb database. i have some code like this ```js //variables for router, mongoose e.t.c are included, but that would be long router.get("/", landing.get_lead); //connects to mongoose and...
  5. Johna

    How can I create desktop applications from html

    I've made an app in Html CSS and JavaScript (I know it's not the best language for making apps but I only know these). I'm made it for android using WebView. I also want to make this app run on windows. Is there a free way to do that? I don't want to use nwjs or electron, because the whole app...
  6. B

    JavaScript Exercise - find a passcode using dimensional arrays and function

    Hi! I´m stuck on this: Write a function named getValidPassword that takes a two dimensional array as parameter. Each entry in the first array represents a passcode. You need to find the passcode that has no odd digits and returns that passcode from your function. Here's an example: var...
  7. Johna

    JavaScript Can I change only a part of innerHTML with JavaScript

    I want to change only a part of innerHTML with JavaScript, for example this: <html> <head> <title>Example</title> </head> <body> <p id="text">This is an example</p> <button onclick="myFunction()">Click to change 'an' to 'my'</button> </body>...
  8. B

    JavaScript Create a condition with a integer random number

    Hello everyone! I´m learnin by myself some javascript and I´m performing some exercises. They ask me to create this: "Generate a random integer number between 0 and 99 and assign it to the luck variable. Write a condition that should check if Mr. Pink's luck is greater than 90. If so, the...
  9. Johna

    How to make a Chrome Extension save data

    Hi everyone, I made a chrome extension, and it has a dark mode option. I want the extension to remember the last mode it was on, so if it was previously on dark mode, when you close and open the extension it should stay on dark mode. Is there a way to do this? Btw if you need to know, the code...
  10. A

    JavaScript My lightbox is not working

    Hello everyone! I have a problem and I don’t know where it comes from : I can open my lightbox but the navigation and the images don't work well, when I click on a image, only the first media opens (the video with the horses) and I have no error messages in the console. Here is my GitHub...
  11. Johna

    Can I make android apps with Html, CSS, and JavaScript?

    Hi everyone, I want to make an android app with only or mostly Html, CSS and JavaScript coding. Is there a free way to do that without needing Android Studio or Android SDK installed, because I don't have space on my computer for that, and my pc isn't good enough to run Android Studio. Thanks : )
  12. M

    JavaScript How do I set this timer to a specific date?

    I want to understand how this timer function works, please can someone help me? My goal is to set this timer to end: 2021.11.24 12:00 (UTC) <script> (function() { var start = new Date; start.setHours(0, 23.5, 0); //...
  13. Swìlam

    HTML & CSS Mobile navbar menu

    im learning hmtl/css and need a menu for my navbar (mobile version ). I watched some java script videos and tried to do same but sadly it dosent work. The menu dosent get hide nothing work tbh. I will be glad if u can advive me or show me a simple way to make one ( my js knowledge is basic )...
  14. Johna

    JavaScript Can I select an element by "role" or "data-test-id"?

    I'm trying to select an element, but the element doesn't have any class or id. This is the element: <div data-test-id="giftWrap" role="dialog" aria-label="Hybrid banner gift wrap" style="position: fixed; z-index: 680; background: rgba(0, 0, 0, 0.65); transition: height 0.5s cubic-bezier(0.26...
  15. Johna

    JavaScript Chrome extension to edit page HTML and CSS not working

    Ok, so the last question I posted I didn't put the code in the </> thing, so I'm re-asking it here. Hi everyone, I made this extension to view unlimited number of Quora pages without having to sign up by removing the sign up popup. I don't know what I did wrong, but it isn't working. My browser...
  16. Johna

    Chrome extension not working

    Hi everyone, I made this extension to view unlimited number of Quora pages without having to sign up by removing the sign up popup. I don't know what I did wrong, but it isn't working. My browser also doesn't give any errors. Here's the code: manifest.json { "manifest_version": 2, "name"...
  17. Roy Harper

    JavaScript Prevent typing letters on input not working on mobile.

    I recently noticed that my website input validation of prevention of letter typing is not working on mobile. I can freely type anything on the input. While on desktop, it works just fine. What should I do? function validateNumber(event) { var key = event ? event.keyCode : event.which; if...
  18. M

    JavaScript Randomly display the questions in the Quiz

    Hello i'm a french student and for a study project I would like to use this code ( But i would like to randomly display the questions and I don't know how to do it. Could someone help me please ?
  19. A

    HTML homework help

    so i just started a IT class. We got given this assigment today and i dont know what to do. Create a code where you can enter two numbers in two text boxes, and then get the sum (+), the difference (-), the product (*) and the quotient (/) when you press one of the corresponding four buttons.
  20. M

    HTML Need help with HTML/JS height checker

    I'm not great at html and js together and I'm trying to get a program running which says if the user is too tall or too short and by how much. first they input their height and then if it is above 200cm or below 130cm then it reads out the command to tell them if theyre too tall or short. if...