ed
This commit is contained in:
parent
2fd4906414
commit
9d4f625a84
962 changed files with 36 additions and 36 deletions
13
resources/[weapons]/[Scripts]/z4-xhair/ui/index.html
Normal file
13
resources/[weapons]/[Scripts]/z4-xhair/ui/index.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<div style="width: 100vw; height: 100vh; position: fixed; top: 0; left: 0; display: flex; align-items: center; justify-content: center;">
|
||||
<div id="whatever" style="display: none; border-radius: 100%; border: 1px solid black; width: 2.5px; height: 2.5px; background-color: #D3D3D3;"></div>
|
||||
</div>
|
||||
<script>
|
||||
window.addEventListener('message', (evt) => {
|
||||
let ele = document.getElementById('whatever');
|
||||
if (evt.data === 'xhairShow') {
|
||||
ele.style.display = 'block';
|
||||
} else {
|
||||
ele.style.display = 'none';
|
||||
}
|
||||
});
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue