What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-10-09 00:04:07
css permit tabs on textarea react
document.querySelector('#textarea').addEventListener('keydown', e => { if ( e.key === 'Tab' && !e.shiftKey ) { // execCommand operations are "Cmd|Ctrl+Z"-able // note: execCommand is deprecated and may not work in the future... Add solution -
Other 2021-10-08 09:23:04
how to download images on a website puppeteer
const puppeteer = require('puppeteer'); const fs = require('fs'); async function run() { const browser = await puppeteer.launch({ headless: false }); const page = await browser.newPage(); await page.setViewport({ width: 1200, heig... Add solution -
Javascript 2021-10-07 11:46:03
canvas js filter greyscale
const img = document.querySelector('img'); const canvas = document.querySelector('canvas'); const ctx = canvas.getContext('2d'); img.onload = function() { canvas.width = img.width; canvas.height = img.height; ctx.filter = 'grayscale(1)'; ctx.draw... Add solution
Best helpers
Ranking is empty