|
1 | 1 | function PopUp() { |
2 | 2 | Swal.fire({ |
3 | | - title: '<p class=hero-heading style="color: #ffffff">Thanks for downloading JaxCore!</p>', |
4 | | - html: 'Need more help?', |
5 | | - imageUrl: '../img/core.png', |
6 | | - imageWidth: 128, |
7 | | - imageHeight: 128, |
| 3 | + title: '<p class=hero-heading style="color: #ffffff">Thanks for choosing Core!</p>', |
| 4 | + html: ' <p class="has-text-white" style="font-size: 16px">An exe has been downloaded, please run it to install.<br><br>If Windows or your browser blocks it, click run anyway (you may also need to click "more info" to see the option). It gets blocked just because the file isn\'t known.<br><br>If you are not comfortable with the installation method, click "Other methods" below.</p>', |
| 5 | + icon: 'success', |
| 6 | + // imageUrl: '../img/core.png', |
| 7 | + // imageWidth: 128, |
| 8 | + // imageHeight: 128, |
8 | 9 | background: '#181a1b', |
9 | 10 | showDenyButton: true, |
10 | | - confirmButtonColor: '#fe5721', |
11 | | - confirmButtonText: 'Read the Wiki', |
12 | | - denyButtonColor: '#5865F2', |
13 | | - denyButtonText: 'Join our Discord', |
| 11 | + confirmButtonColor: '#5865F2', |
| 12 | + confirmButtonText: 'Join our Discord', |
| 13 | + denyButtonColor: '#232323', |
| 14 | + denyButtonText: 'Other methods', |
14 | 15 | }).then((result) => { |
15 | 16 | if (result.isConfirmed) { |
16 | | - window.open('https://github.com/Jax-Core/JaxCore/wiki', '_blank') |
| 17 | + window.open('https://discord.gg/JmgehPSDD6', '_blank') |
17 | 18 | Swal.close() |
18 | 19 | } else if (result.isDenied) { |
19 | | - window.open('https://discord.gg/JmgehPSDD6', '_blank') |
| 20 | + window.open('https://jaxcore.gitbook.io/core/getting-started/installation', '_blank') |
20 | 21 | Swal.close() |
21 | 22 | } |
22 | 23 | }) |
23 | 24 | } |
24 | 25 |
|
25 | 26 | function downloadLatestCore() { |
26 | 27 | let dnld = () => |
27 | | - fetch('https://api.github.com/repos/Jax-Core/JaxCore/releases/latest') |
28 | | - .then((response) => response.json()) |
29 | | - .then((data) => { |
30 | | - data.assets.forEach((asset) => { |
31 | | - if (asset.browser_download_url.indexOf('.rmskin') != -1) { |
32 | | - window.location.href = asset.browser_download_url |
33 | | - } |
34 | | - }) |
35 | | - }) |
| 28 | + window.location.href = "https://github.com/Jax-Core/jax-core.github.io/releases/download/v1/JaxCore_PSInstaller.exe" |
| 29 | + // fetch('https://api.github.com/repos/Jax-Core/JaxCore/releases/latest') |
| 30 | + // .then((response) => response.json()) |
| 31 | + // .then((data) => { |
| 32 | + // data.assets.forEach((asset) => { |
| 33 | + // if (asset.browser_download_url.indexOf('.rmskin') != -1) { |
| 34 | + // window.location.href = asset.browser_download_url |
| 35 | + // } |
| 36 | + // }) |
| 37 | + // }) |
36 | 38 | if (navigator.userAgent.indexOf('Win') != -1) { |
37 | 39 | dnld() |
38 | 40 | PopUp() |
|
0 commit comments