-
Notifications
You must be signed in to change notification settings - Fork 0
/
sumar.php
90 lines (90 loc) · 3.07 KB
/
sumar.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sudoku Matemático</title>
<link rel="stylesheet" href="estilo_suma.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<style type="text/css">
</style>
</head>
<header>
<?php include "header.php"; ?>
</header>
<body style="background:<?=$backgrounds;?>;">
<br>
<div class="container">
<h1>Sumar</h1>
<table>
<tr>
<td class="contiene">26</td>
<td class="contiene">+</td>
<td class="no-contiene" id="0" ondrop="drop(event)" ondragover="allowDrop(event)"></td>
<td class="contiene">=</td>
<td class="contiene">42</td>
</tr>
<tr>
<td class="contiene">+</td>
<td></td>
<td class="contiene">+</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="no-contiene" id="1" ondrop="drop(event)" ondragover="allowDrop(event)"></td>
<td class="contiene">+</td>
<td class="no-contiene" id="2" ondrop="drop(event)" ondragover="allowDrop(event)"></td>
<td class="contiene">=</td>
<td class="contiene">10</td>
</tr>
<tr>
<td class="contiene">=</td>
<td></td>
<td class="contiene">=</td>
<td></td>
<td></td>
</tr>
<tr>
<td class="contiene">35</td>
<td class="contiene">+</td>
<td class="no-contiene" id="3" ondrop="drop(event)" ondragover="allowDrop(event)"></td>
<td class="contiene">=</td>
<td class="no-contiene" id="4" ondrop="drop(event)" ondragover="allowDrop(event)"></td>
</tr>
</table>
<br>
<div class="container-alternatives">
<div class="box" draggable="true" ondragstart="drag(event)" id="a">52</div>
<div class="box" draggable="true" ondragstart="drag(event)" id="b">1</div>
<div class="box" draggable="true" ondragstart="drag(event)" id="c">17</div>
<div class="box" draggable="true" ondragstart="drag(event)" id="d">16</div>
<div class="box" draggable="true" ondragstart="drag(event)" id="e">9</div>
</div>
<br>
<div class="frame">
<div class="time" id="time">00:00:00.000</div>
<div class="button-container">
<div class="btn" onclick="start()">
<i class="fas fa-play"></i>
</div>
<div class="btn" onclick="pause()">
<i class="fas fa-pause"></i>
</div>
<div class="btn" onclick="restart()">
<i class="fas fa-undo-alt"></i>
</div>
</div>
</div>
<br>
<div class="resultado">
<h2>Resuelve el sudoku y verás aqui el resultado</h2>
</div>
</div>
<script src="sumar.js"></script>
<script src="time.js"></script>
</body>
</html>