This commit is contained in:
Nilsu Derinder
2023-12-06 20:50:39 +03:00
committed by GitHub
parent d0ed0f4c0b
commit 72c5df53b5

View File

@@ -47,12 +47,6 @@ if (isset($_SESSION['steamid'])) {
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script> crossorigin="anonymous"></script>
<script>
// Add JavaScript to dynamically update the span with the current wear value
document.getElementById('wear<?php echo $defindex ?>').addEventListener('input', function () {
document.getElementById('wearValue<?php echo $defindex ?>').innerText = this.value;
});
</script>
<link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="style.css">
<title>CS2 Simple Weapon Paints</title> <title>CS2 Simple Weapon Paints</title>
</head> </head>
@@ -147,6 +141,12 @@ if (isset($_SESSION['steamid'])) {
</div> </div>
</div> </div>
</div> </div>
<script>
// Add JavaScript to dynamically update the span with the current wear value
document.getElementById('wear<?php echo $defindex ?>').addEventListener('input', function () {
document.getElementById('wearValue<?php echo $defindex ?>').innerText = this.value;
});
</script>
<?php } ?> <?php } ?>
<?php } ?> <?php } ?>
</div> </div>