Blame view

sources/apps/impressionist/js/datastore.js 573 Bytes
42e4f8d60   Kload   add all apps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
  /**
   * Impressionist
   *
   * Impressionist is a visual ide for impress.js. impress.js is a presentation tool based on the power of CSS3 transforms and transitions
   * in modern browsers and inspired by the idea behind prezi.com.
   *
   * MIT Licensed.
   *
   * Impressionist Copyright 2012 Harish Sivaramakrishnan (@hsivaram) 
   */
  function saveItem(key, value)
  {
  	if(isSupported())
  	{
  		localStorage.setItem(key, value);
  	}
  
  }
  function getItem(key)
  {
  
  	return localStorage.getItem(key);
  }
  function isSupported()
  {
  	if(localStorage)
  	{
  		return true;
  	}
  	else
  	{
  		return false;
  	}
  }