aboutsummaryrefslogtreecommitdiffhomepage
path: root/build.html
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2021-11-20 18:43:52 +0300
committerlevlam <levlam@telegram.org>2021-11-20 18:43:52 +0300
commit743a30d470d4c36de6864094542e8e21d4fb3979 (patch)
tree9f2fca7789f884c33c4cd9d09d336426c9ed3ba9 /build.html
parent6832b86947e657b5efbd4be8c4757e3829a7bcbb (diff)
Show "Copy" button only if copying of all build instructions is possible.
Diffstat (limited to 'build.html')
-rw-r--r--build.html14
1 files changed, 1 insertions, 13 deletions
diff --git a/build.html b/build.html
index 6b89c869b..3cf8802d6 100644
--- a/build.html
+++ b/build.html
@@ -16,7 +16,6 @@
--color-copy-success-border: rgb(0, 255, 0);
--color-copy-fail-background: #ffcbcb;
--color-copy-fail-border: rgb(255, 0, 0);
- --color-copy-warning: orange;
color: var(--color);
background: var(--background);
@@ -175,17 +174,6 @@
background: var(--color-copy-fail-background);
border-color: var(--color-copy-fail-border);
}
- #copyBuildCommandsButton .notice {
- font-size: 14px;
- font-weight: bold;
- margin-left: 5px;
- color: var(--color-copy-warning);
- display: none;
- }
- #copyBuildCommandsButton:hover .notice,
- #copyBuildCommandsButton:focus .notice {
- display: inline;
- }
</style>
</head>
@@ -322,7 +310,6 @@
<code id="buildCommands">Empty commands</code>
<button id="copyBuildCommandsButton" onclick="copyBuildInstructions()">
<span id="copyBuildCommandsText">Copy</span>
- <span class="notice">Notice: Not all build instructions can be just copied and pasted</span>
</button>
</div>
</div>
@@ -1086,6 +1073,7 @@ function onOptionsChanged() {
commands.push((use_powershell ? 'dir ' : 'ls -l ') + install_dir);
}
document.getElementById('buildCommands').innerHTML = '<ul><li>' + commands.join('</li><li>') + '</li></ul>';
+ document.getElementById('copyBuildCommandsButton').style.display = commands.includes('exit') ? 'none' : 'block';
}
function copyBuildInstructions() {