plugins/ (not working yet)

This commit is contained in:
Chris Wanstrath
2011-08-27 15:13:08 -07:00
parent cfdce83925
commit 9af38c8c53
11 changed files with 125 additions and 128 deletions

View File

@@ -0,0 +1,13 @@
$ = require 'jquery'
$ ->
dir = OSX.NSFileManager.defaultManager.currentDirectoryPath
$('#cwd').text(dir)
files = Dir.list(dir)
files = _.map files, (file) ->
listItems = _.map files, (file) ->
file = file.replace(dir, "")
"<li>#{file}</li>"
$('#files').append(listItems.join('\n'))

View File

@@ -0,0 +1,12 @@
ul {
margin: 0;
padding: 0;
}
li {
list-style-type: none;
}
li:hover {
background-color: grey;
}

View File

@@ -0,0 +1,2 @@
<div id='cwd'></div>
<ul id='files'></ul>