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. J

    JavaScript calculates the checksum including 10 as a solution

    Hello dear community, I have a problem and I don't know exactly how to solve it. I have a code that calculates the checksum of a number and then outputs it. I would now have to adapt the code so that the number "10" can also come out as a solution. That means the checksum of 91 should be 10...
  2. simonwyns

    JavaScript Does anyone know how i can make my Snake game start on button click?

    I'm using a code that i found on the internet to make a snake game. The game starts automatically when the page is loaded. Now i want to have a button to start the game so that it doesnt start automatically. But everything i try fails and make the game not work anymore. Does anyone know how i...
  3. S

    JavaScript How to upload a PDF file to a web page, get its fields values and render them into the same web page fields using JavaScript

    I am trying to develop a web page where I want to upload a PDF file to a web page, get the values of its fields then render them into the web page fields using JavaScript. I started with the following code but I can not get the value of the PDF fields. May I ask for a sample code on how to do...
  4. cegbuji14

    HTML Problem loading local Json file

    Hi, im currently using Python's Flask to create a dashboard and on one route I'd like to render an html template that turns a local json file into a table. When using getJSON for some reason the localhost/server cannot find the file no matter how I've defined the path so the table always only...
  5. A

    Docking electron desktop app above browsers and other applications.

    I have asked this question on a number of different forums and have not been able to find a solution. Can ANYONE tell me if this can be done? When launched my Browserwindow is currently placed at the top of my screen which is what I want. However I also want the browser window to SIT ABOVE...
  6. Q

    HTML & CSS Aligment icones of a website!

    Hi everyone, I'm making a personal website to promote my multimedia products, I really appreciate your help in clarifying the image doubt. So I also send my source code and I really appreciate your help with source code to help you with this question, please. So I also send my source code...
  7. 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...
  8. nil14

    Answered toggle bar not responding

    hey a total newbie to web development here , I'm just trying to create a "slide menu"/toggle bar(?) in which you get the item list when clicking the on the the 3 lines , anybody could tell me why it's not working for me ? I copied a code from a tutorial but I don't know how to fix the problem /...
  9. Owen21

    JavaScript Automatically adjust UI based on screen size

    I'm writing an app that I want to release and I was under the false pretense that using % for width and height will make the UI look the same regardless of what resolution the screens are. How can I automatically scale my app's UI without the UI components changing position or location? The...
  10. Ahmad Saleh

    JavaScript Assistance with two sticky headers.

    Hello, I am self-teaching myself how to code HTML, CSS and Javascript and I am super new to this (this is my first project.) There are lots of resources online that I am using and I've managed to figure things out as I go. However, I am encountering two issues: 1. I had a sticky header...
  11. N

    Node.JS Https requests via 2 socks5 proxies

    I am trying to achieve an experimental setup in nodejs as illustrated below: https-server --> local socks5 proxy (Tor) --> my external socks5 proxy --> webserver. The existing https-server was written in nodejs and it intercepts requests from the clients firefox browser, modifies the headers...
  12. Aleksi

    JavaScript Canvas rotate, image does not fill the canvas

    I am implementing a photo editor, where the image can be zoomed in, rotated and cropped. I am having trouble rotating a rectangular image 90° to the right and to the left. When rotating, the image does not maintain its aspect ratio and does not fill the canvas. The crop area is square shaped...
  13. EkBass

    JavaScript Ideas how i should handle this data?

    Hi. My unexperience with JS shines here like a lightbulb :D I am working with a raycaster and the "map" is in a array of arrays. I think you call it as jagged arrays. So the basic map data looks like this. let map = [ [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]...
  14. EkBass

    Trying to convert (int) for js

    Hi folks. Porting some C code here for js and im now not sure am i doing it right. The C code is as follows rx = (((int)px >> 6) << 6) + 64; Does that (int) affect only for px in this case, or does it affect to the rest of the line? Tried to google C (int) but that only leads me to pages...
  15. EkBass

    p5-2D-Sidescroller

    So, here it is. My first ever Javascript program. Used p5 for some reason here too. Anyway, simple 2D sidescroll jump around whatever. Still wondering is JS or C# the one i would like to use for my future (and prpably similar) projects. Playable game via browser here. GitHub link here. Check...
  16. 112

    JavaScript Closing fullscreen for getElementById(id)

    Hello, im new in js so please dont be hard on me. Spend more that 5 hours and still no clue. So issue is that script goes fullscreen as expected but cannot figure out how to trigger "ESC" or same button to close fullscreen. .holds-the-iframe just adds loader before iframe is loaded. <div...
  17. Servin_Laughter

    JavaScript JavaScript script that can read text that is inside of an HTML page?

    Hey! This is a revision to a previous question I asked. I want to use JavaScript to read the text that is put onto an HTML page through an IFrame element. The IFrame element is a news and updates subscription list, and when you enter the information, the screen says "Your subscription has been...
  18. 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)...
  19. 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...
  20. ⠀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...
Back
Top Bottom