Skip to content

Commit 9f7825a

Browse files
committed
readme up
1 parent 6f530a4 commit 9f7825a

File tree

2 files changed

+7
-56
lines changed

2 files changed

+7
-56
lines changed

Readme.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,15 @@ I think it will be exactly what I've always wanted; we'll see.
7373
You will need:
7474

7575
- [nodejs](http://nodejs.org/)
76-
- [browserify](http://browserify.org) `npm install -g browserify watchify`
77-
- [less](http://lesscss.org) `npm install -g less`
76+
- [webpack](http://webpack.github.io) `npm install -g webpack`
7877

7978
```
8079
npm install
81-
make all
80+
cd demo
81+
webpack --watch
8282
```
8383

84+
Then open `demo/plugins/index.html` for example in your favorite browser, and
85+
enjoy!
86+
8487

demo/menu/index.html

+1-53
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<head>
44
<link rel="stylesheet" href="build.css">
55
<script src="../react.js"></script>
6-
<script src="build.js"></script>
76
<style>
87
body {
98
height: 400px;
@@ -23,56 +22,5 @@
2322
</button>
2423
<div id="something">Here's a menu</div>
2524
<div id="output"></div>
26-
<script>
27-
28-
var React = require('react')
29-
, output = document.getElementById('output')
30-
31-
function makeMenu(e) {
32-
e.preventDefault()
33-
Menu.show([
34-
{title: 'hello'},
35-
{title: 'awesome', action: log.bind(null, 'Custom action')},
36-
{title: 'One'},
37-
{title: 'Two'},
38-
{title: 'Three', children: [
39-
{title: 'Three One'},
40-
{title: 'Three Two', children: [
41-
{title: 'awesome', action: log.bind(null, 'Custom action')},
42-
{title: 'One'},
43-
{title: 'Two some is more and things are here it is long'},
44-
]},
45-
]},
46-
{title: 'Four'},
47-
], e.pageX, e.pageY, logItem)
48-
}
49-
50-
window.something.addEventListener('contextmenu', makeMenu)
51-
52-
function showmenu() {
53-
Menu.show([
54-
{title: 'hello'},
55-
{title: 'awesome', action: log.bind(null, 'Custom action')},
56-
], 100, 100, logItem)
57-
}
58-
59-
function logItem(item) {
60-
log('Clicked ' + item.title)
61-
}
62-
63-
function log(text) {
64-
output.innerHTML += text + '<br/>';
65-
}
66-
67-
Menu.show([
68-
{title: 'One'},
69-
{title: 'Two'},
70-
{title: 'Three', children: [
71-
{title: 'Three One'},
72-
{title: 'Three Two'},
73-
]},
74-
{title: 'Four'},
75-
], 300, 300, logItem)
76-
77-
</script>
25+
<script src="build.js"> </script>
7826
</body>

0 commit comments

Comments
 (0)