forked from Simnation/Main
ed
This commit is contained in:
parent
dfccd319c6
commit
797e88f682
134 changed files with 2785 additions and 0 deletions
14
resources/[inventory]/cfx-mxc-vendingmachines/dui/script.js
Normal file
14
resources/[inventory]/cfx-mxc-vendingmachines/dui/script.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
window.onload = function() {
|
||||
let code = document.getElementsByClassName("text")[0]
|
||||
|
||||
window.addEventListener("message", (e) => {
|
||||
let {data} = e;
|
||||
|
||||
switch (data.action) {
|
||||
case "update":
|
||||
code.innerText = data.code
|
||||
break
|
||||
|
||||
}
|
||||
})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue