Skip to content

Commit

Permalink
Update download links
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Mar 20, 2024
1 parent 3f42b72 commit a64d948
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
6 changes: 6 additions & 0 deletions _includes/update/downloads.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
}
</style>

<noscript>
<p class="padding10 text-bold ribbed-amber">
This page requires JavaScript to work properly. Please enable JavaScript in your browser settings.
</p>
</noscript>

{%- for update in site.updates reversed -%}
{%- assign latest = update.wurst-version -%}
{%- break -%}
Expand Down
15 changes: 10 additions & 5 deletions _includes/update/fabric-download.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
{%- capture mainlink -%}{{ mcxbase }}{{ basepath }}.jar{%- endcapture -%}
{%- assign mainfile = mainlink | split: '/' | last -%}
<a class="command-button download"
href="{{ mainlink }}" rel="nofollow" target="_blank"
href="javascript:void(0)"
onclick="window.open('{{ mainlink }}', '_blank')"
data-analytics="Download Wurst"
data-analytics-version="{{ page.wurst-version }}"
data-analytics-mcversion="{{ mcversion }}"
Expand All @@ -61,7 +62,8 @@
{%- assign apifile = apilink | split: '/' | last -%}
{%- endif -%}
<a class="command-button"
href="{{ apilink }}" rel="nofollow" target="_blank"
href="javascript:void(0)"
onclick="window.open('{{ apilink }}', '_blank')"
data-analytics="Download Fabric API"
data-analytics-mirror="{{ mirror }}"
{% if mirror == "GitHub" -%}
Expand Down Expand Up @@ -91,7 +93,8 @@
<li>
{%- capture srclink -%}{{ mcxbase }}{{ basepath }}-sources.jar{%- endcapture -%}
{%- assign srcfile = srclink | split: '/' | last -%}
<a href="{{ srclink }}" rel="nofollow" target="_blank"
<a href="javascript:void(0)"
onclick="window.open('{{ srclink }}', '_blank')"
data-analytics="Download Wurst"
data-analytics-version="{{ page.wurst-version }}"
data-analytics-mcversion="{{ mcversion }}"
Expand All @@ -107,7 +110,8 @@
<li>
{%- capture devlink -%}{{ mcxbase }}{{ basepath }}-dev.jar{%- endcapture -%}
{%- assign devfile = devlink | split: '/' | last -%}
<a href="{{ devlink }}" rel="nofollow" target="_blank"
<a href="javascript:void(0)"
onclick="window.open('{{ devlink }}', '_blank')"
data-analytics="Download Wurst"
data-analytics-version="{{ page.wurst-version }}"
data-analytics-mcversion="{{ mcversion }}"
Expand All @@ -123,7 +127,8 @@
<li>
{%- capture srcdevlink -%}{{ mcxbase }}{{ basepath }}-sources-dev.jar{%- endcapture -%}
{%- assign srcdevfile = srcdevlink | split: '/' | last -%}
<a href="{{ srcdevlink }}" rel="nofollow" target="_blank"
<a href="javascript:void(0)"
onclick="window.open('{{ srcdevlink }}', '_blank')"
data-analytics="Download Wurst"
data-analytics-version="{{ page.wurst-version }}"
data-analytics-mcversion="{{ mcversion }}"
Expand Down
3 changes: 2 additions & 1 deletion _includes/update/wurst6-downloads.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ <h3>
{%- endif -%}

<a class="command-button download"
href="{{ mainlink }}" rel="nofollow" target="_blank"
href="javascript:void(0)"
onclick="window.open('{{ mainlink }}', '_blank')"
data-analytics="Download Wurst"
data-analytics-version="{{ page.wurst-version }}"
data-analytics-mcversion="{{ mcversion | remove: ' OF' }}"
Expand Down

0 comments on commit a64d948

Please sign in to comment.