фикс расположения картинок

This commit is contained in:
lopar 2018-03-09 18:39:17 +02:00
parent 4def00efff
commit 0f6154cb7c

View File

@ -318,6 +318,9 @@ $online = db::c()->query('SELECT 1 FROM `online` WHERE `real_time` >= ?i', (time
<link rel=stylesheet href="css/main.css">
<link rel="stylesheet" href="/locations/style.css"/>
<meta charset="utf-8">
<style>
img.building:hover {filter:drop-shadow(2px 2px 2px white);}
</style>
<script type="text/javascript">
function solo(n) {
top.changeroom = n;
@ -349,7 +352,7 @@ $online = db::c()->query('SELECT 1 FROM `online` WHERE `real_time` >= ?i', (time
else return 'winter_';
}
function buildset($id, $img, $top, $left, $des, $noSeason = 0)
function buildset_old($id, $img, $top, $left, $des, $noSeason = 0)
{
if (!$noSeason) $img = getSeason() . $img;
?>
@ -362,6 +365,17 @@ $online = db::c()->query('SELECT 1 FROM `online` WHERE `real_time` >= ?i', (time
<?php
}
function buildset($id, $img, $top, $left, $des, $noSeason = 0)
{
if (!$noSeason) $img = getSeason() . $img;
?>
<div style="position:absolute; left:<?= $left ?>px; top:<?= $top ?>px; z-index:90; cursor: pointer;">
<img src="i/city/sub/<?= $img ?>.png" alt="<?= $des ?>" title="<?= $des ?>" class="building"
id="<?= $id ?>" onclick="solo(<?= $id ?>)"/>
</div>
<?php
}
function bgset($img)
{
$daytime = date('H');