Skip to content

ContextJS is a dead simple library to quickly add custom context menus to your site

Notifications You must be signed in to change notification settings

donnellan0007/ContextJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ContextJS

ContextJS is a dead simple library to quickly add custom context menus to your site

https://contextjs.netlify.app/ # EXAMPLE AND DOCUMENTATION

Simply add the <context> tag to the end of your HTML file with the required elements and include the context.js file, and you're all good to go

Custom styling

You can easily style Context.JS to your needs within the context/styles/context-light.css (or context-light.scss)
An API is on the way to easily create custom menus without the need of manually adding the context tag or having to customise the CSS files
The syntax will look something like this
context.create({
  "bg-color" : "red",
  "options" : {
    "Menu" : title, // this is the type of button it will be
    "Click me" : buttonTo("/about.html") // buttonTo could be a function to go to another page
  }
})

About

ContextJS is a dead simple library to quickly add custom context menus to your site

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published