Welcome!

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

SignUp Now!

javascript

  1. ⠀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...
  2. 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...
  3. 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...
  4. 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...
  5. 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>...
  6. 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...
  7. 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...
  8. 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...
  9. 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 : )
  10. 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); //...
  11. 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 )...
  12. 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...
  13. 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...
  14. 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"...
  15. 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...
  16. 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 (https://codepen.io/nicolas-hervy/pen/rNzqvXQ). But i would like to randomly display the questions and I don't know how to do it. Could someone help me please ?
  17. 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.
  18. 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...
  19. Roy Harper

    JavaScript Add/remove element on button click, based on checked checkboxes

    I am creating messaging process but I encounter problem with marking messages as important/unimportant. What I am trying to achieve is, if I mark those messages as important, I will append that icon to specific element. And if I mark it again as unimportant, the icon will be removed. However...
  20. TokyoNerd

    HTML & CSS text-align: center; Tag Isn't Working On an IOS Device

    Listed below is the code that I'm using to build a website. I've gotten this to display the way that I'd like it to on a computer (I'm currently using a Macbook), and when I scale it down and view it as it may look on a smartphone on my computer there are no issues. However, when I try to view...
Back
Top Bottom