Skip to content

Commit

Permalink
Initial Upload
Browse files Browse the repository at this point in the history
  • Loading branch information
reed-jones committed Mar 22, 2017
1 parent e2238ef commit ddebedb
Show file tree
Hide file tree
Showing 29 changed files with 2,470 additions and 0 deletions.
21 changes: 21 additions & 0 deletions contextMenu/MIT-LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) <2013> <Sudhanshu Yadav>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
33 changes: 33 additions & 0 deletions contextMenu/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
contextMenu.js
==============
<p>contextMenu.js is a plugin to create windows like context menu with keyboard interaction, different type of inputs ,trigger events and much more.<br />
Why contextMenu.js ?:</p>
<ul>
<li>Use as simple popup or as a context menu. With some tweaking, it can be used for multiple purposes.</li>
<li>Adjust position and size to fit in viewport.</li>
<li>Keyboard interaction.</li>
<li>Support for different types of inputs (structure object, UL list) .</li>
<li>Trigger Context menu with right-click, left-click,hover or any other mouse events.</li>
<li>Support touch devices.</li>
<li>Css outside of javascript so you can edit the look of menu.</li>
<li>Enable/disable options.</li>
<li>Optional icons for commands.</li>
<li>Lot of configurable options.</li>
<li>Submenus</li>
</ul>
<strong>See demo and documentation on http://ignitersworld.com/lab/contextMenu.html</strong>

<h3>Major Updates</h3>

<h4>1.4.0</h4>
<ol>
<li> Added support for touch devices. (Make sure to update css file too) </li>
<li> Removed sizeStyle option and forced menu to take height of inner content. With size style auto lot of issue with different devices were coming. </li>
</ol>

<h4>1.2.0</h4>
<ol>
<li>Added a "closeOnClick" option to close contentext menu on click of any item.</li>
<li>Added a className key when generating context menu through object to give style on specific item of menu.</li>
<li>Fixed keybord event.</li>
</ol>
48 changes: 48 additions & 0 deletions contextMenu/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"name": "contextMenu",
"description": "contextMenu.js is a plugin to create windows like context menu with keyboard interaction, different type of inputs ,trigger events and much more.",
"main": "contextMenu.js",
"author": {
"name": "Sudhanshu Yadav",
"email": "sudhanshuyadav2@gmail.com"
},
"version": "1.4.0",
"repository": {
"type": "git",
"url": "https://github.com/s-yadav/contextMenu.js"
},
"ignore": [
"contextMenu.js.jquery.json"
],
"licenses": [
{
"type": "MIT",
"url": "https://github.com/s-yadav/contextMenu.js/blob/master/MIT-LICENSE.txt"
},
{
"type": "GPLv2 or Later",
"url": "http://opensource.org/licenses/GPL-2.0"
}
],
"bugs": {
"url": "https://github.com/s-yadav/contextMenu.js/issues"
},
"dependencies": {
"jquery": ">=1.6"
},
"keywords": [
"context-menu",
"contextmenu",
"right-click-menu",
"context",
"submenu",
"jquery",
"popup",
"menu",
"tooltip"
],
"readmeFilename": "README.md",
"homepage": "http://ignitersworld.com/lab/contextMenu.html",
"demo": "http://ignitersworld.com/lab/contextMenu.html#demo",
"docs": "http://ignitersworld.com/lab/contextMenu.html#documentation"
}
69 changes: 69 additions & 0 deletions contextMenu/contextMenu.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/*
*contextMenu.js v 1.4.0
*Author: Sudhanshu Yadav
*s-yadav.github.com
*Copyright (c) 2013 Sudhanshu Yadav.
*Dual licensed under the MIT and GPL licenses
*/
/*Context menu css */
.iw-contextMenu {
-webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
border: 1px solid #E6E6E6;
display: none;
z-index: 1000;
}
.iw-cm-menu {
background: #F4F4F4;
color: #333;
margin: 0px;
padding: 0px;
}
.iw-cm-menu li {
list-style: none;
padding: 3px;
padding-left: 30px;
padding-right: 20px;
border-bottom: 1px solid #CCC;
cursor: pointer;
position: relative;
}
.iw-mOverlay {
position: absolute;
width: 100%;
height: 100%;
top: 0px;
left: 0px;
background: #FFF;
opacity: .5;
}
.iw-contextMenu li.iw-mDisable {
opacity: .3;
}
.iw-mSelected {
background-color: #003366;
color: #F2F2F2;
}
.iw-cm-arrow-right {
width: 0;
height: 0;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-left: 5px solid #333333;
position: absolute;
right: 3px;
top: 50%;
margin-top: -3px;
}
.iw-mSelected > .iw-cm-arrow-right {
border-left: 5px solid #FFF;
}
.iw-mIcon {
width: 20px;
height: 20px;
left: 0px;
top: 3px;
position: absolute;
}
/*context menu css end */
Loading

0 comments on commit ddebedb

Please sign in to comment.