What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2022-02-02 05:45:54
better way to do nested if statements javascipt
var word = ['rock', 'paper', 'scissors']; var player1 = word[Math.floor(Math.random() * word.length)]; var player2 = word[Math.floor(Math.random() * word.length)]; var player1Image = document.querySelectorAll("img")[0].... Add solution -
Javascript 2022-02-01 02:40:28
move list items up and down using javascript
window.onload = function () { var upLink = document.querySelectorAll(".up"); for (var i = 0; i < upLink.length; i++) { upLink[i].addEventListener('click', function () { var wrapper = this.parentElement; if (wrapper.previousElement... Add solution -
Other 2022-01-29 03:10:16
how to use toast using bootstrap5
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" hr... Add solution -
Javascript 2022-01-23 23:35:39
how to get all the divs in page in node js
// Get the element with id="myDIV" (a div), then get all elements inside div with class="example" var x = document.getElementById("myDIV").querySelectorAll(".example"); // Set the background color of the... Add solution -
Html 2022-01-23 01:10:17
filter htmlcollection
const existingElements = document.querySelectorAll(".chapter-list-item"); const chapters = Array.from(existingElements) .filter(chapter => !chapter.classList.contains("active")) console.log("Found elements:") for (cons... Add solution -
Javascript 2022-01-22 18:11:15
code mirros apply to all textareas
var textareas = document.querySelectorAll(".textarea-class"); for (var i = 0; i < textareas.length; i++) { CodeMirror.fromTextArea(textareas[i], { lineWrapping: true, mode: "javascript", theme: "neat... Add solution -
Javascript 2022-01-22 15:06:44
instagram bot javascript
//Link:- https://github.com/danielrussellLA/instagram-follow-bot-javascript/blob/master/followBot.js // Go To "Explore Page" // Paste in Console: (() => { let i = 0; const followInterval = setInterval(() => { if (i >= ... Add solution
Best helpers
Ranking is empty