I’m trying to get a financial calculator running on one of our LP’s & the Script Manager is giving me fits.
The original source, invokes external JS files through < script > tags because the scripts are huge & cumbersome at best to run inline.
The problem I’m having is, when I drop the JS for the external files into the script manager, it’s reporting that one of them isn’t valid JS.
I’ve added the open/close < script ></ script > tags per the Unbounce Script Manager instructions & it looks like it’s detecting about 1/2 of the script as valid - but 1/2 way through the script it greys out & when saved, reports that the script isn’t valid.
When I run the demo locally, in a code editor or through a validator - there’s 0 reported problems, so I’m not sure what the issue is as far as the validation error goes?
Honestly, this would just be so much easier if UB allowed for folder structures to be created & external JS files to be uploaded & called via <script src= rather than trying to run them all inline but that’s for another thread.
Any insights as to why this is being reported as invalid, would be appreciated:
Filename: KJE.js
I’ve had to link to the JS file instead of pasting in ‘pre-formatted’ mode, due to character limits:
https://drive.google.com/file/d/1oXQw7YJd5fdAtZxwtO5LMi8p7kF4da36/view?usp=sharing