Skip to content

Commit

Permalink
Added ignore file. Cleaned up the styling a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
joemccann committed Nov 1, 2010
1 parent 069e0bf commit a881e87
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 26 deletions.
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# OSX
.DS_Store
# Textmate project file.
.tmproj

# Windows
Thumbs.db

# Eclipse
.cache
.cache/*
.settings
.settings/*
*.class
bin

# Archives / packages
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
12 changes: 5 additions & 7 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ var inspect = require('sys').inspect;
var app = module.exports = express.createServer();

var errorMessages = {
invalidEmail: 'Invalid email address'
invalidEmail: 'Invalid email address',
invalidURL: 'Invalid URL'
}

// Some config shit...
Expand Down Expand Up @@ -184,7 +185,6 @@ function loadApiKeys(filename, cb)
});
}


/*
* @desc Initialize at startup.
* @return void
Expand All @@ -198,8 +198,6 @@ function init()
loadApiKeys(backupApiKeysFilename, function(){
console.log(inspect(apikeys))
});


}


Expand Down Expand Up @@ -228,7 +226,7 @@ app.get('/s/*', function(req, res){

});

// To request an API Key.
// GUI for API Request
app.get('/api/invite', function(req, res){
// Now render the page.
res.render('invite.ejs', {
Expand All @@ -238,6 +236,7 @@ app.get('/api/invite', function(req, res){
});
});

// Handles POST data for an API Key request [API]
app.post('/api/requestkey', function(req, res){

var email = req.body.email,
Expand Down Expand Up @@ -288,7 +287,7 @@ app.get('/api/create', function(req,res){
});
});

// To generate a shortened url
// To generate a shortened url [API]
app.post('/api/create', function(req, res){
var apikey = req.body.apikey;
var longurl = req.body.longurl;
Expand Down Expand Up @@ -347,7 +346,6 @@ app.post('/api/create', function(req, res){
});



// Only listen on $ node app.js

if (!module.parent) {
Expand Down
30 changes: 11 additions & 19 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ blockquote, q
body
{
background: #eeeeee; /* old browsers */
background: -moz-linear-gradient(top, #eeeeee 0%, #eeeeee 100%); /* firefox */
background: --moz-linear-gradient(top, #eeeeee 0%, #eeeeee 100%); /* firefox */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eeeeee), color-stop(100%,#eeeeee)); /* webkit */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#eeeeee',GradientType=0 ); /* ie */

Expand Down Expand Up @@ -100,7 +100,7 @@ form
background: #01939a;
border-radius: 5px;
khtml-border-radius: 5px;
moz-border-radius: 5px;
-moz-border-radius: 5px;
padding: 20px;
webkit-border-radius: 5px;
width: 440px;
Expand All @@ -111,13 +111,12 @@ form fieldset
margin-bottom: 10px;
}

form fieldset:first-of-type
form fieldset:first-child
{
margin-top: 10px;
}


form fieldset:last-of-type
form fieldset:last-child
{
margin-bottom: 0;
}
Expand All @@ -133,7 +132,7 @@ form ol li
line-height: 30px;
list-style: none;
margin-bottom: 20px;
moz-border-radius: 5px;
-moz-border-radius: 5px;
padding: 10px;
webkit-border-radius: 5px;
}
Expand All @@ -154,36 +153,29 @@ input[type='text']{
font-size:1.1em;
}


form fieldset fieldset label:hover
form label:hover, form label:focus
{
cursor: pointer;
}

form input:not([type=submit]):focus,
form textarea:focus
{
background: #eaeaea;
}

form button
{
background: #34c6cd;
border: none;
border-radius: 20px;
khtml-border-radius: 20px;
-moz-border-radius: 20px;
webkit-border-radius: 20px;
color: #000;
display: block;
font: 1.8em;
khtml-border-radius: 20px;
letter-spacing: 1px;
margin: 20px auto 0;
moz-border-radius: 20px;
padding: 7px 25px;
text-shadow: 0 1px 1px #fff;
text-transform: uppercase;
webkit-border-radius: 20px;
}
form button:hover

form button:hover, form button:focus
{
background: #111000;
color: #fff;
Expand Down

0 comments on commit a881e87

Please sign in to comment.