Skip to content

Commit

Permalink
update so games.html shows games that need a newer version of hft
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Sep 9, 2014
1 parent 36e3d50 commit d3fcda1
Show file tree
Hide file tree
Showing 4 changed files with 1,141 additions and 95 deletions.
16 changes: 15 additions & 1 deletion public/css/menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,22 @@ h2 a:hover {
font-size: medium;
text-shadow: none;
}

.upgrade-hft {
background-color: rgba(128,0,0,0.9);
color: white;
width: 100%;
height: 100%;
position: absolute;
left: 0px;
top: -0px;
z-index: 2;
display: flex;
justify-content: center;
align-items: center;
}
.hidden-msg {
position: fixed;
z-index: 10;
left: 0px;
top: 0px;
width: 100%;
Expand Down Expand Up @@ -161,6 +174,7 @@ h2 a:hover {

height: 150px;
overflow: hidden;
position: relative;
}
.game>a>div {
padding: 5px;
Expand Down
7 changes: 5 additions & 2 deletions public/games.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,14 @@
<link rel="stylesheet" href="css/menu.css">
<style>
</style>
<script class="item-template" id="upgrade-item-template" type="not-javascript">
<div class="game"><a class="upgrade-button" title="%(info.happyFunTimes.gameId)s" id="%(count)s-button"><div>%(dev)s%(info.name)s</div><img src="%(screenshotUrl)s" /></a><div class="upgrade-hft">Needs new HappyFunTimes</div></div>
</script>
<script class="item-template" id="unity3d-item-template" type="not-javascript">
<div class="game"><a class="launch-button" title="%(info.happyFunTimes.gameId)s" id="%(count)s-button"><div>%(info.name)s%(dev)s</div><img src="%(screenshotUrl)s" /></a></div>
<div class="game"><a class="launch-button" title="%(info.happyFunTimes.gameId)s" id="%(count)s-button"><div>%(dev)s%(info.name)s</div><img src="%(screenshotUrl)s" /></a></div>
</script>
<script class="item-template" id="html-item-template" type="not-javascript">
<div class="game"><a href="%(gameUrl)s" title="%(info.happyFunTimes.gameId)s" id="%(count)s-button"><div>%(info.name)s%(dev)s</div><img src="%(screenshotUrl)s" /></a></div>
<div class="game"><a href="%(gameUrl)s" title="%(info.happyFunTimes.gameId)s" id="%(count)s-button"><div>%(dev)s%(info.name)s</div><img src="%(screenshotUrl)s" /></a></div>
</script>
</head>
<body>
Expand Down
Loading

0 comments on commit d3fcda1

Please sign in to comment.