<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.lntwww.lnt.ei.tum.de/index.php?action=history&amp;feed=atom&amp;title=Html5Test</id>
	<title>Html5Test - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://en.lntwww.lnt.ei.tum.de/index.php?action=history&amp;feed=atom&amp;title=Html5Test"/>
	<link rel="alternate" type="text/html" href="https://en.lntwww.lnt.ei.tum.de/index.php?title=Html5Test&amp;action=history"/>
	<updated>2026-05-03T09:58:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://en.lntwww.lnt.ei.tum.de/index.php?title=Html5Test&amp;diff=54906&amp;oldid=prev</id>
		<title>Maintenance script: Add German interlanguage link</title>
		<link rel="alternate" type="text/html" href="https://en.lntwww.lnt.ei.tum.de/index.php?title=Html5Test&amp;diff=54906&amp;oldid=prev"/>
		<updated>2026-03-16T12:27:21Z</updated>

		<summary type="html">&lt;p&gt;Add German interlanguage link&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:27, 16 March 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l137&quot;&gt;Line 137:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 137:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/body&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/body&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[de:Html5Test]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
	<entry>
		<id>https://en.lntwww.lnt.ei.tum.de/index.php?title=Html5Test&amp;diff=14196&amp;oldid=prev</id>
		<title>Tasnad: Die Seite wurde neu angelegt: „&lt;html&gt; &lt;head&gt; &lt;style&gt; canvas {     border:1px solid #d3d3d3;     background-color: #f1f1f1; } &lt;/style&gt; &lt;/head&gt;  &lt;canvas id=&quot;drawCanvas&quot; &gt; Your browser does not…“</title>
		<link rel="alternate" type="text/html" href="https://en.lntwww.lnt.ei.tum.de/index.php?title=Html5Test&amp;diff=14196&amp;oldid=prev"/>
		<updated>2017-08-04T14:16:49Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „&amp;lt;html&amp;gt; &amp;lt;head&amp;gt; &amp;lt;style&amp;gt; canvas {     border:1px solid #d3d3d3;     background-color: #f1f1f1; } &amp;lt;/style&amp;gt; &amp;lt;/head&amp;gt;  &amp;lt;canvas id=&amp;quot;drawCanvas&amp;quot; &amp;gt; Your browser does not…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;style&amp;gt;&lt;br /&gt;
canvas {&lt;br /&gt;
    border:1px solid #d3d3d3;&lt;br /&gt;
    background-color: #f1f1f1;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/style&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;canvas id=&amp;quot;drawCanvas&amp;quot; &amp;gt;&lt;br /&gt;
Your browser does not support the HTML5 Canvas, so we can&amp;#039;t show this tool! Please try again with another browser like firefox or chromium.&lt;br /&gt;
&amp;lt;/canvas&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;body onload=&amp;quot;startGame()&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;script&amp;gt;&lt;br /&gt;
var myGamePiece;&lt;br /&gt;
var myObstacles = [];&lt;br /&gt;
var myScore;&lt;br /&gt;
&lt;br /&gt;
function startGame() {&lt;br /&gt;
    myGamePiece = new component(30, 30, &amp;quot;red&amp;quot;, 10, 120);&lt;br /&gt;
    myGamePiece.gravity = 0.05;&lt;br /&gt;
    myScore = new component(&amp;quot;30px&amp;quot;, &amp;quot;Consolas&amp;quot;, &amp;quot;black&amp;quot;, 280, 40, &amp;quot;text&amp;quot;);&lt;br /&gt;
    myGameArea.start();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
var myGameArea = {&lt;br /&gt;
    canvas: document.getElementById(&amp;quot;drawCanvas&amp;quot;),&lt;br /&gt;
    start : function() {&lt;br /&gt;
        this.canvas.width = 480;&lt;br /&gt;
        this.canvas.height = 270;&lt;br /&gt;
        this.context = this.canvas.getContext(&amp;quot;2d&amp;quot;);&lt;br /&gt;
        this.frameNo = 0;&lt;br /&gt;
        this.interval = setInterval(updateGameArea, 20);&lt;br /&gt;
        },&lt;br /&gt;
    clear : function() {&lt;br /&gt;
        this.context.clearRect(0, 0, this.canvas.width, this.canvas.height);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function component(width, height, color, x, y, type) {&lt;br /&gt;
    this.type = type;&lt;br /&gt;
    this.score = 0;&lt;br /&gt;
    this.width = width;&lt;br /&gt;
    this.height = height;&lt;br /&gt;
    this.speedX = 0;&lt;br /&gt;
    this.speedY = 0;    &lt;br /&gt;
    this.x = x;&lt;br /&gt;
    this.y = y;&lt;br /&gt;
    this.gravity = 0;&lt;br /&gt;
    this.gravitySpeed = 0;&lt;br /&gt;
    this.update = function() {&lt;br /&gt;
        ctx = myGameArea.context;&lt;br /&gt;
        if (this.type == &amp;quot;text&amp;quot;) {&lt;br /&gt;
            ctx.font = this.width + &amp;quot; &amp;quot; + this.height;&lt;br /&gt;
            ctx.fillStyle = color;&lt;br /&gt;
            ctx.fillText(this.text, this.x, this.y);&lt;br /&gt;
        } else {&lt;br /&gt;
            ctx.fillStyle = color;&lt;br /&gt;
            ctx.fillRect(this.x, this.y, this.width, this.height);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    this.newPos = function() {&lt;br /&gt;
        this.gravitySpeed += this.gravity;&lt;br /&gt;
        this.x += this.speedX;&lt;br /&gt;
        this.y += this.speedY + this.gravitySpeed;&lt;br /&gt;
        this.hitBottom();&lt;br /&gt;
    }&lt;br /&gt;
    this.hitBottom = function() {&lt;br /&gt;
        var rockbottom = myGameArea.canvas.height - this.height;&lt;br /&gt;
        if (this.y &amp;gt; rockbottom) {&lt;br /&gt;
            this.y = rockbottom;&lt;br /&gt;
            this.gravitySpeed = 0;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    this.crashWith = function(otherobj) {&lt;br /&gt;
        var myleft = this.x;&lt;br /&gt;
        var myright = this.x + (this.width);&lt;br /&gt;
        var mytop = this.y;&lt;br /&gt;
        var mybottom = this.y + (this.height);&lt;br /&gt;
        var otherleft = otherobj.x;&lt;br /&gt;
        var otherright = otherobj.x + (otherobj.width);&lt;br /&gt;
        var othertop = otherobj.y;&lt;br /&gt;
        var otherbottom = otherobj.y + (otherobj.height);&lt;br /&gt;
        var crash = true;&lt;br /&gt;
        if ((mybottom &amp;lt; othertop) || (mytop &amp;gt; otherbottom) || (myright &amp;lt; otherleft) || (myleft &amp;gt; otherright)) {&lt;br /&gt;
            crash = false;&lt;br /&gt;
        }&lt;br /&gt;
        return crash;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function updateGameArea() {&lt;br /&gt;
    var x, height, gap, minHeight, maxHeight, minGap, maxGap;&lt;br /&gt;
    for (i = 0; i &amp;lt; myObstacles.length; i += 1) {&lt;br /&gt;
        if (myGamePiece.crashWith(myObstacles[i])) {&lt;br /&gt;
            return;&lt;br /&gt;
        } &lt;br /&gt;
    }&lt;br /&gt;
    myGameArea.clear();&lt;br /&gt;
    myGameArea.frameNo += 1;&lt;br /&gt;
    if (myGameArea.frameNo == 1 || everyinterval(150)) {&lt;br /&gt;
        x = myGameArea.canvas.width;&lt;br /&gt;
        minHeight = 20;&lt;br /&gt;
        maxHeight = 200;&lt;br /&gt;
        height = Math.floor(Math.random()*(maxHeight-minHeight+1)+minHeight);&lt;br /&gt;
        minGap = 50;&lt;br /&gt;
        maxGap = 200;&lt;br /&gt;
        gap = Math.floor(Math.random()*(maxGap-minGap+1)+minGap);&lt;br /&gt;
        myObstacles.push(new component(10, height, &amp;quot;green&amp;quot;, x, 0));&lt;br /&gt;
        myObstacles.push(new component(10, x - height - gap, &amp;quot;green&amp;quot;, x, height + gap));&lt;br /&gt;
    }&lt;br /&gt;
    for (i = 0; i &amp;lt; myObstacles.length; i += 1) {&lt;br /&gt;
        myObstacles[i].x += -1;&lt;br /&gt;
        myObstacles[i].update();&lt;br /&gt;
    }&lt;br /&gt;
    myScore.text=&amp;quot;SCORE: &amp;quot; + myGameArea.frameNo;&lt;br /&gt;
    myScore.update();&lt;br /&gt;
    myGamePiece.newPos();&lt;br /&gt;
    myGamePiece.update();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function everyinterval(n) {&lt;br /&gt;
    if ((myGameArea.frameNo / n) % 1 == 0) {return true;}&lt;br /&gt;
    return false;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function accelerate(n) {&lt;br /&gt;
    myGamePiece.gravity = n;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;button onmousedown=&amp;quot;accelerate(-0.2)&amp;quot; onmouseup=&amp;quot;accelerate(0.05)&amp;quot;&amp;gt;ACCELERATE&amp;lt;/button&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;Use the ACCELERATE button to stay in the air&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;How long can you stay alive?&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tasnad</name></author>
	</entry>
</feed>