Commit db517423 authored by Tristan Cavelier's avatar Tristan Cavelier

intro.js and outro.js updated (which will never pass jslint check)

parent 94a60a48
(function (scope, hex_md5) { (function (scope, hex_md5) {
"use strict"; "use strict";
var localstorage; var localstorage;
if (typeof localStorage !== "undefined") { if (typeof localStorage !== "undefined") {
localstorage = { localstorage = {
getItem: function (item) { getItem: function (item) {
var value = localStorage.getItem(item); var value = localStorage.getItem(item);
return value === null? null: JSON.parse(value); return value === null ? null : JSON.parse(value);
}, },
setItem: function (item, value) { setItem: function (item, value) {
return localStorage.setItem(item, JSON.stringify(value)); return localStorage.setItem(item, JSON.stringify(value));
}, },
removeItem: function (item) { removeItem: function (item) {
delete localStorage[item]; delete localStorage[item];
}, },
clone: function () { clone: function () {
return JSON.parse(JSON.stringify(localStorage)); return JSON.parse(JSON.stringify(localStorage));
} }
}; };
} else { } else {
(function () { (function () {
var pseudo_localStorage = {}; var pseudo_localStorage = {};
localstorage = { localstorage = {
getItem: function (item) { getItem: function (item) {
var value = pseudo_localStorage[item]; var value = pseudo_localStorage[item];
return value === undefined? return value === undefined ?
null: JSON.parse(pseudo_localStorage[item]); null : JSON.parse(pseudo_localStorage[item]);
}, },
setItem: function (item, value) { setItem: function (item, value) {
return pseudo_localStorage[item] = JSON.stringify(value); pseudo_localStorage[item] = JSON.stringify(value);
}, },
removeItem: function (item) { removeItem: function (item) {
delete pseudo_localStorage[item]; delete pseudo_localStorage[item];
}, },
clone: function () { clone: function () {
return JSON.parse(JSON.stringify(pseudo_localStorage)); return JSON.parse(JSON.stringify(pseudo_localStorage));
} }
}; };
}()); }());
} }
Object.defineProperty(scope,"jIO",{ Object.defineProperty(scope, "jIO", {
configurable:false,enumerable:false,writable:false,value:jioNamespace configurable: false,
enumerable: false,
writable: false,
value: jioNamespace
}); });
}(window, hex_md5)); }(window, hex_md5));
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment