javascript-code

  1. A

    JavaScript How to auto select month from drop down using javascript

    I have this drop down and I want to auto select the current month on page load, means when ever the user gets to this page at any time the month drop down gets auto selected to current month, can any one help me in this regard I am new to javascript, here is my drop down html code: <select...
  2. edwardsmarkf

    JavaScript promises changing question

    hello all, first time on this forum. i have serious problems trying to wrap my head around promises, so i have decided to just keep a couple of working examples around so i can refer back to those. here is an example i was able to put together: const firstPromise = (promiseInput) => {...
  3. 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)...
  4. 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); //...
  5. 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...
  6. 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...
  7. 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"...
  8. M

    Tutorial JavaScript Tutorial | 1 | Variables and console.log

    Hey! In this tutorial, I will teach you JavaScript Basics! First, please note: In JavaScript, we start variables with var! So, let's make a quick cup system with example! var Cup = true; var isDrinking = false; var disabled = false; // Let me explain. We create our first variable and name it...
  9. joshii1

    JavaScript I need help changing the file type

    Hello there! in my websites zoom.selync.ga and samia.selync.ga i have added a Winamp mp3/mp4 player and whenever i try to upload a file it wont allow me to do so unless that file is in a folder then it would allow me to upload it. how do i fix the code to where i can just upload a mp4 or a mp3...
Top