From afd855013ac3a3a563f26acde92e9adef184587d Mon Sep 17 00:00:00 2001 From: KidiIT <146373396+KidiIT@users.noreply.github.com> Date: Sun, 17 Dec 2023 01:40:41 +0100 Subject: [PATCH 1/6] Update README.md Co-Authored-By: KIDI'S-TECH <146373396+kidiit@users.noreply.github.com> --- README.md | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 51475ad..3438a9e 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,43 @@ # Clearing SetTimeout with JavaScript To begin with, I want to start by thanking everyone for the massive review and love on my works. your reviews do motivate me to develop and solve more tremendous works with JavaScript and some other awaiting programming languages. however, lets get to the wonderful knowledge and experience I'm going to share with the community today. - -Futhermore,the following will explain and give you an indepth understanding and knowledge about this project and how to use it at your various places of work. + Futhermore,the following will explain and give you an indepth understanding about this project and how to use it at your various places of work. How to use and the purpose of this project: + 1: This project was intensively developed with the motive of ensuring prevention and improvement of proactive security software for the protection of an organization infrastructure. -2:Before rolling on the real deal, an indepth knowledge of html,css and Javascript is needed to be able to understand how to clear settimeout funtion with Javascript because it's kinda tricky if this is your first time here. +2: Before rolling on the real deal, an indepth knowledge of html,css and Javascript is needed to be able to understand how to clear settimeout funtion with Javascript because it's kinda tricky if this is your first time here. 3: First thing first, make sure you've created or will create a nice template on your html file to be able to fit in on this project. -4: After which, link your Js.file with your html file. then use an attribute selector to make it more easier for you to get your elements to your Js.file at once. as seen on my time.js file. moreover, if you're new to programming then you've nothing to worry about because I'll stick with you throughout this project or problem solving because it's a very tricky one to work on alone. so stay tuned for more updates on what to do next. +4: After which, link your Js.file with your html file. then use an attribute selector to make it more easier for you to get your elements to your Js.file at once. as seen on my time.js file. moreover, if you're new in programming then you've nothing to worry about because I'll stick with you throughout this project or problem solving because it's a very tricky one to work on alone. this will automatically lead us to the 5th step. + +5: in addition, the fifth step should be an easy one for everyone. after you must've selected the required element from your html file. then create a constant variable by using the word "LET" and assign a value to it. remember assigning a value at this point depends on how and when you want the security protocol or the settimeout to execute on your program. as seen on my time.js, I used 200 as my value and it's applicable on your end if you wish. + +6: the next step is where a reaquired function timer() was created. don't worry if you don't know how to create a function in Javascript, you're 100% free to access and use my work template. on that note, the timer function will execute whenever the initial function is been called outside the gobal function. don't get afraid yet alright hahaha!. alright, A global function is a function that is defined outside of a class or struct and can be accessed from anywhere in the program. after which assign your input element.innerHTML = time. + +7: in this step, you'll create another constant veriable which will be assign to setinterval function and set the time you want as a timer. it's usally caculated in sec which is 1000 = 1sec. haven't understood how to assign and store the setinterval function to a varibale which I named as timing on my time.js file. + +8: The setTimeout is a function method which will perform the timeout task and clear the time you set on your initial variable as seen on my time.js mine was set as 200. and these can only be done once so be careful when setting your varibale. + +9: on the next, create a settimeout function after or on the next line of your code and inside your function, use the key word "clearTimeout(timing)" to store the veriable you assign to the setInterval function which is "timing" on my end. + +10: lastly, you can clear the timer function by using assignment operator mutiply(*), by mutiplying the variable time(value) which 200 * 1000(timer) to be able to iterate and perform its expected function at the right time. I presumed that we must've assimilated alot today. + +Just a recap for quick understanding, to solve this problem you need two responsive functions which are the setinterval function that take care of the timer while the settimeout function is responsible to execute any function for clearing of the time that's been assign by the programmer at the initial stage. + +Furthermore, In reference to develop a proactive security software that will be used to protect an organization infrastructure. this is where the knowledge of this project will be appplicable and used. + +for instance, If an entry-level cybersecurity analyst personnel is been assign a task to develop a proactive software that will protect the organization from their potential threats, risks and vulnerabilities.that been said, the use of the setinterval function to set a timer and the SetTimeout function to clear the time of which the program will execute its functionality on the software will be very effective and essential in validating and creating a software that will protect the financial aspect of an organization, by detecting and clearing any found threats, risks and vulnerabilities that will harm the security standard of an organization. Most importantly, It'll protect the company's reputation by making them to meet up with the regulatory policy in cybersecurity. also,it can help to prevent and protect the organization from any potential threats or risks from happening at the first place. if deployed intensively with well stated algorithms and functions when developing your software. + + + + + + + + + From 023933550c276b52033ab81fd707d6abd1a87e64 Mon Sep 17 00:00:00 2001 From: KIDI'S-TECH <146373396+KidiIT@users.noreply.github.com> Date: Mon, 1 Jan 2024 14:43:47 +0100 Subject: [PATCH 2/6] Revert "Update issue templates" --- .github/ISSUE_TEMPLATE/bug_report.md | 38 ---------------------------- .github/ISSUE_TEMPLATE/custom.md | 10 -------- 2 files changed, 48 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md delete mode 100644 .github/ISSUE_TEMPLATE/custom.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index dd84ea7..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: '' -labels: '' -assignees: '' - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Desktop (please complete the following information):** - - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Version [e.g. 22] - -**Smartphone (please complete the following information):** - - Device: [e.g. iPhone6] - - OS: [e.g. iOS8.1] - - Browser [e.g. stock browser, safari] - - Version [e.g. 22] - -**Additional context** -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/custom.md b/.github/ISSUE_TEMPLATE/custom.md deleted file mode 100644 index 48d5f81..0000000 --- a/.github/ISSUE_TEMPLATE/custom.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: Custom issue template -about: Describe this issue template's purpose here. -title: '' -labels: '' -assignees: '' - ---- - - From a2a9f10f0aeb97c245df866b84b219364be4f9f1 Mon Sep 17 00:00:00 2001 From: KIDI'S-TECH <146373396+KidiIT@users.noreply.github.com> Date: Thu, 4 Jan 2024 01:46:54 +0100 Subject: [PATCH 3/6] Update dependabot.yml Signed-off-by: KIDI'S-TECH <146373396+KidiIT@users.noreply.github.com> --- .github/dependabot.yml | 36 +++++++++++------------------------- 1 file changed, 11 insertions(+), 25 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f575ec7..9e1a87f 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,34 +1,20 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - -# `dependabot.yml` file with updates -# disabled for Docker and limited for npm +# Basic `dependabot.yml` file with +# minimum configuration for two package managers version: 2 updates: - # Configuration for Dockerfile - - package-ecosystem: "docker" + # Enable version updates for npm + - package-ecosystem: "npm" + # Look for `package.json` and `lock` files in the `root` directory directory: "/" + # Check the npm registry for updates every day (weekdays) schedule: - interval: "weekly" - # Disable all pull requests for Docker dependencies - open-pull-requests-limit: 0 + interval: "daily" - # Configuration for npm - - package-ecosystem: "npm" + # Enable version updates for Docker + - package-ecosystem: "docker" + # Look for a `Dockerfile` in the `root` directory directory: "/" + # Check for updates once a week schedule: interval: "weekly" - ignore: - # Ignore updates to packages that start with 'aws' - # Wildcards match zero or more arbitrary characters - - dependency-name: "aws*" - # Ignore some updates to the 'express' package - - dependency-name: "express" - # Ignore only new versions for 4.x and 5.x - versions: ["4.x", "5.x"] - # For all packages, ignore all patch updates - - dependency-name: "*" - update-types: ["version-update:semver-patch"] From 8bc108a073b74a70bfc32c3c2281d1b977c6183d Mon Sep 17 00:00:00 2001 From: KIDI'S-TECH <146373396+KidiIT@users.noreply.github.com> Date: Thu, 4 Jan 2024 01:52:01 +0100 Subject: [PATCH 4/6] Update dependabot.yml Signed-off-by: KIDI'S-TECH <146373396+KidiIT@users.noreply.github.com> --- .github/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9e1a87f..e7220b8 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,4 +1,4 @@ -# Basic `dependabot.yml` file with +# Basic `dependabot.yml` file with # minimum configuration for two package managers version: 2 From 2c552dea94af5dada29655ef61ce3f49ee365ee8 Mon Sep 17 00:00:00 2001 From: KIDI'S-TECH <146373396+KidiIT@users.noreply.github.com> Date: Sun, 7 Jan 2024 16:02:58 +0100 Subject: [PATCH 5/6] Update dependabot.yml Changes --- .github/dependabot.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e7220b8..0b1de4d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,6 +1,3 @@ -# Basic `dependabot.yml` file with -# minimum configuration for two package managers - version: 2 updates: # Enable version updates for npm From bba7c7022c70aeca10d12e80aa04a4ea523e36ef Mon Sep 17 00:00:00 2001 From: KIDI'S-TECH <146373396+KidiIT@users.noreply.github.com> Date: Wed, 20 Mar 2024 12:54:46 +0100 Subject: [PATCH 6/6] Update README.md Signed-off-by: KIDI'S-TECH <146373396+KidiIT@users.noreply.github.com> --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 4b58ee4..23e536a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10829824.svg)](https://doi.org/10.5281/zenodo.10829824) # Clearing SetTimeout with JavaScript To begin with, I want to start by thanking everyone for the massive review and love on my works. your reviews do motivate me to develop and solve more tremendous works with JavaScript and some other awaiting programming languages. however, lets get to the wonderful knowledge and experience I'm going to share with the community today.