comparison server.js @ 3:2e2a2154efbb

Use a better XHTML semantic and fix the theme a bit.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Mon, 19 Sep 2011 01:46:42 -0700
parents eb5b6d3ab09b
children f630f4b90564
comparison
equal deleted inserted replaced
2:eb5b6d3ab09b 3:2e2a2154efbb
315 res.write('\n'); 315 res.write('\n');
316 res.write(' <body>\n'); 316 res.write(' <body>\n');
317 res.write(' <header>\n'); 317 res.write(' <header>\n');
318 res.write(' <h1>' + (title? title: 'Eldonilo blog') + '</h1>\n'); 318 res.write(' <h1>' + (title? title: 'Eldonilo blog') + '</h1>\n');
319 res.write(' <p>' + (desc? desc: 'Displaying your nodes.') + '</p>\n'); 319 res.write(' <p>' + (desc? desc: 'Displaying your nodes.') + '</p>\n');
320 res.write('\n');
321 res.write(' <nav>\n');
322 res.write(' <ul>\n');
323 res.write(' <li><a href="?no=client">Without client-side</a></li>\n');
324 res.write(' <li><a href="?no=server">Without server-side</a></li>\n');
325 res.write(' <li><a href="?">Hybrid mode</a></li>\n');
326 res.write(' </ul>\n');
327 res.write(' </nav>\n');
320 res.write(' </header>\n'); 328 res.write(' </header>\n');
321 res.write('\n');
322 res.write(' <nav>\n');
323 res.write(' <ul>\n');
324 res.write(' <li><a href="?no=client">Without client-side</a></li>\n');
325 res.write(' <li><a href="?no=server">Without server-side</a></li>\n');
326 res.write(' <li><a href="?">Hybrid mode</a></li>\n');
327 res.write(' </ul>\n');
328 res.write(' </nav>\n');
329 res.write('\n');
330 res.write(' <hr/>\n');
331 res.write('\n'); 329 res.write('\n');
332 330
333 if (!body) 331 if (!body)
334 res.write(' <section id="messages"/>\n'); 332 res.write(' <section id="messages"/>\n');
335 else { 333 else {