mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-24 18:02:02 +01:00
doc: Force HTTPS
This commit is contained in:
parent
03ecb80fdf
commit
2d0ec85a2b
@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../scripts/force-https.js"></script>
|
||||
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
|
||||
<link rel="icon" href="../favicon.png" type="image/png" >
|
||||
<title>Ebiten example - {{.Example.Name}}</title>
|
||||
@ -13,7 +14,7 @@
|
||||
<nav class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten">GitHub</a></li>
|
||||
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="./scripts/force-https.js"></script>
|
||||
<meta name="description" content="Ebiten - A simple SNES-like 2D game library in Go">
|
||||
<link rel="shortcut icon" href="./favicon.png" type="image/png">
|
||||
<link rel="icon" href="./favicon.png" type="image/png">
|
||||
@ -19,7 +20,7 @@
|
||||
</ul>
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten">GitHub</a></li>
|
||||
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
|
||||
</ul>
|
||||
</nav>
|
||||
@ -53,7 +54,7 @@
|
||||
</div>
|
||||
{{- end}}
|
||||
</div>
|
||||
<p><a href="http://blog.golang.org/go-programming-language-turns-two">The Gopher photographs by Chris Nokleberg</a> are licensed under <a href="https://creativecommons.org/licenses/by/3.0/">the Creative Commons 3.0 Attributions License</a>.</p>
|
||||
<p><a href="https://blog.golang.org/go-programming-language-turns-two">The Gopher photographs by Chris Nokleberg</a> are licensed under <a href="https://creativecommons.org/licenses/by/3.0/">the Creative Commons 3.0 Attributions License</a>.</p>
|
||||
|
||||
<h3>Execute the examples</h2>
|
||||
<pre><code class="language-bash">:; go get github.com/hajimehoshi/ebiten
|
||||
|
@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../scripts/force-https.js"></script>
|
||||
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
|
||||
<link rel="icon" href="../favicon.png" type="image/png" >
|
||||
<title>Ebiten example - alphablending</title>
|
||||
@ -13,7 +14,7 @@
|
||||
<nav class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten">GitHub</a></li>
|
||||
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../scripts/force-https.js"></script>
|
||||
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
|
||||
<link rel="icon" href="../favicon.png" type="image/png" >
|
||||
<title>Ebiten example - audio</title>
|
||||
@ -13,7 +14,7 @@
|
||||
<nav class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten">GitHub</a></li>
|
||||
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../scripts/force-https.js"></script>
|
||||
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
|
||||
<link rel="icon" href="../favicon.png" type="image/png" >
|
||||
<title>Ebiten example - blocks</title>
|
||||
@ -13,7 +14,7 @@
|
||||
<nav class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten">GitHub</a></li>
|
||||
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../scripts/force-https.js"></script>
|
||||
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
|
||||
<link rel="icon" href="../favicon.png" type="image/png" >
|
||||
<title>Ebiten example - font</title>
|
||||
@ -13,7 +14,7 @@
|
||||
<nav class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten">GitHub</a></li>
|
||||
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../scripts/force-https.js"></script>
|
||||
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
|
||||
<link rel="icon" href="../favicon.png" type="image/png" >
|
||||
<title>Ebiten example - gamepad</title>
|
||||
@ -13,7 +14,7 @@
|
||||
<nav class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten">GitHub</a></li>
|
||||
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../scripts/force-https.js"></script>
|
||||
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
|
||||
<link rel="icon" href="../favicon.png" type="image/png" >
|
||||
<title>Ebiten example - hsv</title>
|
||||
@ -13,7 +14,7 @@
|
||||
<nav class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten">GitHub</a></li>
|
||||
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../scripts/force-https.js"></script>
|
||||
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
|
||||
<link rel="icon" href="../favicon.png" type="image/png" >
|
||||
<title>Ebiten example - hue</title>
|
||||
@ -13,7 +14,7 @@
|
||||
<nav class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten">GitHub</a></li>
|
||||
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../scripts/force-https.js"></script>
|
||||
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
|
||||
<link rel="icon" href="../favicon.png" type="image/png" >
|
||||
<title>Ebiten example - keyboard</title>
|
||||
@ -13,7 +14,7 @@
|
||||
<nav class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten">GitHub</a></li>
|
||||
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../scripts/force-https.js"></script>
|
||||
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
|
||||
<link rel="icon" href="../favicon.png" type="image/png" >
|
||||
<title>Ebiten example - masking</title>
|
||||
@ -13,7 +14,7 @@
|
||||
<nav class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten">GitHub</a></li>
|
||||
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../scripts/force-https.js"></script>
|
||||
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
|
||||
<link rel="icon" href="../favicon.png" type="image/png" >
|
||||
<title>Ebiten example - mosaic</title>
|
||||
@ -13,7 +14,7 @@
|
||||
<nav class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten">GitHub</a></li>
|
||||
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../scripts/force-https.js"></script>
|
||||
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
|
||||
<link rel="icon" href="../favicon.png" type="image/png" >
|
||||
<title>Ebiten example - noise</title>
|
||||
@ -13,7 +14,7 @@
|
||||
<nav class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten">GitHub</a></li>
|
||||
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../scripts/force-https.js"></script>
|
||||
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
|
||||
<link rel="icon" href="../favicon.png" type="image/png" >
|
||||
<title>Ebiten example - paint</title>
|
||||
@ -13,7 +14,7 @@
|
||||
<nav class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten">GitHub</a></li>
|
||||
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../scripts/force-https.js"></script>
|
||||
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
|
||||
<link rel="icon" href="../favicon.png" type="image/png" >
|
||||
<title>Ebiten example - perspective</title>
|
||||
@ -13,7 +14,7 @@
|
||||
<nav class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten">GitHub</a></li>
|
||||
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../scripts/force-https.js"></script>
|
||||
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
|
||||
<link rel="icon" href="../favicon.png" type="image/png" >
|
||||
<title>Ebiten example - piano</title>
|
||||
@ -13,7 +14,7 @@
|
||||
<nav class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten">GitHub</a></li>
|
||||
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../scripts/force-https.js"></script>
|
||||
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
|
||||
<link rel="icon" href="../favicon.png" type="image/png" >
|
||||
<title>Ebiten example - rotate</title>
|
||||
@ -13,7 +14,7 @@
|
||||
<nav class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten">GitHub</a></li>
|
||||
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="../scripts/force-https.js"></script>
|
||||
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
|
||||
<link rel="icon" href="../favicon.png" type="image/png" >
|
||||
<title>Ebiten example - sprites</title>
|
||||
@ -13,7 +14,7 @@
|
||||
<nav class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten">GitHub</a></li>
|
||||
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
|
||||
</ul>
|
||||
</nav>
|
||||
|
@ -1,4 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<script src="./scripts/force-https.js"></script>
|
||||
<meta name="description" content="Ebiten - A simple SNES-like 2D game library in Go">
|
||||
<link rel="shortcut icon" href="./favicon.png" type="image/png">
|
||||
<link rel="icon" href="./favicon.png" type="image/png">
|
||||
@ -19,7 +20,7 @@
|
||||
</ul>
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten">GitHub</a></li>
|
||||
<li><a href="http://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://godoc.org/github.com/hajimehoshi/ebiten">GoDoc</a></li>
|
||||
<li><a href="https://github.com/hajimehoshi/ebiten/wiki">Wiki</a>
|
||||
</ul>
|
||||
</nav>
|
||||
@ -81,7 +82,7 @@
|
||||
<a class="thumbnail" scrolling="no" href="examples/blocks.html"><img src="images/examples/blocks.png" width="256" height="240" alt="Ebiten example: blocks" class="example"></a>
|
||||
</div>
|
||||
</div>
|
||||
<p><a href="http://blog.golang.org/go-programming-language-turns-two">The Gopher photographs by Chris Nokleberg</a> are licensed under <a href="https://creativecommons.org/licenses/by/3.0/">the Creative Commons 3.0 Attributions License</a>.</p>
|
||||
<p><a href="https://blog.golang.org/go-programming-language-turns-two">The Gopher photographs by Chris Nokleberg</a> are licensed under <a href="https://creativecommons.org/licenses/by/3.0/">the Creative Commons 3.0 Attributions License</a>.</p>
|
||||
|
||||
<h3>Execute the examples</h2>
|
||||
<pre><code class="language-bash">:; go get github.com/hajimehoshi/ebiten
|
||||
|
14
_docs/public/scripts/force-https.js
Normal file
14
_docs/public/scripts/force-https.js
Normal file
@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
(function() {
|
||||
var location = window.location;
|
||||
if (location.hostname === 'localhost' || location.hostname === '127.0.0.1') {
|
||||
return;
|
||||
}
|
||||
var protocol = location.protocol;
|
||||
if (protocol === 'https:') {
|
||||
return;
|
||||
}
|
||||
var url = 'https:' + window.location.href.substring(protocol.length);
|
||||
window.location.href = url;
|
||||
})();
|
Loading…
Reference in New Issue
Block a user