update js

master
sundowndev 2017-12-08 21:38:23 +01:00
parent 7099cbc316
commit 4430f8f9cd
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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>