ryzen-controller/index.html

161 lines
7.6 KiB
HTML
Raw Normal View History

2019-02-27 02:06:13 +07:00
<!DOCTYPE html>
<html>
2019-02-27 20:00:19 +07:00
<head>
2019-02-27 20:12:58 +07:00
<title>Ryzen Controller</title>
2019-02-27 20:00:19 +07:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./node_modules/uikit/dist/css/uikit.min.css" />
<script src="./node_modules/uikit/dist/js/uikit.min.js"></script>
<script src="./node_modules/uikit/dist/js/uikit-icons.min.js"></script>
2019-03-08 19:02:14 +07:00
<style>
#release-tab.uk-active {
position:absolute;display: inline-block;width: 100%;height: 100%;
}
</style>
2019-02-27 20:00:19 +07:00
</head>
2019-03-08 19:02:14 +07:00
<body class="uk-animation-fade" uk-height-viewport="expand: true">
2019-03-01 21:38:59 +07:00
<h1>Ryzen Controller <span id="version" class="uk-badge"></span></h1>
2019-03-08 02:00:12 +07:00
2019-03-08 19:02:14 +07:00
<ul uk-switcher="animation: uk-animation-fade" uk-tab uk-sticky class="uk-background-default uk-margin-remove">
2019-02-28 14:11:03 +07:00
<li><a href="#">Controller</a></li>
2019-02-27 20:00:19 +07:00
<li><a href="#">Presets</a></li>
2019-03-08 01:57:28 +07:00
<li><a href="#">Settings</a></li>
2019-03-08 19:02:14 +07:00
<li><a href="#">Releases</a></li>
2019-02-27 20:00:19 +07:00
<li><a href="#">Logs</a></li>
</ul>
2019-03-08 19:02:14 +07:00
<ul class="uk-switcher uk-margin-remove" uk-height-viewport="expand: true" style="position:relative;">
2019-03-08 02:00:12 +07:00
2019-03-08 19:02:14 +07:00
<li class="uk-margin-top uk-margin-bottom uk-container" id="controller-tab">
2019-02-28 23:53:13 +07:00
<h3>STAPM Limit (W)</h3>
<div class="uk-grid-small" uk-grid>
2019-03-01 04:18:38 +07:00
<div class="uk-width-1-6">
2019-02-28 23:53:13 +07:00
<input class="uk-input" type="number" min="5" max="60" value="20" id="stapm_limit_w" repeat="stapm_limit_w_range">
</div>
2019-03-01 04:18:38 +07:00
<div class="uk-width-expand">
2019-02-28 23:53:13 +07:00
<input class="uk-range" type="range" min="5" max="60" value="20" repeat="stapm_limit_w" id="stapm_limit_w_range">
</div>
</div>
<h3>PPT Fast Limit (W)</h3>
<div class="uk-grid-small" uk-grid>
2019-03-01 04:18:38 +07:00
<div class="uk-width-1-6">
2019-02-28 23:53:13 +07:00
<input class="uk-input" type="number" min="5" max="60" value="25" id="ppt_fast_limit_w" repeat="ppt_fast_limit_w_range">
</div>
2019-03-01 04:18:38 +07:00
<div class="uk-width-expand">
2019-02-28 23:53:13 +07:00
<input class="uk-range" type="range" min="5" max="60" value="25" repeat="ppt_fast_limit_w" id="ppt_fast_limit_w_range">
</div>
</div>
<h3>PPT Slow Limit (W)</h3>
<div class="uk-grid-small" uk-grid>
2019-03-01 04:18:38 +07:00
<div class="uk-width-1-6">
2019-02-28 23:53:13 +07:00
<input class="uk-input" type="number" min="5" max="60" value="10" id="ppt_slow_limit_w" repeat="ppt_slow_limit_w_range">
</div>
2019-03-01 04:18:38 +07:00
<div class="uk-width-expand">
2019-02-28 23:53:13 +07:00
<input class="uk-range" type="range" min="5" max="60" value="10" repeat="ppt_slow_limit_w" id="ppt_slow_limit_w_range">
</div>
</div>
<h3>Temperature Limit (°C)</h3>
<div class="uk-grid-small" uk-grid>
2019-03-01 04:18:38 +07:00
<div class="uk-width-1-6">
2019-02-28 23:53:13 +07:00
<input class="uk-input" type="number" min="50" max="100" value="80" id="temperature_limit_c" repeat="temperature_limit_c_range">
</div>
2019-03-01 04:18:38 +07:00
<div class="uk-width-expand">
2019-02-28 23:53:13 +07:00
<input class="uk-range" type="range" min="50" max="100" value="80" repeat="temperature_limit_c" id="temperature_limit_c_range">
</div>
</div>
<h3>VRM Current (A)</h3>
<div class="uk-grid-small" uk-grid>
2019-03-01 04:18:38 +07:00
<div class="uk-width-1-6">
2019-02-28 23:53:13 +07:00
<input class="uk-input" type="number" min="20" max="100" value="30" id="vrm_current_m_a" repeat="vrm_current_m_a_range">
</div>
2019-03-01 04:18:38 +07:00
<div class="uk-width-expand">
2019-02-28 23:53:13 +07:00
<input class="uk-range" type="range" min="20" max="100" value="30" repeat="vrm_current_m_a" id="vrm_current_m_a_range">
</div>
</div>
2019-03-10 16:17:28 +07:00
<h3>Minimum transmission frequency (Mhz)</h3>
<div class="uk-grid-small" uk-grid>
<div class="uk-width-1-6">
<input class="uk-input" type="number" min="800" max="1600" value="800" step="10" id="min_fclk_frequency" repeat="min_fclk_frequency_range">
</div>
<div class="uk-width-expand">
<input class="uk-range" type="range" min="800" max="1600" value="800" step="10" repeat="min_fclk_frequency" id="min_fclk_frequency_range">
</div>
</div>
<h3>Maximum transmission frequency (Mhz)</h3>
<div class="uk-grid-small" uk-grid>
<div class="uk-width-1-6">
<input class="uk-input" type="number" min="800" max="1600" value="1200" step="10" id="max_fclk_frequency" repeat="max_fclk_frequency_range">
</div>
<div class="uk-width-expand">
<input class="uk-range" type="range" min="800" max="1600" value="1200" step="10" repeat="max_fclk_frequency" id="max_fclk_frequency_range">
</div>
</div>
2019-03-08 02:00:12 +07:00
<p class="uk-margin">
2019-03-08 01:58:53 +07:00
<button class="uk-button uk-button-primary" onClick="applyRyzenSettings()">Apply</button>
2019-03-08 02:00:12 +07:00
<button class="uk-button uk-button-secondary" uk-toggle="target: #modal-new-preset">Save to preset</button>
</p>
2019-02-27 20:00:19 +07:00
</li>
2019-03-08 02:00:12 +07:00
2019-03-08 19:02:14 +07:00
<li class="uk-margin-top uk-margin-bottom uk-container" id="presetTab"></li>
2019-03-08 01:57:28 +07:00
2019-03-08 19:02:14 +07:00
<li class="uk-margin-top uk-margin-bottom uk-container">
2019-03-02 22:23:10 +07:00
<h3>Auto start with system:</h3>
<label><input class="uk-checkbox" type="checkbox" id="start_at_boot"> When checked, Ryzen Controller will start on system login.</label>
<h3>Auto apply on launch:</h3>
<label><input class="uk-checkbox" type="checkbox" id="apply_last_settings_on_launch"> When checked, Ryzen Controller will try to apply latest used settings on launch.</label>
<h3>Minimize to tray:</h3>
<label><input class="uk-checkbox" type="checkbox" id="minimize_to_tray"> When checked, Ryzen Controller will minimize to tray instead of taskbar.</label>
<h3>Re-apply ryzenadj periodically:</h3>
<p>Ryzen Controller will re-apply ryzenadj every X seconds. Set to 0 to disable.</p>
<div class="uk-grid-small" uk-grid>
<div class="uk-width-1-6">
<input class="uk-input" type="number" min="0" step="10" max="3600" value="0" id="reapply_periodically" repeat="reapply_periodically_range">
</div>
<div class="uk-width-expand">
<input class="uk-range" type="range" min="0" step="10" max="3600" value="0" repeat="reapply_periodically" id="reapply_periodically_range">
</div>
</div>
2019-02-28 23:53:13 +07:00
<h3>Ryzenadj path:</h3>
2019-02-28 14:11:03 +07:00
<div class="uk-grid-small" uk-grid>
<div class="uk-width-2-3@s">
<input class="uk-input" type="text" id="ryzen_adj_path">
</div>
<div class="uk-width-1-3@s">
2019-03-08 01:58:53 +07:00
<button class="uk-button uk-button-default uk-button-small" type="button" onClick="askingForRyzenAdjExecutablePath()">
2019-02-28 14:11:03 +07:00
Select path to ryzenadj.exe
</button>
</div>
</div>
</li>
2019-03-08 01:57:28 +07:00
2019-03-08 19:02:14 +07:00
<li id="release-tab">
<webview
style="height:100%;"
frameborder="0"
src="https://gitlab.com/le.storm1er/ryzen-controller/releases"
></webview>
</li>
<li class="uk-margin-top uk-margin-bottom uk-container">
2019-03-01 00:03:51 +07:00
<textarea class="uk-textarea" rows="20" id="logs" readonly></textarea>
</li>
2019-03-08 02:00:12 +07:00
2019-02-27 20:00:19 +07:00
</ul>
2019-03-08 02:00:12 +07:00
<!-- Add a preset modal -->
<div id="modal-new-preset" uk-modal>
<div class="uk-modal-dialog uk-modal-body">
<h2 class="uk-modal-title">Save current settings to preset</h2>
<p>The current settings will be saved to a new preset. Give it a name then you'll be able to reapply it fastly from the preset tab.</p>
<div class="uk-margin">
<input class="uk-input" type="text" id="new_preset_name" placeholder="Preset name: performance, low energy, unicorn power, ...">
</div>
<button class="uk-button uk-button-primary uk-modal-close" type="button" onClick="saveToNewPreset()">Save</button>
<button class="uk-button uk-button-secondary uk-modal-close" type="button">Close</button>
</div>
</div>
<script type="text/javascript" src="./js/methods.js"></script>
<script type="text/javascript" src="./js/app.js"></script>
2019-02-27 20:00:19 +07:00
</body>
2019-02-27 02:06:13 +07:00
</html>