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