I need something that might exist in pre-built code somewhere. I need a calculator of sorts for my website. I would like a clean looking “block” instead of a big ugly chart.
Lets say I need to convey to my buyers how much stuff they need to put together a certain length of rail run. The wood and brackets fall every 4ft.
I want the calculator to have a blank for how much run they need in 1ft increments.
So they say I need 20ft of railing run and it spits out that they need 5 brackets and 4 pieces of wood for example.
I think a calculator looks better than a table or chart. Does something like this exist that I can use for my needs?
That seems to be fairly specialized - I’m not sure you would find anything out there that does exactly what you want, but depending on your coding experience, you could take one and edit it to suit your needs. Or you could build it from scratch - it doesn’t seem to be very complicated. If you don’t feel up to the task, it would be a great learning experience to take a stab at it, and then ask here whenever you get stuck.
In terns of the appearance, you can always adjust the CSS afterwards. That doesn’t really affect the functionality of the calculator.
By the way, what did you find when you Googled for some calculator code?
The goal is a bit different but the idea is the same. Just with less criteria.
Are they called calculators or builders?
I am a coding newbie. I push myself to learn more so I ask a lot of questions. Pre-built websites just do not work haha you end up having to code at some point.
As @WebMachine said, you’re unlikely to find something that specifically meets your needs. This wouldn’t be hard to build in JS. I would suggest taking this opportunity to learn JS.
So it would need to say what lengths of rail and the correct number of brackets. What you made looks beautiful. If only it could populate this data here.
What is the connection between these…
3’ System: (1) 3’ Bar and (2) Brackets
4’ System: (1) 4’ Bar and (2) Brackets
5’ System: (1) 5’ Bar and (2) Brackets
etc etc
Is there a way for the calculator to pull info based on data given?
4ft = a 4ft barre + 2 brackets and so on?
This is how it looks when a long run is installed.
We have sizes from 3ft to 40ft in more than I listed above. In some cases we go in 1ft increments. I think we offer 28 sizes total.
I am trying to find a way to tell you how the runs work. Basically not every 4ft on all systems. It I guess is based on our wood as well. I know for sure it is based on the chart above as to how many each run gets. If we can work out something where the calculator shows that data to the customer it would be cool.
Even if the calculator showed the data similar to how I have it. Just in the wood blank and the bracket blank.
I guess it would depend on how expensive the brackets are and how strict the regulations are. My logic was based on “slightly more safe than required” instead of “a chance of slightly less safe than required”.
I don’t know if visitors would like to see many comparisons in a table, or if they might consider a table “too much info” and prefer needing a form submit.
But it seems something like
case (frail_wood)
space_between_brackets = 3
case (avg_wood)
space_between_brackets = 4
case (sturdy_wood)
space_between_brackets = 5
etc. could work. Similar for bracket cost if that’s a factor
case (nickel_plated)
cost = 2
It’s just a matter of figuring out all the pieces and all the possible ways they can fit together.
I think if it were me, rather than a massive table I’d go with a “compare these options to these options” form.
(of course if they’re nailed into wallboard instead of anchor bolted to studs … but I digress )
Yeah the calculator is something I thought would make it look more professional. We have used charts before and while they work it is kinda like word vomit. They really only need to see the info on the size they want.