+
+
+ 4Geeks Academy
+
+
+
+ and
+
+
+
+
diff --git a/.learn/resets/01-alert-on-click/index.js b/.learn/resets/01-alert-on-click/index.js
new file mode 100644
index 0000000..b48dd36
--- /dev/null
+++ b/.learn/resets/01-alert-on-click/index.js
@@ -0,0 +1,3 @@
+window.myClickFunction = function myClickFunction() {
+ alert("Your first function!");
+};
diff --git a/.learn/resets/02-on-click-Hello-World/index.html b/.learn/resets/02-on-click-Hello-World/index.html
new file mode 100644
index 0000000..ca7ada9
--- /dev/null
+++ b/.learn/resets/02-on-click-Hello-World/index.html
@@ -0,0 +1,12 @@
+
+
+
+
+
+ 4Geeks Academy
+
+
+
+
+
+
diff --git a/.learn/resets/02-on-click-Hello-World/index.js b/.learn/resets/02-on-click-Hello-World/index.js
new file mode 100644
index 0000000..dabc5b9
--- /dev/null
+++ b/.learn/resets/02-on-click-Hello-World/index.js
@@ -0,0 +1 @@
+// Declare your function here
diff --git a/.learn/resets/03-sum-values/index.html b/.learn/resets/03-sum-values/index.html
new file mode 100644
index 0000000..a61cdda
--- /dev/null
+++ b/.learn/resets/03-sum-values/index.html
@@ -0,0 +1,15 @@
+
+
+
+
+
+ 4Geeks Academy
+
+
+
+ + =
+
+
+
+
+
diff --git a/.learn/resets/03-sum-values/index.js b/.learn/resets/03-sum-values/index.js
new file mode 100644
index 0000000..e3cc906
--- /dev/null
+++ b/.learn/resets/03-sum-values/index.js
@@ -0,0 +1,9 @@
+// Adding the function to the window makes it globally available
+window.calculateSumListener = function() {
+ // Return the value of the input #firstNumber
+ let stringA = document.getElementById("firstNumber").value;
+ // Return the value of the input #secondNumber
+ let stringB = document.getElementById("secondNumber").value;
+ // Your code here
+
+};
diff --git a/.learn/resets/04-hide-on-click/index.html b/.learn/resets/04-hide-on-click/index.html
new file mode 100644
index 0000000..4d9de3c
--- /dev/null
+++ b/.learn/resets/04-hide-on-click/index.html
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+ 4Geeks Academy
+
+
+
+
+
+ My first div
+
+
+ My second div
+
+
+
+
+
+
diff --git a/.learn/resets/04-hide-on-click/index.js b/.learn/resets/04-hide-on-click/index.js
new file mode 100644
index 0000000..1a29c06
--- /dev/null
+++ b/.learn/resets/04-hide-on-click/index.js
@@ -0,0 +1,4 @@
+window.myEventListener = function myEventListener() {
+ // Your code here
+
+}
diff --git a/.learn/resets/04-hide-on-click/styles.css b/.learn/resets/04-hide-on-click/styles.css
new file mode 100644
index 0000000..f53502e
--- /dev/null
+++ b/.learn/resets/04-hide-on-click/styles.css
@@ -0,0 +1,6 @@
+#firstDiv {
+ background: green;
+}
+#secondDiv {
+ background: yellow;
+}
diff --git a/.learn/resets/05-the-load-event/index.html b/.learn/resets/05-the-load-event/index.html
new file mode 100644
index 0000000..609cdbc
--- /dev/null
+++ b/.learn/resets/05-the-load-event/index.html
@@ -0,0 +1,13 @@
+
+
+
+
+
+ 4Geeks Academy
+
+
+
+
Hello! Please alert "Loading finished..." when this website finally loads.
+
+
+
diff --git a/.learn/resets/05-the-load-event/index.js b/.learn/resets/05-the-load-event/index.js
new file mode 100644
index 0000000..d98d672
--- /dev/null
+++ b/.learn/resets/05-the-load-event/index.js
@@ -0,0 +1 @@
+// Your function goes here
diff --git a/.learn/resets/06-add-listener-with-js/index.html b/.learn/resets/06-add-listener-with-js/index.html
new file mode 100644
index 0000000..5d8c6c3
--- /dev/null
+++ b/.learn/resets/06-add-listener-with-js/index.html
@@ -0,0 +1,22 @@
+
+
+
+
+
+ 4Geeks Academy
+
+
+
+
+
+
+
+
diff --git a/.learn/resets/06-add-listener-with-js/index.js b/.learn/resets/06-add-listener-with-js/index.js
new file mode 100644
index 0000000..ecea46c
--- /dev/null
+++ b/.learn/resets/06-add-listener-with-js/index.js
@@ -0,0 +1,7 @@
+window.onload = function myLoadFunction() {
+ alert("The website just finished loading!");
+ // Some code here
+
+};
+
+// The listener function here
diff --git a/.learn/resets/07-count-on-click/index.html b/.learn/resets/07-count-on-click/index.html
new file mode 100644
index 0000000..f8cb7ce
--- /dev/null
+++ b/.learn/resets/07-count-on-click/index.html
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+ 4Geeks Academy
+
+
+
+
Loading...
+
+
+
+
+
diff --git a/.learn/resets/07-count-on-click/index.js b/.learn/resets/07-count-on-click/index.js
new file mode 100644
index 0000000..2fceab4
--- /dev/null
+++ b/.learn/resets/07-count-on-click/index.js
@@ -0,0 +1,20 @@
+// This is a global variable
+let counter = 0;
+
+window.onload = function loadFunction()
+{
+ // Here I set the screen to the initial value when the website is fully loaded
+ document.getElementById('screen').innerHTML = "The counter value is "+counter;
+}
+
+// Called when the user clicks
+window.increaseCounter = function increaseCounter()
+{
+ // Increase the global counter by one
+ counter++;
+ // Update the screen with the new value
+ document.getElementById('screen').innerHTML = "The counter value is "+counter;
+}
+
+// Your code here
+
diff --git a/.learn/resets/07.1-change-turn-on-click/index.html b/.learn/resets/07.1-change-turn-on-click/index.html
new file mode 100644
index 0000000..b891cd9
--- /dev/null
+++ b/.learn/resets/07.1-change-turn-on-click/index.html
@@ -0,0 +1,13 @@
+
+
+
+
+
+ 4Geeks Academy
+
+
+