diff --git a/.DS_Store b/.DS_Store index 19f35c2d4..5b2a16721 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/Week1/.DS_Store b/Week1/.DS_Store new file mode 100644 index 000000000..439e20440 Binary files /dev/null and b/Week1/.DS_Store differ diff --git a/Week1/homework/.DS_Store b/Week1/homework/.DS_Store new file mode 100644 index 000000000..f2f321350 Binary files /dev/null and b/Week1/homework/.DS_Store differ diff --git a/Week1/homework/issue-tracker/index.html b/Week1/homework/issue-tracker/index.html new file mode 100644 index 000000000..aba3003db --- /dev/null +++ b/Week1/homework/issue-tracker/index.html @@ -0,0 +1,47 @@ + + +
+ + + + + + + +© Michalis Ligopsychakis
+ID: " + (new Date()).getTime() + "
" + + "Open
" + + "" + " " + sev.value + "" + + " " + assign.value + "
" + + "" + + ""; + cardsPlace.appendChild(addCard); + + //clear the inputs when click add button + desc.value = ""; + sev.value = "Low"; + assign.value = ""; + + //change open to close when close buttton onclick + let close = document.getElementById("close"); + close.id = "close" + num; //change the id in order to every close button has a different id + let status = document.getElementById("status"); + status.id = "status" + num; //change the id in order to every status has a different id + + function closeFunc(statusId){ + let status = document.getElementById(statusId); + status.innerText = "Closed"; + } + close.addEventListener("click",function(){closeFunc(status.id)}); + + //delete the issue card when delete button onclick + let del = document.getElementById("del"); + del.id = "del" + num; //change the id in order to every delete button has a different id + del.addEventListener("click",function(){ + addCard.remove(); + }) +} + +add.addEventListener("click" , function(){assignmentCard(description , severity , assignedTo, num++)}); diff --git a/Week1/homework/js-exercises/.DS_Store b/Week1/homework/js-exercises/.DS_Store new file mode 100644 index 000000000..79845d99a Binary files /dev/null and b/Week1/homework/js-exercises/.DS_Store differ diff --git a/Week1/homework/js-exercises/about-me.js b/Week1/homework/js-exercises/about-me.js new file mode 100644 index 000000000..e87cd6e8c --- /dev/null +++ b/Week1/homework/js-exercises/about-me.js @@ -0,0 +1,24 @@ +const body = document.querySelector("body"); + +//change the font-family +body.style.fontFamily = "Arial, sans-serif"; + +//replace the spans with my infos +let spans = document.querySelectorAll("span"); +let infos = ["Mike","Pasta","Athens"]; +for (let i = 0; i < spans.length; i++){ + spans[i].replaceWith(infos[i]); +} + +//change className to li +let lis = document.querySelectorAll("li"); +for (let i = 0; i < lis.length; i++){ + lis[i].className = "list-item"; +} + +//append img of me +const img = document.createElement("img"); +img.setAttribute("src","https://png.pngtree.com/png-clipart/20190516/original/pngtree-boy-with-sunglasses-cool-boy-white-shirt-black-sunglasses-png-image_3802214.jpg"); +img.style.width = "200px"; +body.appendChild(img); + diff --git a/Week1/homework/js-exercises/about_me.html b/Week1/homework/js-exercises/about_me.html new file mode 100644 index 000000000..97672e505 --- /dev/null +++ b/Week1/homework/js-exercises/about_me.html @@ -0,0 +1,21 @@ + + + + +
+
+
+
+
\ No newline at end of file
diff --git a/Week1/homework/js-exercises/hijackGoogleLogo.js b/Week1/homework/js-exercises/hijackGoogleLogo.js
new file mode 100644
index 000000000..ba906d8c7
--- /dev/null
+++ b/Week1/homework/js-exercises/hijackGoogleLogo.js
@@ -0,0 +1,5 @@
+//replace the Google Logo
+function hijackGoogleLogo(){
+ const google = document.getElementById("hplogo");
+ google.src = "https://www.hackyourfuture.dk/static/logo-dark.svg";
+}
\ No newline at end of file
diff --git a/Week1/homework/js-exercises/showCurrentTime.js b/Week1/homework/js-exercises/showCurrentTime.js
new file mode 100644
index 000000000..77f2ada51
--- /dev/null
+++ b/Week1/homework/js-exercises/showCurrentTime.js
@@ -0,0 +1,23 @@
+//append a paragraph element
+const body = document.querySelector("body");
+let para = document.createElement("p");
+body.appendChild(para);
+
+//change the style
+para.style.marginLeft = "auto";
+para.style.marginRight = "auto";
+para.style.marginTop = "15%";
+para.style.textAlign = "center";
+para.style.fontSize = "8em";
+para.style.fontFamily = "sans-serif";
+para.style.color = "white";
+body.style.backgroundColor = "#60646e";
+
+//run the time
+function timeTeller(){
+ today = new Date();
+ let time = today.getHours() + " : " + today.getMinutes() + " : " + today.getSeconds();
+ para.innerText = time;
+}
+
+let changeTime = setInterval(timeTeller,1000);
diff --git a/Week1/homework/js-exercises/time.html b/Week1/homework/js-exercises/time.html
new file mode 100644
index 000000000..808afda64
--- /dev/null
+++ b/Week1/homework/js-exercises/time.html
@@ -0,0 +1,9 @@
+
+
+
+ Random quote... Click the button to get wiser!
+- Michalis Ligopsychakis
+Paper - Rock - Scissors Game
+ +00 : 00
+MyBookList
+| Title | +Author | +ISBN | ++ + + |
|---|
$ 0.00
+each
+