fix(old.index.php): remove redundant info
this file will eventually be deleted once real consolidation happensmain
parent
9f23e80ede
commit
984178cc03
|
|
@ -1,34 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>homo.casa</title>
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
||||
<link rel="manifest" href="/site.webmanifest">
|
||||
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#ee0000">
|
||||
<meta name="msapplication-TileColor" content="#00aba9">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
|
||||
<?php
|
||||
function getByteString($bytes) {
|
||||
$symbols = array('B', 'KB', 'MB', 'GB', 'TB');
|
||||
$exp = ($bytes ? floor(log($bytes)/log(1024)) : 0);
|
||||
return sprintf(
|
||||
'%.2f '.$symbol[$exp],
|
||||
($bytes ? $bytes/pow(1024, floor($exp)) : 0)
|
||||
);
|
||||
}
|
||||
function getPercentageUsed($total, $used) {
|
||||
return ($total && $used ?
|
||||
sprintf('%.4f', (100 * $used / $total))
|
||||
: false);
|
||||
}
|
||||
function getDifference($minuend, $subtrahend) {
|
||||
return ($minuend && $subtrahend ?
|
||||
$minuend - $subtrahend
|
||||
: false);
|
||||
}
|
||||
|
||||
$hinamizawa_total = disk_total_space("/data/");
|
||||
$hinamizawa_free = disk_free_space("/data/");
|
||||
$hinamizawa_used = getDifference($hinamizawa_total, $hinamizawa_free);
|
||||
|
|
@ -83,41 +55,7 @@
|
|||
.home {
|
||||
width: 50%;
|
||||
}
|
||||
.pie {
|
||||
background: #bbb;
|
||||
border-radius: 100%;
|
||||
height: calc(var(--size, 200) * 1px);
|
||||
width: calc(var(--size, 200) * 1px);
|
||||
position: relative;
|
||||
}
|
||||
.slice {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
transform:
|
||||
translate(0, -50%)
|
||||
rotate(90deg);
|
||||
transform-origin: 50% 100%;
|
||||
}
|
||||
.slice:after,
|
||||
.slice:before {
|
||||
background: var(--bg, #fff);
|
||||
content: '';
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
}
|
||||
.slice:before {
|
||||
--degrees: calc((var(--value, 45) / 100) * 360);
|
||||
transform:
|
||||
translate(0, 100%)
|
||||
rotate(calc(var(--degrees) * 1deg))
|
||||
;
|
||||
transform-origin: 50% 0;
|
||||
}
|
||||
.slice:after {
|
||||
opacity: var(--over50, 0);
|
||||
}
|
||||
|
||||
.hinamizawa {
|
||||
--bg: #637bc0;
|
||||
background: var(--bg, #637bc0);
|
||||
|
|
@ -138,26 +76,6 @@
|
|||
--bg: #86c9a8;
|
||||
background: var(--bg, #86c9a8);
|
||||
}
|
||||
#hinamizawa-used {
|
||||
--value: <?php echo ($hinamizawa_percent ? $hinamizawa_percent : 0); ?>;
|
||||
--over50: <?php echo ($hinamizawa_percent > 50 ? '1' : '0'); ?>
|
||||
}
|
||||
#maebara-used {
|
||||
--value: <?php echo ($maebara_percent ? $maebara_percent : 0); ?>;
|
||||
--over50: <?php echo ($maebara_percent > 50 ? '1' : '0'); ?>
|
||||
}
|
||||
#houjou-used {
|
||||
--value: <?php echo ($houjou_percent ? $houjou_percent : 0); ?>;
|
||||
--over50: <?php echo ($houjou_percent > 50 ? '1' : '0'); ?>
|
||||
}
|
||||
#ryuuguu-used {
|
||||
--value: <?php echo ($ryuuguu_percent ? $ryuuguu_percent : 0); ?>;
|
||||
--over50: <?php echo ($ryuuguu_percent > 50 ? '1' : '0'); ?>
|
||||
}
|
||||
#sonozaki-used {
|
||||
--value: <?php echo ($sonozaki_percent ? $sonozaki_percent : 0); ?>;
|
||||
--over50: <?php echo ($sonozaki_percent > 50 ? '1' : '0'); ?>
|
||||
}
|
||||
|
||||
/* services */
|
||||
.service {
|
||||
|
|
|
|||
Loading…
Reference in New Issue