Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Initialize Phonegap and jQTouch
- */
- PhoneGap.addConstructor(function () {
- setupToolbars();
- });
- $(document).ready(function () {
- // put here jquery stuff
- });
- jQT = $.jQTouch({
- icon: 'jqtouch.png',
- statusBar: 'black',
- preloadImages: [
- 'apple/jqt/img/chevron_white.png',
- 'apple/jqt/img/bg_row_select.gif',
- 'apple/jqt/img/back_button_clicked.png',
- 'apple/jqt/img/button_clicked.png'
- ]
- });
- function setupToolbars() {
- var standardTabSelectCallback;
- try {
- window.uicontrols.createTabBar();
- } catch (e) {
- alert(e.message);
- }
- window.uicontrols.createTabBarItem("Start", "Start", "start.png", {
- onSelect: function () {
- standardTabSelectCallback("Einstellungen");
- }
- });
- window.uicontrols.createTabBarItem("Info", "Info", "info.png", {
- onSelect: function () {
- standardTabSelectCallback("Info");
- }
- });
- standardTabSelectCallback = function (tab) {
- if (selectedTab === tab) {
- return;
- } else {
- jQT.goTo('#' + tab, 'flip');
- selectedTab = tab;
- }
- };
- window.uicontrols.showTabBar();
- window.uicontrols.showTabBarItems("Fahrplan", "Einstellungen", "Info");
- window.uicontrols.selectTabBarItem("Fahrplan");
- }
Add Comment
Please, Sign In to add comment