Skip to content

Commit

Permalink
Fixed bug in demo. Started config page
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Scandalis committed Dec 21, 2012
1 parent 2082cf8 commit cbed31e
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 9 deletions.
20 changes: 14 additions & 6 deletions config.json
@@ -1,10 +1,18 @@
[
{
"name": "JooDee",
"dir": "./demo/",
"port": 8080,
"debug": true,
"defaultPage": "joodee.joo",
"timeout": 0
"name": "JooDee",
"dir": "./demo/",
"port": 8080,
"debug": true,
"defaultPage": "joodee.joo",
"timeout": 0
},
{
"name": "Config",
"dir": "./config/",
"port": 8888,
"ip": "localhost",
"debug": false,
"defaultPage": "index.joo"
}
]
89 changes: 89 additions & 0 deletions config/iroh.css
@@ -0,0 +1,89 @@
html, body {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color: rgb(35,31,32);
}

div.content {
background-color: rgba(255,255,255,.5);
width: 80%;
max-width: 800px;
margin-left: auto ;
margin-right: auto ;
margin-top: 50px;
padding: 20px;

-moz-border-radius: 15px;
border-radius: 15px;
}

div.content .item {
margin-bottom: 30px;
}

div.content div.item .example_code {
padding:10px;
margin-top: 20px;
-moz-border-radius: 15px;
border-radius: 15px;
background-color: rgb(35,31,32);
}

div.content div.item .example_code iframe {
width: 100%;
height: 300px;
margin-top: 20px;
background-color: rgb(35,31,32);
margin-left: auto ;
margin-right: auto ;
border:none;
overflow: hidden;
}

/*this causes the codemirror to fit the code*/
div.content .Codemirror-Scroll {
height: auto;
overflow: visible;
}

div.content .CodeMirror-gutter {
background-color: rgb(35,31,32);
color: rgba(255,255,255,.5);
}

div.content div.item div.header{
font-weight: bold;
font-size: 20;
margin-bottom: 5px;
}

.code {
font-family: "Lucida Console", Monaco, monospace;
}

.motv {
margin-top: 50px;
font-size: 48;
text-align: center;
width: 80%;
max-width: 800px;
margin-right: auto;
margin-left: auto;
padding: 20px;
background-color: rgba(255,255,255,.5);
-moz-border-radius: 15px;
border-radius: 15px;
}

#footer {
width: 80%;
max-width: 800px;
margin-right: auto;
margin-left: auto;
margin-top: 20px;
padding: 20px;
background-color: rgba(255,255,255,.5);
-moz-border-radius: 15px;
border-radius: 15px;
text-align: center;
}
6 changes: 6 additions & 0 deletions config/joodee.css
@@ -0,0 +1,6 @@
body {
background-image:url('JooDee.png');
background-repeat:no-repeat;
background-position:left bottom;
background-attachment: fixed;
}
2 changes: 1 addition & 1 deletion demo/joodee.joo
Expand Up @@ -41,7 +41,7 @@
<:
//sweet other line of code
console.log("joodee is fun.")
var debugging.is.cool = true;
//var debugging.is.cool = true;
var x = "meaningless";
var y = "lame";
:>
Expand Down
4 changes: 2 additions & 2 deletions joodee.js
Expand Up @@ -170,13 +170,13 @@ exports.Server = function (options) {
data404 = fs.readFileSync(options.error404);
}
catch(e) {
data404 = fs.readFileSync(nodeDir+options.error404);
data404 = fs.readFileSync(pathLib.join(nodeDir,options.error404));
}
try {
data500 = fs.readFileSync(options.error500);
}
catch(e) {
data500 = fs.readFileSync(nodeDir+options.error500);
data500 = fs.readFileSync(pathLib.join(nodeDir,options.error500));
}


Expand Down

0 comments on commit cbed31e

Please sign in to comment.