# Assets Folder/Files

The **assets** folder contains subfolders and files used across the site. The files are included in an assets folder of the project. The items listed below are subfolders within the **assets** folder.

##### **<span style="color: #ba372a;">Main level files</span>**

The main level assets files are those used on basically every page on the site. Files to set the configuration, navigation, header, and footer. See the section on *Page Structure* for more detail on some of these files.

##### <span style="color: #ba372a;">**Assets Subfolders**</span>

<span style="color: #000000;">Within the assets folder are several subfolders as detailed below.</span>

1. **ajax** - Ajax files are used to obtain records from tables in the database. The term ajax comes for the JavaScript method for obtaining records from a database. Files are named 'ajax\_*Module*.php' where *Module* generally identifies the associated database table.
2. **functions\_java** - JavaScript functions are used by JavaScript files across the site. All file names begin with an underscore character (\_). Two files in this subfolder serve a specific purpose. 
    - **\_AllBuildJava.js** - This file *combines* the individual function files into a single file (\_allFunctionsJava.js). Thus, if a change is made to a function this file must be run to update the single file.  
        The following three files are also combined into the single function file. Each file consists of a JavaScript array containing relevant information about the county. ***County*** in these files would be the county name. 
        - ***County*\_article.js** - A JS array detailing the elements used with article files
        - ***County*\_co\_maps.js** - A JS array detailing the map elements used for headings and coordinates.
        - ***County*\_config.js** - A JS array similar to the *County*\_config.php file.
3. **functions\_php** - PHP functions are used by PHP files across the site. All names begin with an underscore character (\_). As with the JavaScript functions the individual function files are combined into one file. This is accomplished by the system at page load time so special building is not required.
4. **json** - Several json files are used to specify various entities of the site. Except for the *County\_master.json* file, each file MUST begin with the name of the county (i.e., Delta, Fannin, Holmes, etc.). See the section on *Special Files* for more detail. 
    - **geojson** - Included within the json folder is a folder for the geojson files. These files detail the coordinates of an entity, The files are of two varieties. See the section on *Special Files* for more detail. Files for both Counties and Towns are included in this subfolder. 
        - **County** - Provides the outline coordinates for the main county and the surrounding counties.
        - **Town** - Provides the outline coordinates for any towns within the area of the main county.
5. **menus** - may not be needed if County\_subnav.json file is used.