• Stars
    star
    151
  • Rank 245,406 (Top 5 %)
  • Language
    JavaScript
  • Created about 12 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A jQuery plugin to manage local storage and cookies simultaneously in a simple interface

image Dead-Simple local storage for every browser and device

What makes it TOTAL Storage?

  • The browser doesn't support local storage it will fall-back to cookies! (Using the wonderful $.cookie plugin).
  • Send it strings, numbers even complex object arrays! TotalStorage does not care. Your efforts to defeat it will prove futile.
  • Simple as shit. jStorage and some other very well-written plugins provide a bevy of options for expiration, security and so forth. Frequently this is more power than you need and vulnerable to confusion if you just want it to work (JWITW)

Some examples

  • Set the value of a key to a string

     $.totalStorage('the_key', 'the_value');
    
  • Set the value of a key to a number

     $.totalStorage('the_key', 800.2);
    
  • Set the value of a key to a complex Array

     var myArray = new Array();
     myArray.push({name:'Jared', company:'Upstatement', zip:63124});
     myArray.push({name:'McGruff', company:'Police', zip:60652};
     $.totalStorage('people', myArray);
     
     //to return:
     $.totalStorage('people');
    

The stats:

Some background:

Why?

Last year my firm worked on a project to help seniors calculate their savings, social security, mortgate, etc. so they could better plan for retirement. This involved the users entering a lot of data (and because of privacy risks we didn't want to store all that personal financial data). Using the browser's local storage was perfect ... except for Internet Explorer. So I wrote this as a way to integrate localStorage or cookies depending on what the browser could handle AND let me access it in a super-simple way all across the application.

Many thanks to:

Andris Reinman and Klaus Hartl. Their plugins (jStorage and Cookie, respectively) provided the roadmap to make this. Also feedback and comments from users have been most helpful in making this more efficient and killing some bugs.

Bitdeli Badge

More Repositories

1

routes

Simple routing for WordPress
PHP
188
star
2

jigsaw

Simple ways to make admin customizations for WordPress
PHP
156
star
3

react-router-guards

Guard middleware for React Router navigation
TypeScript
130
star
4

skela-wp-theme

An Upstatement-flavored starter theme for WordPress
PHP
63
star
5

puppy

Starter kit and delivery system for building static prototypes with Twig
HTML
48
star
6

stream-manager

Curate streams of WordPress posts.
PHP
39
star
7

zoneboard

A Simple JSON-based Dashboard Replacement
CSS
30
star
8

style-guide-twig

Style Guide Template for Twig/Timber
HTML
29
star
9

quickshare

Simple way of implementing social media share buttons
JavaScript
26
star
10

ups-dock

A front-end stack for Docker-based projects at Upstatement
HTML
23
star
11

mesh

Bootstrap content into a WordPress site
PHP
16
star
12

snd_layout_editor

Homepage layout editor demo created during SND Makes: Boston
CSS
12
star
13

mobile-preview

WordPress plugin to preview the current view on a mobile device
PHP
12
star
14

eslint-config

Upstatement's ESLint Config
JavaScript
12
star
15

upbase

โ›”๏ธ DEPRECATED
CSS
11
star
16

ups-public-library

A knowledge base and learning tool for web designers who want to write more code.
SCSS
8
star
17

prettier-config

Upstatement's Prettier Config
Shell
7
star
18

generator-style-guide-twig

Yeoman Generator to quickly scaffold the Upstatement Style Guide for Twig/Timber
CSS
5
star
19

react-hooks

Repository of reusable custom React hooks
TypeScript
5
star
20

puppy-lib

An adorable library for building a static site generator
JavaScript
4
star
21

craft-starter

An Upstatement-flavored starter project for Craft 3
PHP
4
star
22

ups-editorial-wp-plugin

A plugin for customizing the editor experience to suit Upstatement-built WordPress projects.
JavaScript
3
star
23

ups-mixin-lib

Bespoke Sass mixin library from Upstatement
CSS
3
star
24

mobile-stories-wp-theme

A WordPress theme for exploring mobile story telling
PHP
2
star
25

sndMakes4

This is the SND Makes repo for Team 4.
PHP
2
star
26

craft-netlify-trigger

A Craft CMS plugin to allow content editors to trigger static site builds on Netlify.
PHP
2
star
27

presentations

Presentations for Upstatement
JavaScript
1
star
28

boston-built

A repository for the born-again bostonbuilt.org (Puppy)
HTML
1
star
29

rails_firebase_auth_demo

Ruby
1
star