diff --git a/emhttp/plugins/dynamix.vm.manager/styles/dynamix.vm.manager.css b/emhttp/plugins/dynamix.vm.manager/styles/dynamix.vm.manager.css index 0cf2f5117..f34b0c7b5 100644 --- a/emhttp/plugins/dynamix.vm.manager/styles/dynamix.vm.manager.css +++ b/emhttp/plugins/dynamix.vm.manager/styles/dynamix.vm.manager.css @@ -678,55 +678,4 @@ img.paused{opacity: 0.6;} .stopped{color:#EF3D47;} .paused{color:#F0DD33;} -.log{cursor:zoom-in;} - -#memory-slider-range { - width: 300px; - margin: 10px 0; -} -#memory-slider-range .ui-slider-range { - border-radius:0%; - background: #007cba; -} -#memory-slider-range .ui-slider-handle { - width: 10px; - margin: 0px; - outline: none; - position: absolute; -} -#memory-slider-range .ui-slider-handle:nth-of-type(1) { - border-radius: 10px 0 0 10px; - background: #007cba; - cursor: pointer; - transform: translateX(-90%); -} -#memory-slider-range .ui-slider-handle:nth-of-type(2) { - border-radius: 0 10px 10px 0; - background: #007cba; - cursor: pointer; -} - -.memory-selects { - display: flex; - justify-content: space-between; - width: 300px; - margin-top: 5px; - font-size: 12px; - color: #666; -} - -.memory-selects > div { - display: flex; - align-items: center; - gap: 5px; -} - -.memory-selects select { - min-width: 60px; - font-size: 12px; - padding: 2px 5px; - box-sizing: border-box; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; -} \ No newline at end of file +.log{cursor:zoom-in;} \ No newline at end of file diff --git a/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php b/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php index 899b5165d..94340d5d6 100644 --- a/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php +++ b/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php @@ -347,40 +347,6 @@ if ($snapshots!=null && count($snapshots) && !$boolNew) { $namedisable = ""; $snapcount = "0"; } - -function getSliderPosition($currentValue) { - global $maxmem; - $values = [128 * 1024, 256 * 1024]; - for ($i = 1; $i <= ($maxmem*2); $i++) { - $values[] = $i * 512 * 1024; - } - - $position = 0; - foreach ($values as $index => $value) { - if ($currentValue <= $value) { - $position = $index; - break; - } - } - return $position; -} - -function formatMemoryDisplay($value) { - if ($value >= 1024 * 1024) { - return ($value / (1024 * 1024)) . ' GB'; - } else { - return ($value / 1024) . ' MB'; - } -} - -$memoryValues = [ - 128 * 1024, - 256 * 1024, -]; - -for ($i = 1; $i <= ($maxmem * 2); $i++) { - $memoryValues[] = $i * 512 * 1024; -} ?> @@ -636,239 +602,57 @@ const displayOptions = = json_encode($arrDisplayOptions, JSON_HEX_TAG | JSON_H
| - Initial/Max Memory: - | -
-
-
-
-
-
-
-
-
- Initial:
-
-
-
- Maximum:
-
-
- |
- - - | -
| + _(Initial)_ _(Memory)_: + | ++ + _(Max)_ _(Memory)_: + + | ++ + | +
Select how much memory to allocate to the VM at boot.
@@ -3108,4 +2892,4 @@ $(function() { regenerateDiskPreview(); resetForm(); }); - + \ No newline at end of file