What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-12 09:36:11
jquery link click scroll
// Select all links with hashes $('a[href*="#"]') // Remove links that don't actually link to anything .not('[href="#"]') .not('[href="#0"]') .click(function(event) { // On-page links if ( location.pathn... Add solution -
Html 2021-11-11 19:15:11
multi bar chart D3
<!DOCTYPE html> <meta charset="utf-8"> <style> body { font: 10px sans-serif; } .axis path, .axis line { fill: none; stroke: #000; shape-rendering: crispEdges; } .x.axis path { display: none; } </style> <b... Add solution -
Javascript 2021-11-11 04:14:16
rock paper scissors javascript
const tolowerUcFirst = v => v.charAt(0).toUpperCase() + v.slice(1).toLowerCase() const answer = prompt( 'Do you want to play Rock Paper Scissors? Type yes or no!' ) if (answer && ['Y', 'YES'].includes(answer.toUpperCase())) { let board = ... Add solution -
Javascript 2021-11-09 14:31:18
first letter tuUppercase
//capitalize only the first letter of the string. function capitalizeFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1); } //capitalize all words of a string. function capitalizeWords(string) { return string.repl... Add solution