Skip to content

Commit

Permalink
Fix download link, remove jQuery, small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuykendall committed Aug 4, 2023
1 parent 39d1788 commit 833130f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 20 deletions.
9 changes: 4 additions & 5 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<!DOCTYPE HTML>
<html lang="en">
{% capture dummy %}{% include version_info.md %}{% endcapture %}
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ page.title }} - Marathon Open Source</title>
<link rel="stylesheet" href="/site.css" type="text/css">
<link rel="stylesheet" href="/type/stylesheet.css" type="text/css">
<style type="text/css">
<style>
H1, H2 { font-weight: normal; }
H1 { text-align: center; }
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script src="/site.js" type="text/javascript"></script>
</head>
<body>
Expand Down
Binary file modified images/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ More games
<div style="margin-left: 580px; height: 100px; position: relative">
<a href="/download.html"><img src="/images/alephone_med.png" width="100" height="100" alt="Aleph One" class="noborder" style="position: absolute; left: 150px; top: 0"></a>
<a href="{{ link_alephmac }}" class="mac_block" style="position: absolute; left: 5px; top: 31px"><img src="/images/download_mac.png" width="131" height="37" alt="Download Aleph One for macOS" class="noborder"></a>
<a href="download.html" class="linux_block" style="position: absolute; left: 5px; top: 31px"><img src="/images/download_linux.png" width="131" height="37" alt="Download Aleph One for Linux" class="noborder"></a>
<a href="/download.html" class="linux_block" style="position: absolute; left: 5px; top: 31px"><img src="/images/download_linux.png" width="131" height="37" alt="Download Aleph One for Linux" class="noborder"></a>
<a href="{{ link_alephwin }}" class="win_block" style="position: absolute; left: 5px; top: 31px"><img src="/images/download_win.png" width="131" height="37" alt="Download Aleph One for Windows" class="noborder"></a>
<a href="{{ dl_alephflatpak }}" style="position: absolute; left: 265px; top: 31px"><img src="/images/moreinfo.png" width="102" height="37" alt="Available for Mac, Windows, and Linux" class="noborder"></a>
<a href="/download.html" style="position: absolute; left: 265px; top: 31px"><img src="/images/moreinfo.png" width="102" height="37" alt="Available for Mac, Windows, and Linux" class="noborder"></a>
</div>
13 changes: 8 additions & 5 deletions site.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
function switchPlatform(desired) {
var plats = new Array('mac', 'win', 'linux');
var plats = ['mac', 'win', 'linux'];
for (var pi = 0; pi < plats.length; pi++)
{
var plat = plats[pi];
var visible = (plat == desired);

$('.' + plat + '_block').css('display', (visible ? 'block' : 'none'));
var visible = (plat === desired);

var blocks = document.getElementsByClassName(plat + '_block');
for (var i = 0; i < blocks.length; i++) {
blocks[i].style.display = (visible ? 'block' : 'none');
}
}
}

Expand All @@ -31,6 +34,6 @@ function detectPlatform() {
return 'win';
}

$(document).ready(function () {
document.addEventListener('DOMContentLoaded', function() {
switchPlatform(detectPlatform());
});
9 changes: 1 addition & 8 deletions type/stylesheet.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
/* Generated by Font Squirrel (http://www.fontsquirrel.com) on November 29, 2011 */



@font-face {
font-family: 'Squarish Sans SC';
src: url('squarish_sans_ct_regular_sc-webfont.eot');
Expand All @@ -11,9 +8,5 @@
url('squarish_sans_ct_regular_sc-webfont.svg#SquarishSansCTRegularSC') format('svg');
font-weight: normal;
font-style: normal;

font-display: swap;
}




0 comments on commit 833130f

Please sign in to comment.