What do you want to save?
Add Code snippet
New code examples
-
Html 2022-03-27 11:20:29
toggle dark mode javascript
<style> body { background-color: white; color: black; } /* DARK MODE */ .dark-mode{ background-color: black; color: white; } </style> <button class="nav-item"><a role="button" onclick="darkmode()... Add solution -
Javascript 2022-03-03 08:10:01
angular local storage
function createItem() { localStorage.setItem('nameOfItem', 'value'); } createItem() // Creates a item named 'nameOfItem' and stores a value of 'value' function getValue() { return localStorage.getItem('nameOfItem'); } // Gets the value of 'nameOfIt... Add solution -
TypeScript 2022-02-02 08:16:43
how to store objects in localstorage
var testObject = { 'one': 1, 'two': 2, 'three': 3 }; // Put the object into storage localStorage.setItem('testObject', JSON.stringify(testObject)); // Retrieve the object from storage var retrievedObject = localStorage.getItem('testObject'); console.lo... Add solution -
TypeScript 2022-01-29 10:47:31
how to Store Objects in HTML5 localStorage
var testObject = { 'one': 1, 'two': 2, 'three': 3 }; // Put the object into storage localStorage.setItem('testObject', JSON.stringify(testObject)); // Retrieve the object from storage var retrievedObject = localStorage.getItem('testObject'); console.lo... Add solution -
Javascript 2022-01-28 20:26:48
google sign in in firebase react
//add to your firebase.js file: google provider sign-in const googleProvider = new firebase.auth.GoogleAuthProvider(); export { firebase, db, auth, functions, googleProvider } //Actions/GoogleAuthentication.js import { firebase, googleProvider, db } from... Add solution -
Other 2021-11-22 01:36:24
bootstrap keep tab open cookie
$(function() { // for bootstrap 3 use 'shown.bs.tab', for bootstrap 2 use 'shown' in the next line $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { // save the latest tab; use cookies if you like 'em better: l... Add solution
Best helpers
Rocky DeHart
+5
Cynthia
+5
Eve noonan
+5
Martinako
+5
Numeri
+5
John Weisz
+5
Tammy Lin
+5
Flyeogh
+5
SunnyHills
+5
Ishan Yadav
+5
Aown Ali
+5
Terry3497
+5
Xkcvk2511
+5
Jean Luis
+5