diff --git a/backend/plan.php b/backend/plan.php new file mode 100644 index 0000000..319b097 --- /dev/null +++ b/backend/plan.php @@ -0,0 +1,36 @@ + + + + + + + + +
First nameLast nameJob title
+ + diff --git a/node_modules/.bin/mime b/node_modules/.bin/mime deleted file mode 120000 index fbb7ee0..0000000 --- a/node_modules/.bin/mime +++ /dev/null @@ -1 +0,0 @@ -../mime/cli.js \ No newline at end of file diff --git a/node_modules/.bin/mime b/node_modules/.bin/mime new file mode 100755 index 0000000..20b1ffe --- /dev/null +++ b/node_modules/.bin/mime @@ -0,0 +1,8 @@ +#!/usr/bin/env node + +var mime = require('./mime.js'); +var file = process.argv[2]; +var type = mime.lookup(file); + +process.stdout.write(type + '\n'); + diff --git a/public/home.html b/public/home.html index 44a9021..5b721ba 100644 --- a/public/home.html +++ b/public/home.html @@ -1,6 +1,6 @@ - + BezVulcan @@ -8,7 +8,6 @@ - - +
+ + +
+
Lista
+
diff --git a/public/plan.js b/public/plan.js index a0a262c..df8a8c9 100644 --- a/public/plan.js +++ b/public/plan.js @@ -1,26 +1,7 @@ -var mysql = require('mysql'); -var config = require('./config.js'); - -var db_access = { - host : config.db.host, - user : config.db.username, - password : config.db.password, - database : config.db.dbname -}; - -var tbl = plan; - -var conn = mysql.createConnection(db_access); -conn.connect(); - -var queryString = 'SELECT * FROM ' + tbl; - -conn.query(queryString, function (err, rows, fields) { - if (err) { throw err; } - - for (var i in rows) { - console.log('TESTDUPA: ', rows[i].name); - } +$(document).ready(function(){ + $("guzik").click(function(){ + $.get("demo_test.asp", function(data, status){ + alert("Data: " + data + "\nStatus: " + status); + }); + }); }); - -conn.end(); diff --git a/public/test.html b/public/test.html new file mode 100644 index 0000000..7527006 --- /dev/null +++ b/public/test.html @@ -0,0 +1,20 @@ + + + + + + + + + + + + diff --git a/public/witaj.js b/public/witaj.js index 0747ec1..e7c7c92 100644 --- a/public/witaj.js +++ b/public/witaj.js @@ -1,3 +1,3 @@ app.get('/home', function(request, response) { response.send('Witaj, ' + request.session.username + '!'); -} +)}