// Copyright (c) Jérémie N'gadi
//
// All rights reserved.
//
// Even if 'All rights reserved' is very clear :
//
//   You shall not use any piece of this software in a commercial product / service
//   You shall not resell this software
//   You shall not provide any facility to install this particular software in a commercial product / service
//   If you redistribute this software, you must link to ORIGINAL repository at https://github.com/esx-framework/esx-reborn
//   This copyright should appear in every part of the project code

$(document).ready(function(){
    const introTag = document.getElementById('esx_intro');
    const loopTag = document.getElementById('esx_loop');

    introTag.onended = (event) => {
        introTag.style.display = "none";
        loopTag.loop = true; // true
        loopTag.play()
      };
})
