1.0.1 • Published 3 years ago
neokyo-banner.js v1.0.1
HostFileForJsDelivr
Installation
Add the next ligne to your HTML file.
<script src="https://cdn.jsdelivr.net/gh/GuillaumeElisabeth/HostFileForJsDelivr/NeokyoBanner.js"></script>
How to use
To create the homepage banner, you need to add this in your HTML file
<div id="neokyoBannerId" style="width: 50%;">
<script type="application/javascript">new NeokyoBanner().GetNeokyoHomepageBanner('neokyoBannerId');</script>
</div>
To create the homepage banner, you need this in you HTML file
<div id="neokyoBannerId" style="width: 50%;">
<script type="application/javascript">new NeokyoBanner().GetNeokyoProductPageBanner('neokyoBannerItemId');</script>
</div>
Important
If you you don't have access or didn't get the update from a file you push on git and try to get with jsdelivr, you have to wait 24h because they have a 24h cache duration.
You need to set a Width on your div at least at 25%. For now I don't manage small div posting.
License
Guillaume ELISABETH