Skip to content
Browse files

Cleaned up index.html and added phonegap.js as the include instead of…

… the release dependant version file name.
  • Loading branch information...
1 parent 1603054 commit a464155a4731713bc9d1119aa42f0e83973da3d9 Tyler Frankenstein committed Feb 14, 2012
Showing with 40 additions and 46 deletions.
  1. +1 −1 .gitignore
  2. +39 −45 index.html
View
2 .gitignore
@@ -1,4 +1,4 @@
jquery-1.6.4.min.js
jquery.mobile-1.0.min.css
jquery.mobile-1.0.min.js
-phonegap-1.3.0.js
+phonegap*.js
View
84 index.html
@@ -1,47 +1,41 @@
<!DOCTYPE HTML>
<html>
- <head>
-
- <title>DrupalGap</title>
-
- <meta name="viewport" content="width=device-width, initial-scale=1">
-
- <script type="text/javascript" charset="utf-8" src="phonegap-1.3.0.js"></script>
-
- <link rel="stylesheet" href="jquery.mobile-1.0.min.css" />
- <script src="jquery-1.6.4.min.js"></script>
- <script src="jquery.mobile-1.0.min.js"></script>
-
- <link rel="stylesheet" href="drupalgap/drupalgap.css" />
-
- <script src="drupalgap/services/comment.js"></script>
- <script src="drupalgap/services/content.js"></script>
- <script src="drupalgap/services/node.js"></script>
- <script src="drupalgap/services/services.js"></script>
- <script src="drupalgap/services/system.js"></script>
- <script src="drupalgap/services/user.js"></script>
- <script src="drupalgap/services/views_datasource.js"></script>
- <script src="drupalgap/pages/comment.js"></script>
- <script src="drupalgap/pages/comment_edit.js"></script>
- <script src="drupalgap/pages/comments_all.js"></script>
- <script src="drupalgap/pages/comments.js"></script>
- <script src="drupalgap/pages/configuration.js"></script>
- <script src="drupalgap/pages/content.js"></script>
- <script src="drupalgap/pages/content_add.js"></script>
- <script src="drupalgap/pages/dashboard.js"></script>
- <script src="drupalgap/pages/node.js"></script>
- <script src="drupalgap/pages/node_edit.js"></script>
- <script src="drupalgap/pages/setup.js"></script>
- <script src="drupalgap/pages/user.js"></script>
- <script src="drupalgap/pages/user_edit.js"></script>
- <script src="drupalgap/pages/user_login.js"></script>
- <script src="drupalgap/pages/user_register.js"></script>
- <script src="drupalgap/pages/welcome.js"></script>
-
- <script src="drupalgap/drupalgap.js"></script>
-
- </head>
- <body>
-
- </body>
-</html>
+ <head>
+ <title>DrupalGap</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+
+ <script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
+
+ <link rel="stylesheet" href="jquery.mobile-1.0.min.css" />
+ <script src="jquery-1.6.4.min.js"></script>
+ <script src="jquery.mobile-1.0.min.js"></script>
+
+ <link rel="stylesheet" href="drupalgap/drupalgap.css" />
+ <script src="drupalgap/services/comment.js"></script>
+ <script src="drupalgap/services/content.js"></script>
+ <script src="drupalgap/services/node.js"></script>
+ <script src="drupalgap/services/services.js"></script>
+ <script src="drupalgap/services/system.js"></script>
+ <script src="drupalgap/services/user.js"></script>
+ <script src="drupalgap/services/views_datasource.js"></script>
+ <script src="drupalgap/pages/comment.js"></script>
+ <script src="drupalgap/pages/comment_edit.js"></script>
+ <script src="drupalgap/pages/comments_all.js"></script>
+ <script src="drupalgap/pages/comments.js"></script>
+ <script src="drupalgap/pages/configuration.js"></script>
+ <script src="drupalgap/pages/content.js"></script>
+ <script src="drupalgap/pages/content_add.js"></script>
+ <script src="drupalgap/pages/dashboard.js"></script>
+ <script src="drupalgap/pages/node.js"></script>
+ <script src="drupalgap/pages/node_edit.js"></script>
+ <script src="drupalgap/pages/setup.js"></script>
+ <script src="drupalgap/pages/user.js"></script>
+ <script src="drupalgap/pages/user_edit.js"></script>
+ <script src="drupalgap/pages/user_login.js"></script>
+ <script src="drupalgap/pages/user_register.js"></script>
+ <script src="drupalgap/pages/welcome.js"></script>
+ <script src="drupalgap/drupalgap.js"></script>
+ </head>
+ <body>
+ </body>
+</html>

3 comments on commit a464155

@marcrobinsone

for link/script plugins, isn't it better to embed the hosted source rather than including it in www ?

@signalpoint
Owner

I've thought about this much. But I wonder what would happen during offline mode if the app wasn't able to retrieve the hosted sources? Perhaps a fallback mechanism can be put in place to pull from the source located in the www directory if the app is in offline mode.

@marcrobinsone

ah yes, that does make sense. There must be a way to cache those plugin files, but I guess it's smarter to just have it readily available in local mode.

Please sign in to comment.
Something went wrong with that request. Please try again.