Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

javascript calculation

  1. yumedoll

    JavaScript drawImage on a canvas in the position where an element has been dropped into it?

    I'm making a game about baking a decorating a cake using Interact.js. Everything is done so far but I'm trying to figure out how to make it so the image that is dragged onto the cake (which has a canvas in it's div) will be printed on the canvas at the exact position it was dropped. The idea...
  2. yumedoll

    JavaScript Interact.js: Snap rotation to certain angles?

    I have this script I picked off of a codepen interact('.drag-rotate') .draggable({ onstart: function (event) { const element = event.target; const rect = element.getBoundingClientRect(); // store the center as the element has css `transform-origin: center center`...
  3. 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...
  4. 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...
Back
Top Bottom