mirror of
https://github.com/unraid/webgui.git
synced 2026-01-13 13:09:58 -06:00
68 lines
2.9 KiB
PHP
68 lines
2.9 KiB
PHP
<?PHP
|
|
/* Copyright 2005-2020, Lime Technology
|
|
* Copyright 2012-2020, Bergware International.
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License version 2,
|
|
* as published by the Free Software Foundation.
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*/
|
|
?>
|
|
<?
|
|
$docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
|
|
// add translations
|
|
$_SERVER['REQUEST_URI'] = 'docker';
|
|
require_once "$docroot/webGui/include/Translations.php";
|
|
|
|
require_once "$docroot/webGui/include/Helpers.php";
|
|
extract(parse_plugin_cfg('dynamix',true));
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html <?=$display['rtl']?>lang="<?=strtok($locale,'_')?:'en'?>">
|
|
<head>
|
|
<title><?=_('Container Size')?></title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta http-equiv="Content-Security-Policy" content="block-all-mixed-content">
|
|
<meta name="format-detection" content="telephone=no">
|
|
<meta name="viewport" content="width=1600">
|
|
<meta name="robots" content="noindex, nofollow">
|
|
<meta name="referrer" content="same-origin">
|
|
<link type="text/css" rel="stylesheet" href="<?autov("/webGui/styles/default-fonts.css")?>">
|
|
<link type="text/css" rel="stylesheet" href="<?autov("/webGui/styles/default-popup.css")?>">
|
|
<link type="text/css" rel="stylesheet" href="<?autov("/webGui/styles/font-awesome.css")?>">
|
|
</head>
|
|
<style>
|
|
div.button{width:100%;text-align:center;display:none}
|
|
div.spinner{position:fixed;top:50%;left:50%;margin-top:-32px;margin-left:-64px}
|
|
div.spinner .unraid_mark{height:64px}
|
|
div.spinner .unraid_mark_2,div .unraid_mark_4{animation:mark_2 1.5s ease infinite}
|
|
div.spinner .unraid_mark_3{animation:mark_3 1.5s ease infinite}
|
|
div.spinner .unraid_mark_6,div .unraid_mark_8{animation:mark_6 1.5s ease infinite}
|
|
div.spinner .unraid_mark_7{animation:mark_7 1.5s ease infinite}
|
|
@keyframes mark_2{50% {transform:translateY(-40px)} 100% {transform:translateY(0px)}}
|
|
@keyframes mark_3{50% {transform:translateY(-62px)} 100% {transform:translateY(0px)}}
|
|
@keyframes mark_6{50% {transform:translateY(40px)} 100% {transform:translateY(0px)}}
|
|
@keyframes mark_7{50% {transform:translateY(62px)} 100% {transform: translateY(0px)}}
|
|
pre{font-family:bitstream;font-size:1.3rem}
|
|
</style>
|
|
<script src="<?autov('/webGui/javascript/dynamix.js')?>"></script>
|
|
<script>
|
|
$(function(){
|
|
$('div.spinner').html('<?readfile("$docroot/webGui/images/animated-logo.svg")?>');
|
|
$.get('/plugins/dynamix.docker.manager/include/GetContainerSize.php',function(data){
|
|
$('div.spinner').hide();
|
|
$('#data').text(data);
|
|
$('div.button').show();
|
|
});
|
|
});
|
|
</script>
|
|
<body style='margin:20px'>
|
|
<div class="spinner"></div>
|
|
<pre id="data"></pre>
|
|
<div class="button"><input type="button" value="<?=_('Done')?>" onclick="top.Shadowbox.close()"></div>
|
|
</body>
|
|
</html>
|