JS and CSS Files from gstatic.com

Q

How to Install JS and CSS Files from gstatic.com on local Web server?

✍: FYIcenter.com

A

If you want run Form Tools entirely on a local computer to avoid any potential time out issue mentioned in the previous tutorial. you need to follow this tutorial to download JS and CSS files from gstatic.com and install them locally.

1. Make a new directory on the Web server called gstatic:

fyicenter$ mkdir /Library/WebServer/Documents/formtools/vendor/gstatic

2. Download and save them to the above directory with their path name:

https://www.gstatic.com/charts/loader.js
https://www.gstatic.com/charts/46.2/loader.js
https://www.gstatic.com/charts/46.2/js/jsapi_compiled_corechart_module.js
https://www.gstatic.com/charts/46.2/js/jsapi_compiled_ui_module.js
https://www.gstatic.com/charts/46.2/js/jsapi_compiled_default_module.js
https://www.gstatic.com/charts/46.2/js/jsapi_compiled_format_module.js
https://www.gstatic.com/charts/46.2/css/util/util.css
https://www.gstatic.com/charts/46.2/css/core/tooltip.css

3. Replace "https://www.gstatic.com/" with "/formtools/vendor/gstatic/" in ./modules/data_visualization/code/Module.class.php and ./modules/data_visualization/code/Visualizations.class.php and

4. Replace "https://www.gstatic.com/" with "/formtools/vendor/gstatic/" in ./vendor/gstatic/charts/loader.js and ./vendor/gstatic/charts/46.2/loader.js

If you see more files from gstatic.com, you need to continue to fix them.

 

⇒ Creating First Form - Hello Form

⇐ Form Tools Page Timed Out

⇑ General Questions on Form Tools

⇑⇑ Form Tools - Frequently Asked Questions

2020-01-21, 1789🔥, 0💬