You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by vk...@apache.org on 2021/01/13 00:18:34 UTC
[ignite-website] branch master updated: Ignite 3 alpha download fix
This is an automated email from the ASF dual-hosted git repository.
vkulichenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-website.git
The following commit(s) were added to refs/heads/master by this push:
new 1a405ed Ignite 3 alpha download fix
1a405ed is described below
commit 1a405ed27818c428b402b010d3584c87f1fa7ea5
Author: Valentin Kulichenko <va...@gmail.com>
AuthorDate: Tue Jan 12 16:18:17 2021 -0800
Ignite 3 alpha download fix
---
download.html | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/download.html b/download.html
index c640cbf..98a5fa7 100644
--- a/download.html
+++ b/download.html
@@ -582,7 +582,7 @@ under the License.
<td style="white-space: nowrap;">2021-01-11</td>
<td style="white-space: nowrap;">
Unix: <a download
- id="apache_ignite_binary_fabric_download"
+ id="apache_ignite_text_download"
href="[preferred]/[distdir]/3.0.0-alpha1/ignite"
onclick="gtag('event', 'download', {'event_category': 'apache_ignite_fabric_download', 'event_label': 'apache-ignite-3.0.0-alpha1'});">ignite</a>
@@ -914,6 +914,17 @@ under the License.
WebFontConfig = {
google: {families: ['Open+Sans:300,400,600,700&display=swap']}
};
+ document.querySelector('#apache_ignite_text_download').addEventListener('click', async (e) => {
+ let blob = await fetch(e.currentTarget.getAttribute('href')).then(r => r.blob());
+ let url = window.URL.createObjectURL(blob);
+ var a = document.createElement("a");
+ document.body.appendChild(a);
+ a.style = "display: none";
+ a.href = url;
+ a.download = "text";
+ a.click();
+ window.URL.revokeObjectURL(url);
+ })
(function () {
var wf = document.createElement('script');
wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';