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