What do you want to save?
Add Code snippet
New code examples
-
Go 2021-10-05 06:01:03
how-to-prevent-google-colab-from-disconnecting
#Set a javascript interval to click on the connect button every 60 seconds. #Open developer-settings (in your web-browser) with Ctrl+Shift+I then click #on console tab and type this on the console prompt. #(for mac press Option+Command+I) function Con... Add solution -
Javascript 2021-10-03 20:16:04
queryselectorall
//To obtain a NodeList of all of the <p> elements in the document: const matches = document.querySelectorAll("p"); //This example returns a list of all <div> elements within the document with a class of either note or alert: const m... Add solution -
Javascript 2021-10-01 20:24:04
jspdf reduce size file
function genPDF() { html2canvas(document.querySelector(".page"), {scale: "2"}).then(canvas => { this.imgFile = canvas.toDataURL("image/jpeg", 0.3); var doc = new jsPDF('p', 'mm', 'a4', true); //and here is ... Add solution -
Javascript 2021-09-26 04:03:05
difference between key and code in javascript
// Key -> if you care about the character which was typed // Code -> if you care about the key which was pressed on the keyboard because your can change the language on your pc. const input = document.querySelector("input"); input.addEvent... Add solution