Skip to content

Commit

Permalink
wir gehen baden
Browse files Browse the repository at this point in the history
  • Loading branch information
bufferoverflow committed Jul 6, 2015
1 parent 7681883 commit 0505667
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app.js
Expand Up @@ -29,6 +29,7 @@ var homeController = require('./controllers/home');
var userController = require('./controllers/user');
var apiController = require('./controllers/api');
var contactController = require('./controllers/contact');
var calcController = require('./controllers/calc');

/**
* API keys and Passport configuration.
Expand Down Expand Up @@ -111,6 +112,7 @@ app.post('/account/profile', passportConf.isAuthenticated, userController.postUp
app.post('/account/password', passportConf.isAuthenticated, userController.postUpdatePassword);
app.post('/account/delete', passportConf.isAuthenticated, userController.postDeleteAccount);
app.get('/account/unlink/:provider', passportConf.isAuthenticated, userController.getOauthUnlink);
app.get('/calc', calcController.index);

/**
* API examples routes.
Expand Down
14 changes: 13 additions & 1 deletion public/js/main.js
@@ -1,5 +1,17 @@
$(document).ready(function() {

// Place JavaScript code here...
// some examples
//$( "email").val()
$(function () {
$('#email').val("fgg");
});

$( "#email" )
.keyup(function() {
var value = $( this ).val();
$( "p" ).text( value );
alert(value);
})
.keyup();

});
2 changes: 1 addition & 1 deletion views/home.jade
Expand Up @@ -6,7 +6,7 @@ block content
hr
.row
.col-sm-6
h2 Heading
h2 so lustig
p Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.
p
a.btn.btn-default(href='#', role='button') View details »
Expand Down
2 changes: 2 additions & 0 deletions views/partials/header.jade
Expand Up @@ -17,6 +17,8 @@
a(href='/api') API Examples
li(class=title=='Contact'?'active':undefined)
a(href='/contact') Contact
li(class=title=='Calc'?'active':undefined)
a(href='/calc') Calculatör
ul.nav.navbar-nav.navbar-right
if !user
li(class=title=='Login'?'active':undefined)
Expand Down

0 comments on commit 0505667

Please sign in to comment.