Blame view

html/Generateur/Menus/Func1/form_func1.php 558 Bytes
c825216f   lwadbled   feat(main.php): R...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  <!DOCTYPE html>
  <html>
  	<form method="post" action="main.php">
  		<input type="button" id="func1" name="func1" class="func-button" value="" onclick="this.form.submit()"/>
  		<input type="hidden" id="func1" name="func1" value="FUNC1" class="btn-outline-danger"/>
  	</form>
  	<script type='text/javascript'>
  		var elem = document.getElementById('cam<?php echo $i ?>');
  		var pos = elem.getBoundingClientRect();
  		var btn = document.getElementById('func1');
  		btn.style = "top : "+pos.bottom+"px; left : "+pos.x+"px";
  		console.log(pos.bottom);	
  	</script>
  </html>