Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ether1project/ethocomponents
https://github.com/ether1project/ethocomponents
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ether1project/ethocomponents
- Owner: Ether1Project
- Created: 2023-01-01T21:22:03.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-02T09:24:04.000Z (9 months ago)
- Last Synced: 2024-04-11T13:40:59.852Z (9 months ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ethocomponents
Here the header and footer components for the ETHO project websites. Aim is to have a joint footer for all projects.
It is pretty straight forward and an index.html template is provided.You need to have in the the following:
First a initiation of a config variable:
The component is configurable by providing additional menus via the ethocomponent_menu variable in the section.
If you do not want to have any additional menus (maybe you have a side menue) then configure the following:
```
let ethocomponent_menu='';
```
Otherwise use the following.
```
let ethocomponent_menu='' +
'<li class="nav-item"><a class="nav-link" href="#">Item 1</a></li>' +
'<li class="nav-item"><a class="nav-link" href="#">Item 2</a></li>' +
'<li class="nav-item"><a class="nav-link" href="#">Item 3</a></li>' +
'';
```
It is important to have the valiable config before the css loadings
```
```
And then add in the beginning of the the header statement (if you want a menu component)
``````
and at the end the footer statement
```
```
after the body you need to load the js scripts:
```
```
It should like this