Skip to content

Basic coding structure

RupaliM edited this page Sep 27, 2018 · 2 revisions

Copy the template file code before creating a new HTML file.

As a template file consists of all required file. Check template.html

Common Files

  1. header.html: To include the header for the page.
  2. footer.html: To include footer for the page.
  3. navbar.js: JavaScript file for Navigation
  4. utility.js: This consist of failure function and timeout function which we use in configuring ajax
  5. ws_url.js: This consist of function to call URL for API where we have defined all API URL with base URL in one file.
  6. activity_tracker.js: This will track user activity on the portal

External Libraries used:

We are using many external libraries for UI development as per the requirement. Please check https://github.com/GW-HIVE/glygen-frontend/wiki/Libraries-used-Development But main libraries used are

  • Jquery:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  • Bootstrap Javascript:
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  • Bootstrap CSS:
Clone this wiki locally