Skip to content

Commit 09d51aa

Browse files
committed
update homepage test
1 parent b0794a3 commit 09d51aa

2 files changed

Lines changed: 7 additions & 13 deletions

File tree

home.js

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const variants = [
2-
['a', 0.8],
3-
['b', 0.2]
2+
['a', 0.7],
3+
['c', 0.3]
44
]
55

66
let chosenVariant = ''
@@ -16,17 +16,11 @@ for (let variant of variants) {
1616

1717
document.body.classList.add('variant-' + chosenVariant)
1818

19-
if (chosenVariant === 'b') {
20-
Array.from(document.querySelectorAll('.download-button .button-label')).forEach(function(label) {
21-
const platform = getUserPlatform()
22-
if (platform === 'mac') {
23-
label.textContent = 'Download for macOS';
24-
} else if (platform === 'windows') {
25-
label.textContent = 'Download for Windows';
26-
} else if (platform === 'linux') {
27-
label.textContent = 'Install for Linux';
28-
}
29-
});
19+
if (chosenVariant === 'c') {
20+
const platform = getUserPlatform()
21+
if (platform === 'windows') {
22+
document.getElementById('header-image').src = 'splash/tabbar-windows.png';
23+
}
3024
}
3125

3226
if (window.location.hostname === 'minbrowser.org') {

splash/tabbar-windows.png

46.4 KB
Loading

0 commit comments

Comments
 (0)