Use image-base windows style close box

This commit is contained in:
Eric Fredricksen
2010-07-09 13:26:01 -07:00
parent 70bea2267b
commit 641e4f4807
8 changed files with 11 additions and 28 deletions
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 187 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

+2 -2
View File
@@ -15,8 +15,8 @@
<div id="titlebar"> <div id="titlebar">
<img src="swords.gif"> <img src="swords.gif">
<span>Progress Quest</span> <span id="title">Progress Quest</span>
<a id="quit"><div>X</div></a> <a id="quit"><img src="closeup.png"></a>
</div> </div>
<script src="jquery.js"></script> <script src="jquery.js"></script>
+1 -1
View File
@@ -998,7 +998,7 @@ function LoadCharacter() {
LoadGame(sheet); LoadGame(sheet);
} }
$("#titlebar span").text("Progress Quest - " + GameSaveName()); $("#title").text("Progress Quest - " + GameSaveName());
if (window.location.href.indexOf("?quit#") > 0) if (window.location.href.indexOf("?quit#") > 0)
$("#quit").click(); // TODO: cheesy $("#quit").click(); // TODO: cheesy
+1 -1
View File
@@ -23,7 +23,7 @@ input, button { display: inline; }
<div id="titlebar"> <div id="titlebar">
<img src="swords.gif"> <img src="swords.gif">
<span>Progress Quest - New Character</span> <span>Progress Quest - New Character</span>
<button id="Cancel">X</button> <a id="quit"><img src="closeup.png"></a>
</div> </div>
<div class="client"> <div class="client">
+1 -1
View File
@@ -71,7 +71,7 @@ $(document).ready(function () {
$("#Unroll").click(UnrollClick); $("#Unroll").click(UnrollClick);
$("#RandomName").click(GenClick); $("#RandomName").click(GenClick);
$('#Sold').click(sold); $('#Sold').click(sold);
$('#Cancel').click(cancel); $('#quit').click(cancel);
//var caption = 'Progress Quest - New Character'; //var caption = 'Progress Quest - New Character';
//if (MainForm.GetHostName != '') //if (MainForm.GetHostName != '')
+6 -23
View File
@@ -86,31 +86,14 @@ th:first-child {
#quit { #quit {
float: right; float: right;
border: solid 1px white; background: url(closedown.png);
border-color: white grey grey white; text-decoration: none;
height: 15px; border: none 0;
text-align: center; margin: 2px 2px 0 0;
background-color: #e7e7e7;
color: black;
margin: 2px;
padding: 1px 3px 1px 3px;
cursor: pointer;
position: relative;
display: table;
} }
/* http://www.jakpsatweb.cz/css/css-vertical-center-solution.html */ #quit:active img {
opacity: 0;
#quit div {
display: table-cell;
vertical-align: middle;
width: 100%
}
#quit:active {
border-color: #e7e7e7;
padding: 2px 2px 0px 4px;
} }
.window { .window {