Linking and embed js file when consist lot of html document in jquery mobile
Hi I am new for Jquery mobile. I need to develop mobile apps which consist lot of screen. There are around 50 html inside my apps. I am facing this problem nw which is hw to linking to each other page?
Btw let say i need to embedded cordova.js or custom js file to all pages. So did i need to embedded java-script file to every 50 page's header? It is very time-consuming to restructure my apps
for example
- <head>
- <meta charset="utf-8">
- <title>Smart Realtor</title>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <link rel="stylesheet" href="css/smartrealtor-theme.css" />
- <link rel="stylesheet" type="text/css" href="css/snap.css" />
- <link rel="stylesheet" href="css/custom.css">
- <link rel="stylesheet" href="css/themes/default/jquery.mobile.structure-1.4.2.css">
- <link rel="stylesheet" href="css/themes/default/jquery.mobile.icons-1.4.2.css">
- <link rel="stylesheet" href="css/jqm-icon-pack-fa.css">
- <script src="js/jquery.js"></script>
- <script src="js/globalsetting.js"></script>
- <script src="js/jquery.mobile-1.4.2.min.js"></script>
- </head>
Did Jquery mobile provide any function like I need only include js file to index.html. Then my other page will automatically load those js file. Please guide me solution. Thanks