Light Jquery librairy with only Vanilla JS
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
- Take the
res/dist/firejs.min.js
and put in your ressource directory. - Call the librairy in your HTML page before your JS script
<script type="text/javascript" src="YOUR_RES_DIR/firejs.min.js"></script>
What things you need to install
- NodeJS
- NPM
-
Put the
/res
package.json
gulpfile.js
into your root project
-
Configure the
/res/sass/01_theme.scss
with color you want, focus mainly on$default-primary-color
-
Run in console
> cd YOUR_PROJECT_DIR
> npm i
> gulp
- Call the librairy in your HTML page before your JS script
<script type="text/javascript" src="res/dist/min.js"></script>
<link rel="stylesheet" type="text/css" href="res/dist/min.js">
On going ...
The JS librairy is developping to fit this structure and gulpfile.js is configured to this set up
/
| res
| | dist
| | | min.css
| | | min.js
| | js
| | | component
| | | | modal
| | | | minput
| | | | ...
| | | main
| | | | firejs.js
| | | | ...
| | sass
| | | main
| | | | theme.scss
| src
| | ...
<fbutton>
: Material Design button<fcircle_progress>
: Percent progress bar in circle<fgroup_field>
: Intern component for form tag, you don't need to use it<finput>
: Material Design input. Warning, you need write<finput></finput>
for working<fline_bloc>
: Bloc animate with 2 width animations on event "show" or "hide"<fmodal>
: Material Design modal / popin<fmodal_button>
: Button to show popin withdata-id
attribute whitch contains the id of modal<fpage>
: Material Design pagination bloc witch setup withdata-begin
(start page),data-end
(last page),data-current
(current page),data-target
(url or js visible function),data-view
(number of current side page show) anddata-urlparam
(name of url param for pagination)<fselect>
: Material Design select<fstate>
: Material Design representation of state / status customable withdata-color
<fsubmit>
: Material Design submit form button<ftab>
: Material Design tab<ftable>
: Material Design table that thead scroll and sort colum on click<ftext_editor>
: Material Design text editor
- data-value : Value of percent with one digit after decimal point
- data-size : Width and height of circle
- data-line : Width of progress line
- data-info : Define if the percent is shown (default 1 = true, 0 = false)
<fcircle_progress
data-info="1"
data-size="200px"
data-line="10px"
data-value="25"
></fcircle_progress>
- Received
- update : with param "value" in detail event
- Emitted
- change : when value change, the fcircle_progress emit "change" event. To get, check data-value of element
- data-dir-image : URL of image directory that contains emojis
- data-load-save : If "1" (default value), the editor try to get back content save in storageSession
- data-save-id : Set the session save id in order to enable multiple distinct text save
- data-save-time : Set the time between save in seconds (defaut is 10s)
<ftext_editor
data-dir-image="https://localhost/firejs/res/js/component/ftext_editor/img/emojis/"
data-load-save="1"
data-save-id="news"
data-save-time="5"
></ftext_editor>