Hi, I'm legit stuck.
https://gist.github.com/dt1/502eeeda...f4567c2bfb2ab6
That file is self-containing, so you should be able to copy/paste and use it raw. Just using CDNs.
the form works like this:
Top: the top label. Doesn't really affect anything.
Code: the UPC, name, etc.
Qty: how many barcodes you'd like to generate. you can generate a mix of barcodes (that was a headache to get right, lol).
The issue:
On the first run, everything works fine. the sizing looks great, everything is centered, etc.
Printing works just fine as well.
The problem is after the page refresh. The "top" words come in at normal size, but the barcodes end up super small.
This is what happens on the first run (and what I would like to have happen each time):
This is what happens after run 2...n:
I thought this was a caching problem. Tried it with JS and altering the headers, etc, but nothing is working (still in the code).
So, something is wrong here and I don't know what. Feel free to call my JS trash. No shame in admitting it isn't excellent.