This is the Links Portal. The Place for Handy Links
This is designed as a homepage for navigating to other links using HTML, CSS and JavaScript
Welcome to the Links Portal!! We are so happy for you to help!!
To have weblinks added to the Links Portal please:
- Fork this repository
- Edit the weblink code to add new weblinks
- Send out a pull request back to the repository for review and possible addition
- Welcome aboard and help us make this portal better for everyone
As links are defined in multiple files, it is important to follow these instructions when adding links.
- Open
links.json
and add a comma after the last curly-brace (},
)
{
"id": "",
"text": "",
"url": "",
"issmart": false,
"hasimage": true,
"script": "",
"imagepath": "/images/",
"imagewidth": 30,
"imageheight": 30
},
-
Copy the above
JSON
code and paste on a new line between }, and ] -
Fill in the code properties:
id
- ID of the button. This should be a short string in all lowercasetext
- The text that appears on the buttonurl
- The URL which the button will open when clicked - Optional ifissmart
istrue
issmart
- Controls whether the button appears in the Smart Buttons section. If it istrue
then the URL property will be ignored and the script property used instead for the click actionhasimage
- Controls whether the button shows an image. If this isfalse
then the three image paths are optionalscript
- The script which will be executed when the button is clicked. Optional ifissmart
isfalse
imagepath
- Where the image is stored. This should be in the images directory. Optional ifhasimage
isfalse
imagewidth
- What the image width is. Should be around 30 for correct sizing. Optional ifhasimage
isfalse
imageheight
- What the image height is. Should be around 30 for correct sizing. Optional ifhasimage
isfalse
- You should now have your link showing up in the list:
- Navigate to this page and generate the hashed password.
- Open
users.js
and add the new username to theusers
array, which is defined in thelogin()
function. - Add the hashed passsword to the
passwords
array. - Combine the username and hashed password and add the combined string to the
userpass
array.