Introduction
Get started with Front, Responsive Website Template for building responsive, mobile-first sites, with Bootstrap and a template starter page.
Codefoxs is a framework HTML web development
For the time being, we do NOT offer any tutorials or any other materials on how to integrate Front with any CMS, Web Application Frameworks (including Angular, Vue, React, etc.) or any other similar technology. However, since Front is a static HTML/CSS and JS template, then it should be compatible with any backend technology and frameworks.File Structure
Starter template is a snippet code for blank HTML page. Use the below snippet as a way to quickly start any new blank page. If you are using Front's Gulp Toolkit, you may use HTML (Gulp) snippet code (read more about it on Gulp page).
JavaScript structure
Core JavaScript
The foundation of the JavaScript structure in Front is based on one main object which does not change the root when the new functionalities are added, but instead, it only extends without affecting the behavior of the core object. The name of the object is HSCore
and the content of this object looks like this:
Essentials of HS data-attributes
data-hs-*-options
- Using the date-attribute, you can completely specify the settings for all plug-in parameters (except for functions) that are in the official documentation. Special cases will be described in the documentation of the corresponding wrappers/plugins. *-
name of the wrapper/plugin.
Parameter names must be enclosed in double quotation marks ""
. "param": ...
For strings, quotation marks are required.
"stringParam": "Test string",
"hexParam": "#ff0000"
For numbers, quotation marks are optional. "intParam": 10
For boolean values, quotation marks can lead to not obvious consequences (due to implicit type conversion). It is recommended that you specify Boolean values without quotation marks. "boolParam": true
For arrays and objects - quotation marks can lead to errors, this does not apply to elements of arrays and objects, which can be simple types (see the description for simple types above).
Advantages
- Avoiding the probabilities of conflicts between Front codes and third party plugins (libraries).
- Intuitive clear architecture.
- Everything is structured, each component in its own file and in its component in the main object.
- The ability of extending functionality without affecting the behavior of the core object and not changing the existing functionality.
- Creation of wrapper components simply solves complicated initializations structures for the users.
- Very easy access to any starters components and core settings from anywhere in the template.