diff --git a/add.html b/add.html index 55113ea..58b3ffb 100644 --- a/add.html +++ b/add.html @@ -11,20 +11,11 @@ Home
-

Digite a Reposta

-
-
-
+
-
- -
- -
- - -
- - +
+
+
+
+ +
diff --git a/divisao.html b/divisao.html deleted file mode 100644 index c6b1816..0000000 --- a/divisao.html +++ /dev/null @@ -1,27 +0,0 @@ - - - - - Math - Mult - - - - -
- Home -
-
-

Digite a Reposta

-
-
-
/
-
- -
- -
- - -
- - \ No newline at end of file diff --git a/index.html b/index.html index c16bfc9..36d57d7 100644 --- a/index.html +++ b/index.html @@ -7,16 +7,9 @@
- Game Math + Math Games
- -
-

Choose One

-
-
- -
+
@@ -27,14 +20,8 @@

Choose One

x
- /
+ /
-
-

Diretrizes

-

Lorem ipsum dolor sit amet consectetur adipisicing elit. Et ut earum sequi? Quod quisquam quaerat corrupti, animi facilis ab obcaecati autem tempora dicta placeat pariatur earum ducimus. Laboriosam, exercitationem est.

-
-

By Jone Bulande

-
diff --git a/js/app.js b/js/app.js index ec990c4..db0330c 100644 --- a/js/app.js +++ b/js/app.js @@ -24,17 +24,10 @@ function resetar() { document.getElementById("n1").innerHTML = alt1; document.getElementById("n2").innerHTML = alt2; } -function resetardivisao() { - alt1 = Math.floor((Math.random() * 12))+1; - alt2 = Math.floor((Math.random() * 10 ))+1; - document.getElementById("n3").value = ""; - document.getElementById("n1").innerHTML = alt1*alt2; - document.getElementById("n2").innerHTML = alt2; -} /********************************************************************/ /********************************| subtração |**********************************/ /********************************************************************/ -function sub() { +function sub(argument) { var n3 = document.getElementById('n3').value; if (n3 != "") { var n1 = Number(document.getElementById('n1').innerHTML); @@ -53,7 +46,7 @@ function sub() { /********************************************************************/ /********************************| multiplicação |**********************************/ /********************************************************************/ -function mult() { +function mult(argument) { var n3 = document.getElementById('n3').value; if (n3 != "") { var n1 = Number(document.getElementById('n1').innerHTML); @@ -69,22 +62,3 @@ function mult() { resetar(); } } -/********************************************************************/ -/********************************| divisão |**********************************/ -/********************************************************************/ -function divisao() { - var n3 = document.getElementById('n3').value; - if (n3 != "") { - var n1 = Number(document.getElementById('n1').innerHTML); - var n2 = Number(document.getElementById('n2').innerHTML); - if((n1/n2) == n3){ - alert("ACERTOU!"); - }else{ - alert("ERROU!"); - } - resetardivisao(); - }else{ - alert("Preencha o campo") - resetardivisao(); - } -} diff --git a/mult.html b/mult.html index d1bb8bf..32226ff 100644 --- a/mult.html +++ b/mult.html @@ -11,17 +11,11 @@ Home
-

Digite a Reposta

-
-
-
X
-
- -
- -
- - -
+
+
X
+
+ + +
\ No newline at end of file diff --git a/sub.html b/sub.html index 2864235..d0ca344 100644 --- a/sub.html +++ b/sub.html @@ -11,17 +11,11 @@ Home
-

Digite a Reposta

-
-
-
-
-
- -
- -
- - -
+
+
-
+
+ + +