- تاریخ ثبتنام
- 2020-06-26
- نوشتهها
- 24,684
- راهحلها
- 27
- پسندها
- 3,278
- امتیازها
- 113
- سن
- 28
- محل سکونت
- England
- وب سایت
- xenforo.xyz
How should I be including java script files and css in a addon?
I'm aware I can just add javascript files into the zip folder manually, but surely theres an easier way.
For css files, i've been creating templates and calling them like this:
HTML:
But for javascript, i've been writing it manually in the
HTML:
I'm aware I can just add javascript files into the zip folder manually, but surely theres an easier way.
For css files, i've been creating templates and calling them like this:
HTML:
<xf:css src="public:template_name.less" />But for javascript, i've been writing it manually in the
/js folder and calling it like this:HTML:
<xf:js src="addonName/javascript_file_name.js" min="1" />
نام موضوع : Javascript & css files
