diff --git a/javascript/lotto.zip b/javascript/lotto.zip
new file mode 100644
index 0000000..0dfb152
Binary files /dev/null and b/javascript/lotto.zip differ
diff --git a/javascript/lotto/index.html b/javascript/lotto/index.html
new file mode 100644
index 0000000..ea2191b
--- /dev/null
+++ b/javascript/lotto/index.html
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+ Lotto
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/javascript/lotto/script.js b/javascript/lotto/script.js
new file mode 100644
index 0000000..86c9fb9
--- /dev/null
+++ b/javascript/lotto/script.js
@@ -0,0 +1,48 @@
+let szamok = "";
+let valasztott = Array(0,0,0,0,0);
+let index = 0;
+
+function szam(element){
+ //document.getElementById("eredmeny").innerHTML = element.innerText;
+ //szamok += element.innerText;
+ valasztott[index++] = (parseInt(element.innerText));
+ for (let index = 0; index < valasztott.length; index++) {
+ document.getElementById("eredmeny").innerText += " " + valasztott[index] + " ";
+ }
+ document.getElementById("eredmeny").innerHTML += "
"
+}
+
+function sorsolas(){
+ let eredmenyek = Array(5);
+ for (let i = 0; i < eredmenyek.length; i++) {
+ eredmenyek[i] = Math.floor(Math.random() * 90) + 1;
+ document.getElementById("sorsolt").innerText += " " + eredmenyek[i] + " ";
+ }
+
+ let talalatok = 0;
+
+ for (let i = 0; i < eredmenyek.length; i++) {
+ for (let j = 0; j < valasztott.length; j++) {
+ if(eredmenyek[i] == valasztott[j]){
+ talalatok++;
+ }
+ }
+ }
+
+ document.getElementById("eredmeny2").innerText = "Találatok száma: " + talalatok;
+}
+
+function gombLetrehozas(){
+ let button;
+
+ for(let i = 1; i < 91; i++){
+ button = document.createElement("button");
+ button.setAttribute("id", "gomb"+i);
+ button.setAttribute("value", i);
+ button.setAttribute("onclick", "szam(this)");
+ let text = document.createTextNode(i);
+ button.appendChild(text);
+ let eredmeny = document.getElementById("eredmeny");
+ document.body.insertBefore(button, eredmeny);
+ }
+}
\ No newline at end of file
diff --git a/javascript/szamok.zip b/javascript/szamok.zip
new file mode 100644
index 0000000..61f33a0
Binary files /dev/null and b/javascript/szamok.zip differ
diff --git a/javascript/tutorial oldalak/index.html b/javascript/tutorial oldalak/index.html
new file mode 100644
index 0000000..1787f03
--- /dev/null
+++ b/javascript/tutorial oldalak/index.html
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+ Tutorial oldalak
+
+
+
+ Mit szeretnél tanulni?
+
+
+
+
+
+
\ No newline at end of file
diff --git a/javascript/tutorial oldalak/script.js b/javascript/tutorial oldalak/script.js
new file mode 100644
index 0000000..eeb4d0e
--- /dev/null
+++ b/javascript/tutorial oldalak/script.js
@@ -0,0 +1,56 @@
+"use sctrict"
+//adatok
+tutorial_opciok = ["html", "css", "javascript", "c#", "php"];
+
+let html = {
+ links: ["https://www.w3schools.com/html/default.asp", "https://html.com","https://www.codecademy.com"],
+ names: ["w3schools", "html.com", "codeacademy"]
+};
+
+function navOpciokLetrehozas(){
+ let option;
+
+ for(let i = 0; i < tutorial_opciok.length; i++){
+ option = document.createElement("li");
+ option.setAttribute("id", tutorial_opciok[i]+"-item");
+ let button = document.createElement("button");
+ button.setAttribute("onclick", "fuggvenyAmiLetrehozzaAdiveket()");
+ /*ha rakkatintok a gombra meghivja a fuggvenyt ami letrehozza a
+ megfelelo diveket a linkekhez es torli a mar letrehozott diveket
+ ha nincs meg letrehozva egy sem azt is vegye figyelembe
+ */
+ option.appendChild(button);
+ let text = document.createTextNode(tutorial_opciok[i]);
+ button.appendChild(text);
+ let optionlist = document.getElementById("optionlist");
+ optionlist.appendChild(option);
+ console.log(tutorial_opciok + " list item created");
+ }
+ console.log("Divek letrehozasa");
+ divLetrehozas();
+}
+
+function divLetrehozas(){
+ let option;
+ let index = 0;
+
+ for(let i = 0; i < 1; i++){ //vissza irni tutorial opciok lengtre ||teszteles miatt atirva
+ option = document.createElement("div");
+ option.setAttribute("class", tutorial_opciok[i]); //legorgeteshez a listabol
+ for(let j = 0; j < html.links.length; j++){
+ let div = document.createElement("div");
+ div.setAttribute("id", html.names[index]);
+ let link = document.createElement("a");
+ link.setAttribute("href", html.links[index]);
+ link.setAttribute("target", "_blank");
+ div.appendChild(link);
+ let text = document.createTextNode(html.names[index]);
+ link.appendChild(text);
+ option.appendChild(div);
+ index++;
+ }
+ let main_div = document.getElementById("nyelvek");
+ main_div.appendChild(option);
+ index = 0;
+ }
+}
\ No newline at end of file
diff --git a/javascript/tutorial oldalak/style.css b/javascript/tutorial oldalak/style.css
new file mode 100644
index 0000000..0e61e15
--- /dev/null
+++ b/javascript/tutorial oldalak/style.css
@@ -0,0 +1,51 @@
+body{
+ margin: 5%;
+ background-color: rgb(53, 53, 61);
+ color: aliceblue;
+}
+
+li{
+ float: left;
+ margin: 5%;
+ padding: 1.3%;
+ background-color: white;
+ font-size: larger;
+ border: 1px solid black;
+ border-radius: 10%;
+}
+li a{
+ color: rgb(53, 53, 61);
+}
+
+ul{
+ list-style-type: none;
+ margin-left: 3%;
+ margin-right: auto;
+}
+
+a:link {
+ text-decoration: none;
+}
+
+a:visited {
+ text-decoration: none;
+}
+
+a:hover {
+ text-decoration: underline;
+}
+
+a:active {
+ text-decoration: underline;
+}
+
+.html div a{
+ color: white;
+ font-size: larger;
+ font-weight: 600;
+}
+
+button{
+ border: none;
+ background-color: white;
+}
\ No newline at end of file