Commit f5b9fb48 authored by dmorley's avatar dmorley

unbreak chart.js and more info for mobile

parent e42e36d0
......@@ -198,9 +198,9 @@ foreach ($csoftwares as $csoftware => $details) {
</medium>
</footer>
<input type="hidden" name="software" value="<?php echo lcfirst($softwarejs) ?>"/>
<input type="hidden" name="software" value="<?php echo lcfirst($softwarejs) ?>">
<script src="node_modules/chart.js/dist/Chart.min.js"></script>
<?php
$statsview && printf('<script src="node_modules/chart.js/dist/Chart.min.js"></script>');
$statsview && include_once __DIR__ . '/statsviewjs.php';
$fullview && printf('<script defer src="js/podup.min.js"></script>');
?>
......
......@@ -51,9 +51,9 @@ foreach ($pods as $pod) {
$tip = "{$pod['domain']} last checked {$last_podcheck} ago, over the last {$humanmonitored} uptime was {$pod['uptime_alltime']}%";
if (($_COOKIE['domain'] ?? null) === $pod['domain']) {
echo '<tr><td title="This is the last pod you visited from this site. ' . $tip . '" data-placement="bottom" data-toggle="tooltip" class="bg-blue"><a class="text-white url" target="_pod" href="/go.php?domain=' . $pod['domain'] . '">' . idn_to_utf8($pod['domain']) . '</a></td>';
echo '<tr><td title="This is the last pod you visited from this site. ' . $tip . '" data-placement="bottom" data-toggle="tooltip" class="bg-blue"><a class="text-white url" target="_pod" href="/go.php?domain=' . $pod['domain'] . '">' . idn_to_utf8($pod['domain']) . '</a><a href="/' . $pod['domain'] . '"><span style="font-size: 1.7em; opacity: 0.5;" class="fa fa-info-circle align-top pl-3 d-lg-none"></span></a></td>';
} else {
echo '<tr><td data-placement="bottom" title="' . $tip . '" data-toggle="tooltip"><a class="url" target="_pod" href="/go.php?domain=' . $pod['domain'] . '">' . idn_to_utf8($pod['domain']) . '</a></td>';
echo '<tr><td data-placement="bottom" title="' . $tip . '" data-toggle="tooltip"><a class="url" target="_pod" href="/go.php?domain=' . $pod['domain'] . '">' . idn_to_utf8($pod['domain']) . '</a><a href="/' . $pod['domain'] . '"><span style="font-size: 1.7em; opacity: 0.5;" class="fa fa-info-circle align-top pl-3 d-lg-none"></span></a></td>';
}
if ($pod['shortversion'] > $pod['masterversion']) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment