Welcome!

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

SignUp Now!

javascript-code

  1. Grynn

    JavaScript My React Portfolio

    Hi I'm brand new to you this site and relatively new to web dev world. I graduated from my boot camp (shout out to General Academy) in April. And I've been feeling progressing less imposter syndromeyyy as i am beginning to feel this wonderful wonderfullness about myself progressively and...
  2. H

    JavaScript how create my buttons inside the div with display grid?

    i want my button created inside the div with display grid. so you have 8 buttons in every row. its for my Javascript homework. <!DOCTYPE html> <html lang="fa" dir="rtl"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>test...
  3. D3x73r

    JavaScript Shopping cart problem -localstorage

    Hello guys, I cant find problem why my javascript isnt working. Problem is I think with localstorage, when I reload webpage content in cart-box should stay there but it only save first content-box that I added to cart, others disappear but their value like $ stay in total amount . And other...
  4. P

    JavaScript Help with Javascript code on a if else condition

    I have a wordpress page where I'm using a code snippet to introduce a condition to change the subtitle of a specific profile element that is being showed on the page.The theme I'm using uses the CMSMaster content composer where they have a profiles area where you can add profiles with...
  5. P

    JavaScript popup button on stop interval to scroll to bottom

    Hello, I have the following code below. This works for stopping the interval when the visitor scrolls up the page (the page is reverse scrolled and positioned to the bottom). This is a basic chat project I'm working on. What I'm attempting to do is have a popup button show up when the user...
  6. M

    Node.JS Code Assistance

    I'm currently working on a project where I need to implement a table filter using checkboxes, and I'm facing some challenges. I've managed to set up the basic functionality, but I'm struggling with a couple of specific requirements. I'm reaching out to the community for some guidance and...
  7. developpersoft

    JavaScript How to understand js code for plugins?

    Hi There, I have problem to understand javascript code in plugins I don't know how this works all the elements symbolized without using document.getElementById to add an HTML Elements or change it But in plugins I only find The code Like this : var ap = Object.defineProperty; var lp =...
  8. K

    JavaScript javascript fill function data from multidimensonal array

    I have some js code to make organizational chart. I made an array of id's, names, etc; I need to fill the js data array but i can't do it. This is the original code: <script> google.charts.load('current', {packages:["orgchart"]})...
  9. cno

    JavaScript Sales Data in an Array - Javascript

    I need some help please, I have a sales data for a couple of years and i want to retrieve the below information using Javascript: -The total number of months included in the dataset. - The net total amount of Profit/Losses over the entire period. - The average of the changes in Profit/Losses...
  10. SolidSnake2003

    JavaScript Adding Different Dropdown Menus

    Hello I am currently working on reviving an old fansite of mine. I have finished designing the main site elements across the whole fansite in photoshop, and have begun coding them in HTML. One of the elements I have created is a series of 3 dropdown menus for a quick navigation of the games in...
  11. ShwetankJoshi

    JavaScript Not able to delete the row from my invoice table of invoice maker website using basic JS

    Thank you! for this great content. I am making a small project of creating a invoice maker website using JS, for adding new items in invoice and deleting it i am making function with several refrence vdo's i managed to create addrow function but not able to create delete row function.also I am...
  12. 0

    JavaScript Javascript form calculation?

    Hi Guys, I need help with this calculation, im designing a form for a client that needs a MAX PRICE between two values. I'm using the javascript below but this makes each quantity 250, I need it so its a maximum of 250 Upto 24999 and then ill do another value between 25000 up to 29999 and the...
  13. K

    JavaScript Issue with textarea script?

    so im trying to create an "AUTO" WYSIWYG real-time documentation generator for VS2019 Intellisense in javascript & jquery. so i got it working, but noticed after I type "Description : " ( a keyword ) into the text box, it converts fine but THEN if i try to delete it, it keeps on adding the <b>...
  14. S

    JavaScript Getting value from a defined function variable name

    I have a function like so: var UploadMediaViewModel = (function () { const umvm = this; var blah = ""; umvm.upload = null; umvm.toProcess = []; umvm.unload = function(e) { cancel(); } umvm.canSubmit = false; umvm.submitWhenComplete = false...
  15. 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...
  16. 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) => {...
  17. 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)...
  18. 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); //...
  19. 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...
  20. 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...
Back
Top Bottom