mirror of https://github.com/sundowndev/Detank.git
update js
parent
7099cbc316
commit
4430f8f9cd
|
@ -1,6 +1,6 @@
|
||||||
function move(event) {
|
function move(event) {
|
||||||
var k = event.keyCode,
|
var k = event.keyCode,
|
||||||
chrId = document.querySelector('.block'),
|
chrId = document.querySelector('#block1'),
|
||||||
chr = {
|
chr = {
|
||||||
updown: function () {
|
updown: function () {
|
||||||
var y = parseInt(getComputedStyle(chrId).top);
|
var y = parseInt(getComputedStyle(chrId).top);
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<h1>de_tank</h1>
|
<h1>de_tank</h1>
|
||||||
</section>
|
</section>
|
||||||
<section class="map">
|
<section class="map">
|
||||||
<div class="block"></div>
|
<div id="block1" class="block"></div>
|
||||||
</section>
|
</section>
|
||||||
</body>
|
</body>
|
||||||
<script src="assets/js/script.js"></script>
|
<script src="assets/js/script.js"></script>
|
||||||
|
|
Loading…
Reference in New Issue