Example 13: Get Image Gallery Primary Slider
Get Image Gallery Primary Slider
<div style="text-align: center" class="m-1" >
<button id="fullscreenBtn" class="btn btn-outline-secondary">Full Screen</button>
</div>
<div id="root" class="m-1" ></div>
var TOKEN = "17b3353bb1892c02e3646296d6a3486e4f792ea5";
var VEHICLE = "GX66YCR1";
const library = new AosSDK.Library(TOKEN);
library.vehicle(VEHICLE).then((vehicle) => {
AosSDK.injectPrimarySlider('root', vehicle.getLargeImages(), vehicle.getMediumImages(), vehicle.getTags(), vehicle.getGalleryOptions());
}).catch((error) => {
console.log(error);
});
// Fullscreen Gallery
document.getElementById('fullscreenBtn').onclick = function(){
AosSDK.fullscreenGallery('root');
}
// To Exit Fullscreen Gallery
// AosSDK.exitFullscreenGallery('root');