1234567891011121314151617181920212223242526 |
- window.fn = {};
-
- window.fn.toggleMenu = function () {
- document.getElementById('appSplitter').right.toggle();
- };
-
- window.fn.loadView = function (index) {
- document.getElementById('appTabbar').setActiveTab(index);
- document.getElementById('sidemenu').close();
- };
-
- window.fn.loadLink = function (url) {
- window.open(url, '_blank');
- };
-
- window.fn.pushPage = function (page, anim) {
-
- //Open and send json file that is equivalent with the especification.
- var artesanos = JSON.parse(window.localStorage.getItem(page.title.toUpperCase()));
-
- if (anim) {
- document.getElementById('myNavigator').pushPage(page.id, { data: { title: page.title, esp: page.esp, json: artesanos } , animation: anim });
- } else {
- document.getElementById('myNavigator').pushPage(page.id, { data: { title: page.title, esp: page.esp, json: artesanos } });
- }
- };
|