0.0.1
This commit is contained in:
22
resources/[core]/esx_loadingscreen/js/index.js
Normal file
22
resources/[core]/esx_loadingscreen/js/index.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// 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.addEventListener("DOMContentLoaded", () => {
|
||||
const introTag = document.getElementById("esx_intro");
|
||||
const loopTag = document.getElementById("esx_loop");
|
||||
|
||||
introTag.onended = () => {
|
||||
introTag.style.display = "none";
|
||||
loopTag.loop = true; // true
|
||||
loopTag.play();
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user