refreshed cat

This commit is contained in:
rjawor 2016-01-15 21:21:22 +01:00
parent a76594ebf4
commit a88fac76bf
7 changed files with 77 additions and 14 deletions

View File

@ -21,6 +21,60 @@
padding:0; padding:0;
} }
.hidden {
display:none;
}
#help-icon {
margin-left:20px;
cursor:pointer;
}
#result {
margin-top:10px;
}
#searchInput {
margin-bottom:10px;
}
#banner .banner-bg {
border:none;
margin-bottom:10px;
background:transparent;
width:100%;
height:100px;
}
#banner .banner-icon {
border:none;
background:transparent;
position:absolute;
top:5px;
right:10px;
}
#banner {
height: 100px;
margin-bottom: 15px;
position: relative;
}
#banner h1 {
background:transparent;
color: #e6e5e5;
font-family: Georgia, serif;
font-size: 42px;
font-style: italic;
left: 30px;
position: absolute;
top: 28px;
}
#banner h1 span {
display: block;
margin-left: 30px;
}
.suggestionsInvisible { .suggestionsInvisible {
display:none; display:none;
} }
@ -97,9 +151,6 @@ a:hover {
color: #367889; color: #367889;
text-decoration:none; text-decoration:none;
} }
a img {
border:none;
}
h1, h2, h3, h4 { h1, h2, h3, h4 {
font-weight: normal; font-weight: normal;
margin-bottom:0.5em; margin-bottom:0.5em;

BIN
cat/images/banner-thin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
cat/images/help.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@ -24,21 +24,25 @@
<div id="header"> <div id="header">
</div> </div>
<div id="content"> <div id="content">
<a href="http://tmconcordia.sourceforge.net/" target="_blank"><img src="../images/banner.jpg" alt="Banner" /></a> <section id="banner">
<br/><br/><br/> <h1>Concordia</h1>
<p>@desc@</p> <img class="banner-bg" src="../images/banner-thin.png" alt="Banner">
<p>@enjoy@</p> <img class="banner-icon" src="../images/concordia-thin.png" alt="Banner">
<label for="searchInput">@prompt@</label> </section><!-- // end #banner -->
<span class="suggestion" onclick="showHideSuggestions()">show/hide samples</span> <div id="help" class="hidden">
<br/><br/> <p>@desc@</p>
<div class="suggestionsInvisible" id="suggestions"> <p>@enjoy@</p>
<ul>@suggestions@</ul> <span class="suggestion" onclick="showHideSuggestions()">show/hide samples</span>
<br/><br/> <br/><br/>
<div class="suggestionsInvisible" id="suggestions">
<ul>@suggestions@</ul>
<br/><br/>
</div>
<label for="searchInput">@prompt@</label>
</div> </div>
<input id="searchInput" type="text" value="" /> <input id="searchInput" type="text" value="" />
<br/><br/>
<input type="button" value="search" onclick="searchHandle(@tmid@)" /> <input type="button" value="search" onclick="searchHandle(@tmid@)" />
<br/><br/><br/><br/> <img id="help-icon" src="../images/help.png" alt="help" onclick="toggleHelp()" title="show/hide help"/>
<div id="result"> <div id="result">
</div> </div>

View File

@ -1,3 +1,7 @@
function toggleHelp() {
$('#help').toggleClass('hidden');
}
function searchHandle(tmid) { function searchHandle(tmid) {
var concordiaRequest = { var concordiaRequest = {
operation: 'concordiaSearch', operation: 'concordiaSearch',

4
cat/republish.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
sudo rm -rf /var/www/html/*
sudo ./publish.py /var/www/html