-
Notifications
You must be signed in to change notification settings - Fork 0
Using HCJE assets
Steve Butler edited this page Aug 28, 2026
·
1 revision
The HCJE includes a number of images that can be used for buttons and which you are free to use in your own project. However, the location of the HCJE asset files will change depending on whether you are running directly from the source code or from a built version.
Running from source
index.html
+ html-css-js-engine
+ source
+ hcje
+ assets
Running from built site
index.html
+ _hcje
_assets
Because of this movement, you should use the hjceLib.utils.getHcjeAssetHref method to get the correct location at run time. So if you want the href for a button named buttons_ok.png in the assets folder of the HCJE:
-
Do not use
./html-css-js-engine/source/hcje/assets/buttons_ok.png. -
Do not use
./_hcje/assets/buttons_ok.png. -
Use
hcjeLib.utils.getHcjeAssetHref('buttons_ok.png').