Skip to content
This repository was archived by the owner on Apr 22, 2018. It is now read-only.

Commit 67f4306

Browse files
committed
Merge pull request #7 from electerious/v3.0.0
v3.0.0
2 parents 3c42fde + f9a2016 commit 67f4306

File tree

7 files changed

+251
-195
lines changed

7 files changed

+251
-195
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "basicContext",
3-
"version": "2.0.9",
3+
"version": "3.0.0",
44
"authors": [
55
"Tobias Reich <[email protected]>"
66
],

dist/basicContext.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ gulp.task('styles', function () {
1414

1515
gulp.task('scripts', function () {
1616

17-
gulp.src('./src/scripts/*.coffee')
18-
.pipe(plugins.coffee({bare: true}).on('error', plugins.util.log))
17+
gulp.src('./src/scripts/*.js')
18+
.pipe(plugins.babel())
1919
.pipe(plugins.concat('basicContext.min.js', {newLine: "\n"}))
2020
.pipe(plugins.uglify())
2121
.pipe(gulp.dest('./dist'));

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "basicContext",
3-
"version": "2.0.9",
3+
"version": "3.0.0",
44
"authors": [
55
"Tobias Reich <[email protected]>"
66
],
@@ -28,13 +28,13 @@
2828
],
2929
"devDependencies": {
3030
"gulp": "^3.8.11",
31-
"gulp-autoprefixer": "2.1.0",
32-
"gulp-coffee": "^2.3.1",
31+
"gulp-autoprefixer": "2.3.0",
32+
"gulp-babel": "^5.1.0",
3333
"gulp-concat": "^2.5.2",
34-
"gulp-load-plugins": "^0.9.0",
35-
"gulp-minify-css": "^1.0.0",
36-
"gulp-sass": "^1.3.3",
37-
"gulp-uglify": "^1.1.0",
34+
"gulp-load-plugins": "^0.10.0",
35+
"gulp-minify-css": "^1.1.1",
36+
"gulp-sass": "^2.0.1",
37+
"gulp-uglify": "^1.2.0",
3838
"gulp-util": "^3.0.4"
3939
}
4040
}

readme.md

+21-6
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,39 @@
11
# basicContext
22

3-
Easy-to-use context-menu for your website or webapp. [Try it live on CodePen](http://codepen.io/electerious/pen/emaJxE).
3+
Easy-to-use context-menu for your website or webapp.
44

55
![Context Screenshot](http://l.electerious.com/uploads/big/9f182a325203b158e59ad48aaebb13a2.png)
66

7-
## Installation
7+
## Demos
8+
9+
| Name | Description | Link |
10+
|:-----------|:------------|:------------|
11+
| Basic demo | basicContext works with all kind of events | [Try it on CodePen](http://codepen.io/electerious/pen/emaJxE) |
12+
| Position demo | basicContext never leaves the visible screen-area | [Try it on CodePen](http://codepen.io/electerious/pen/emaJxE) |
13+
| Scroll demo | basicContext is scrollable when the context height is bigger than the browser height | [Try it on CodePen](http://codepen.io/electerious/pen/aOZpZr) |
14+
15+
## Features
16+
17+
- Works in all modern browsers
18+
- Written in Vanilla JS
19+
- Scrollable, when the height of the context-menu is bigger than the height of the browser ([Demo](http://codepen.io/electerious/pen/emaJxE))
20+
- Stays within the viewport and never opens outside the visible screen-area ([Demo](http://codepen.io/electerious/pen/aOZpZr))
821

9-
bower install basicContext
10-
1122
## Requirements
1223

13-
basicContext requires jQuery >= 2.1.0
24+
basicContext is written in Vanilla JS and has no dependencies.
25+
26+
27+
## Installation
28+
29+
bower install basicContext
1430

1531
## How to use
1632

1733
Simply include the following files in your HTML:
1834

1935
```html
2036
<link type="text/css" rel="stylesheet" href="bower_components/basicContext/dist/basicContext.min.css">
21-
<script async type="text/javascript" src="bower_components/jQuery/dist/jquery.min.js"></script>
2237
<script async type="text/javascript" src="bower_components/basicContext/dist/basicContext.min.js"></script>
2338
```
2439

src/scripts/basicContext.coffee

-178
This file was deleted.

0 commit comments

Comments
 (0)