You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constTemplateChapter=`... my fancy markup ...`constTemplateIcon=`...`constTemplatePlayer=`...`// or with an import (a bit cleaner)import{TemplateChapter,TemplateIcon,TemplatePlayer}from'./shikwasa-templates.js';constplayer=newShikwasa({container: ()=>document.querySelector('.shikwasa-player'),tplChapter: TemplateChapter,tplIcon: TemplateIcon,tplPlayer: TemplatePlayer,audio: {title: '...',artist: '...',cover: '...',src: '...',},});
Sometimes it is necessary to change the icons or change the structure of the layout fundamentally, which would be easy to do in this case.
The text was updated successfully, but these errors were encountered:
It would be a very handy feature to make the player templates customizable.
The player is based on templates already:
https://github.com/jessuni/shikwasa/tree/main/src/templates
But it's referenced internally at the moment.
I could imagine the following:
Sometimes it is necessary to change the icons or change the structure of the layout fundamentally, which would be easy to do in this case.
The text was updated successfully, but these errors were encountered: