DIR : /home/kozerus/public_html/pn/uize/site-source/js/Uize/Services/StoreAdapter/BrowserLocalStorage.js
/home/kozerus/public_html/pn/uize/site-source/js/Uize/Services/StoreAdapter
/*______________
| ______ | U I Z E J A V A S C R I P T F R A M E W O R K
| / / | ---------------------------------------------------
| / O / | MODULE : Uize.Services.StoreAdapter.BrowserLocalStorage Class
| / / / |
| / / / /| | ONLINE : http://www.uize.com
| /____/ /__/_| | COPYRIGHT : (c)2012-2016 UIZE
| /___ | LICENSE : Available under MIT License or GNU General Public License
|_______________| http://www.uize.com/license.html
*/
/* Module Meta Data
type: Class
importance: 1
codeCompleteness: 0
docCompleteness: 5
*/
/*?
Introduction
The =Uize.Services.StoreAdapter.BrowserLocalStorage= module defines an adapter for the store service (=Uize.Services.Store=) that uses the browser's localStorage object for persisting data.
*DEVELOPERS:* `Chris van Rensburg`
*/
Uize.module ({
name:'Uize.Services.StoreAdapter.BrowserLocalStorage',
superclass:'Uize.Services.StoreAdapter',
builder:function (_superclass) {
'use strict';
return _superclass.subclass ({
instanceMethods:{
key:function (_params,_callback) {
_callback (window.localStorage.key (_params.index));
},
getItem:function (_params,_callback) {
_callback (window.localStorage.getItem (_params.key));
},
setItem:function (_params,_callback) {
window.localStorage.setItem (_params.key,_params.value);
_callback ();
},
removeItem:function (_params,_callback) {
window.localStorage.removeItem (_params.key);
_callback ();
},
clear:function (_params,_callback) {
window.localStorage.clear ();
_callback ();
},
init:function (_params,_callback) {
_callback ();
}
}
});
}
});
//
koh5_pano
Drag mouse to navigate.
Navigation
- Left/Right Mouse drag: Changes camera heading.
- Up/Sown Mouse drag: Changes camera pitch.
- Scroll wheel: Changes camera field of view.
- I-Key: Displays Info panel with canvas size, image size and FPS.
17.Aug.2010, Martin Wengenmayer