Skip to content

Commit

Permalink
Now with web2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskorpe committed Feb 11, 2011
1 parent 6080b56 commit e9838ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion brainfuck_cgi.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ header (char *title)

printf ("<meta http-equiv=\"content-type\"\n"
"\tcontent=\"text/html;charset=utf-8\" />\n"
"<script type=\"text/javascript\" src=\"/functions.js\"></script>\n"
"</head><body>\n");
}

Expand Down Expand Up @@ -264,7 +265,8 @@ main_site (void)
{
if (de->d_type == DT_REG)
{
printf ("<a href=\"/brainfuck/%s\">"
printf ("<a href=\"/brainfuck/%s\" "
"onClick=\"loadBf('%s'); return false;\">"
"%s</a><br />\n",
de->d_name, de->d_name, de->d_name);
}
Expand Down

0 comments on commit e9838ab

Please sign in to comment.