Skip to content

Commit

Permalink
Added logo
Browse files Browse the repository at this point in the history
  • Loading branch information
vti committed Jun 8, 2010
1 parent 1a487c0 commit 3af9838
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
12 changes: 12 additions & 0 deletions public/main.css
Expand Up @@ -44,6 +44,17 @@ pre {
color:red;
}

#logo {
background:#000;
color:#fff;
text-align:center;
padding:0.5em;
position:absolute;
right:0px;
top:0px;
z-index:2;
}

#status {
background:#000;
color:#fff;
Expand All @@ -55,6 +66,7 @@ pre {
z-index:2;
}


#header,#footer {
color:#333;
text-align:center;
Expand Down
8 changes: 7 additions & 1 deletion showmetheslides
Expand Up @@ -113,6 +113,7 @@ get '/' => sub {

$self->stash(header => $METADATA->{header});
$self->stash(footer => $METADATA->{footer});
$self->stash(logo => $METADATA->{logo});
} => 'index';

any '/login' => sub {
Expand Down Expand Up @@ -260,7 +261,7 @@ sub _read_slides {
my $metadata = {};
if ($slurp =~ s/^(.*?)\s*(?=@)//s) {
foreach (split /\n/ => $1) {
my ($name, $value) = ($_ =~ m/(.*?):(.*)/);
my ($name, $value) = ($_ =~ m/(.*?):\s*(.*)/);
$metadata->{lc $name} = $value;
}
}
Expand Down Expand Up @@ -372,6 +373,11 @@ installed. It is used as workaround.
slides: <span id="websocket-presentation-current">n/a</span> /
<span id="websocket-presentation-total">n/a</span>
</div>
% if (my $logo = stash 'logo') {
<div id="logo">
<img src="<%= $logo %>" />
</div>
% }
<div id="chat">
<div id="chat-menu"><a href="" id="toggle">Chat</a></div>
<div id="chat-window"></div>
Expand Down

0 comments on commit 3af9838

Please sign in to comment.