css stuff
This commit is contained in:
parent
f7c0d086d3
commit
d333ecb21e
6
db.js
6
db.js
@ -53,7 +53,6 @@ function fullPath(files) {
|
||||
// Load a file, parse the title and generate the HTML
|
||||
exports.loadPage = function (name, callback) {
|
||||
var path = pathFromNameMd(name);
|
||||
console.log("..."+name)
|
||||
// if (name != "home"){
|
||||
// return callback(null,{exists: false})
|
||||
|
||||
@ -85,7 +84,6 @@ exports.loadPage = function (name, callback) {
|
||||
|
||||
exports.editPage = function (name, callback) {
|
||||
var path = pathFromNameMd(name);
|
||||
console.log(path)
|
||||
|
||||
|
||||
FS.readFile(path, 'utf8', function (err, markdown) {
|
||||
@ -120,7 +118,7 @@ exports.editPage = function (name, callback) {
|
||||
name: name,
|
||||
title: null,
|
||||
exists: exists,
|
||||
markdown: markdown,
|
||||
markdown: unescape(markdown),
|
||||
html: html,
|
||||
});
|
||||
|
||||
@ -131,8 +129,6 @@ exports.editPage = function (name, callback) {
|
||||
// Saving is simple. Just put the markdown in the file
|
||||
exports.savePage = function (name, value, callback) {
|
||||
var path = pathFromNameMd(name);
|
||||
console.log(path)
|
||||
console.log(value)
|
||||
FS.writeFile(path, value, callback);
|
||||
};
|
||||
|
||||
|
@ -1,3 +1,6 @@
|
||||
p(#title_text)=. [THSF] 2015@Toulouse:/less/is/more
|
||||
|
||||
|
||||
h3. Hello THSF
|
||||
|
||||
p(bla). this is a simple and stupid wiki :)
|
||||
|
6
pages/04_programm.markdown
Normal file
6
pages/04_programm.markdown
Normal file
@ -0,0 +1,6 @@
|
||||
# 04 programm
|
||||
|
||||
|_. horaire |_. intitulé |_. où |
|
||||
| 8h00 | table | row 1 |
|
||||
| 9h00 | table | row 2 |
|
||||
| 10h00 | ma grand mere fait du ski| dans les highlands |
|
BIN
public/images/logo.png
Normal file
BIN
public/images/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
@ -7,7 +7,7 @@ jQuery(function($){
|
||||
|
||||
var tx_input = $('#tx_input');
|
||||
var input = tx_input[0];
|
||||
input.value = input.innerHTML;
|
||||
input.value = input.textContent;
|
||||
tx_input.val(input.value)
|
||||
var text_preview = $('#text_preview')[0];
|
||||
var html_output = $('#html_output')[0];
|
||||
|
@ -7,19 +7,47 @@ body {
|
||||
background-color: #000000;
|
||||
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
|
||||
color: #ffffff;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #00B7FF;
|
||||
}
|
||||
|
||||
#title_text{
|
||||
|
||||
font-family: "andale mono", "lucida console", monospace;
|
||||
font-size:30px;
|
||||
}
|
||||
|
||||
#home {
|
||||
display:block;
|
||||
}
|
||||
|
||||
#markdown-editor {
|
||||
margin-top:50px;
|
||||
min-width:500px;
|
||||
min-height:300px;
|
||||
color: #000000
|
||||
table {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
border-collapse : collapse;
|
||||
}
|
||||
table th,
|
||||
table td {
|
||||
padding : 4px 8px;
|
||||
border : 1px solid #aaa;
|
||||
}
|
||||
ul {
|
||||
padding-left: 2em;
|
||||
}
|
||||
|
||||
#logo {
|
||||
display: block;
|
||||
margin-top: 50px;
|
||||
margin-bottom: 70px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width:30%;
|
||||
padding: 20%;
|
||||
background-image: url(../images/logo.png);
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
Binary file not shown.
@ -14,11 +14,11 @@ html
|
||||
nav.navbar.navbar-default.navbar-fixed-top
|
||||
ul.nav.navbar-nav
|
||||
li(role="presentation" )
|
||||
a(href="#home") THSF
|
||||
a(href="#logo") THSF
|
||||
li(role="presentation")
|
||||
a(href="#presentation") presentation
|
||||
a(href="#home") presentation
|
||||
li(role="presentation" )
|
||||
a(href="#programme") preogramme
|
||||
a(href="#programm") programme
|
||||
|
||||
block body
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
include ./layout.jade
|
||||
.container-fluid
|
||||
#logo
|
||||
each item in torender
|
||||
div(id= item.divId)!= item.html
|
||||
if isAuth
|
||||
|
Loading…
Reference in New Issue
Block a user