<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.industrial-craft.net/index.php?action=history&amp;feed=atom&amp;title=User%3AChocohead%2FLift.js</id>
	<title>User:Chocohead/Lift.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.industrial-craft.net/index.php?action=history&amp;feed=atom&amp;title=User%3AChocohead%2FLift.js"/>
	<link rel="alternate" type="text/html" href="https://wiki.industrial-craft.net/index.php?title=User:Chocohead/Lift.js&amp;action=history"/>
	<updated>2026-10-16T17:46:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://wiki.industrial-craft.net/index.php?title=User:Chocohead/Lift.js&amp;diff=17925&amp;oldid=prev</id>
		<title>Chocohead: This should reload the music to avoid it bugging when first called</title>
		<link rel="alternate" type="text/html" href="https://wiki.industrial-craft.net/index.php?title=User:Chocohead/Lift.js&amp;diff=17925&amp;oldid=prev"/>
		<updated>2015-04-22T20:06:03Z</updated>

		<summary type="html">&lt;p&gt;This should reload the music to avoid it bugging when first called&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 20:06, 22 April 2015&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-l135&quot;&gt;Line 135:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 135:&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;}&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;}&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;if( options.mainAudio ) {&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;if( options.mainAudio ) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;mainAudio = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;new Audio( &lt;/del&gt;options.mainAudio &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;);&lt;/del&gt;&lt;/div&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;	&lt;/ins&gt;mainAudio = options.mainAudio;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mainAudio.setAttribute( &amp;#039;preload&amp;#039;, &amp;#039;true&amp;#039; ); //@TODO: Option to not preload audio.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;mainAudio.setAttribute( &amp;#039;loop&amp;#039;, &amp;#039;true&amp;#039; )&lt;/del&gt;;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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;}&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;}&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;if( options.endAudio ) {&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;if( options.endAudio ) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;endAudio = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;new Audio( &lt;/del&gt;options.endAudio &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;);&lt;/del&gt;&lt;/div&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;	&lt;/ins&gt;endAudio = options.endAudio;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;endAudio.setAttribute( &amp;#039;preload&amp;#039;, &amp;#039;true&amp;#039; )&lt;/del&gt;;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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;}&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;}&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;window.addEventListener(&amp;#039;blur&amp;#039;, onWindowBlur, false);&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;window.addEventListener(&amp;#039;blur&amp;#039;, onWindowBlur, false);&lt;/div&gt;&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-l153&quot;&gt;Line 153:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 150:&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;br/&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;br/&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;window.onload = function() {&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;window.onload = function() {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  var elevator &lt;/del&gt;= new &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Elevator&lt;/del&gt;(&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{&lt;/del&gt;&lt;/div&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;    moving &lt;/ins&gt;= new &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Audio&lt;/ins&gt;(&amp;#039;/images/f/f4/Lift-Music.mp3&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    element: document.querySelector(&amp;#039;.elevator-button&amp;#039;),&lt;/del&gt;&lt;/div&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;	moving.setAttribute( &amp;#039;preload&amp;#039;, &amp;#039;true&amp;#039; );&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    mainAudio: &lt;/del&gt;&amp;#039;/images/f/f4/Lift-Music.mp3&amp;#039;,&lt;/div&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;	moving.setAttribute( &amp;#039;loop&lt;/ins&gt;&amp;#039;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;true&amp;#039; );&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    endAudio: &lt;/del&gt;&amp;#039;/images/2/28/Ding.mp3&amp;#039;&lt;/div&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;	end = new Audio(&lt;/ins&gt;&amp;#039;/images/2/28/Ding.mp3&amp;#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &lt;/del&gt;});&lt;/div&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;	end.setAttribute( &amp;#039;preload&amp;#039;, &amp;#039;true&amp;#039; );&lt;/ins&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;	var elevator = new Elevator({&lt;/ins&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;		element: document.querySelector(&amp;#039;.elevator-button&amp;#039;),&lt;/ins&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;		mainAudio: moving,&lt;/ins&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;		endAudio: end&lt;/ins&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;	&lt;/ins&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;};&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;};&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Chocohead</name></author>
	</entry>
	<entry>
		<id>https://wiki.industrial-craft.net/index.php?title=User:Chocohead/Lift.js&amp;diff=17924&amp;oldid=prev</id>
		<title>Chocohead: Changed music to use it internally, but I&#039;m not sure if it&#039;s actually going to work</title>
		<link rel="alternate" type="text/html" href="https://wiki.industrial-craft.net/index.php?title=User:Chocohead/Lift.js&amp;diff=17924&amp;oldid=prev"/>
		<updated>2015-04-22T19:49:28Z</updated>

		<summary type="html">&lt;p&gt;Changed music to use it internally, but I&amp;#039;m not sure if it&amp;#039;s actually going to work&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 19:49, 22 April 2015&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-l155&quot;&gt;Line 155:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 155:&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;   var elevator = new Elevator({&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;   var elevator = new Elevator({&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;     element: document.querySelector(&amp;#039;.elevator-button&amp;#039;),&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;     element: document.querySelector(&amp;#039;.elevator-button&amp;#039;),&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     mainAudio: &amp;#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;https://raw.githubusercontent.com/tholman/elevator.js&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;master&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;demo&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;music&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;elevator&lt;/del&gt;-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;music&lt;/del&gt;.mp3&amp;#039;,&lt;/div&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;     mainAudio: &amp;#039;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;images&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;f&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;f4&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Lift&lt;/ins&gt;-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Music&lt;/ins&gt;.mp3&amp;#039;,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     endAudio: &amp;#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;https://raw.githubusercontent.com/tholman/elevator.js&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;master&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;demo&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;music&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ding&lt;/del&gt;.mp3&amp;#039;&lt;/div&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;     endAudio: &amp;#039;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;images&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;28&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Ding&lt;/ins&gt;.mp3&amp;#039;&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;   });&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;   });&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;};&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;};&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Chocohead</name></author>
	</entry>
	<entry>
		<id>https://wiki.industrial-craft.net/index.php?title=User:Chocohead/Lift.js&amp;diff=17918&amp;oldid=prev</id>
		<title>Chocohead: I&#039;ll move it here, so it can be imported, which is nice</title>
		<link rel="alternate" type="text/html" href="https://wiki.industrial-craft.net/index.php?title=User:Chocohead/Lift.js&amp;diff=17918&amp;oldid=prev"/>
		<updated>2015-04-22T19:27:06Z</updated>

		<summary type="html">&lt;p&gt;I&amp;#039;ll move it here, so it can be imported, which is nice&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;var Elevator = (function() {&lt;br /&gt;
&amp;#039;use strict&amp;#039;;&lt;br /&gt;
// Elements&lt;br /&gt;
var body = null;&lt;br /&gt;
// Scroll vars&lt;br /&gt;
var animation = null;&lt;br /&gt;
var duration = null; // ms&lt;br /&gt;
var customDuration = false;&lt;br /&gt;
var startTime = null;&lt;br /&gt;
var startPosition = null;&lt;br /&gt;
var mainAudio;&lt;br /&gt;
var endAudio;&lt;br /&gt;
var elevating = false;&lt;br /&gt;
function extend( target, source ) {&lt;br /&gt;
for ( var key in source ) {&lt;br /&gt;
if ( !( key in target ) ) {&lt;br /&gt;
target[ key ] = source[ key ];&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
return target;&lt;br /&gt;
}&lt;br /&gt;
function easeInOutQuad( t, b, c, d ) {&lt;br /&gt;
t /= d/2;&lt;br /&gt;
if (t &amp;lt; 1) return c/2*t*t + b;&lt;br /&gt;
t--;&lt;br /&gt;
return -c/2 * (t*(t-2) - 1) + b;&lt;br /&gt;
}&lt;br /&gt;
/**&lt;br /&gt;
* Main&lt;br /&gt;
*/&lt;br /&gt;
// Time is passed through requestAnimationFrame, what a world!&lt;br /&gt;
function animateLoop( time ) {&lt;br /&gt;
if(!elevating) {&lt;br /&gt;
	return; //Stop&lt;br /&gt;
}&lt;br /&gt;
if (!startTime) {&lt;br /&gt;
startTime = time;&lt;br /&gt;
}&lt;br /&gt;
var timeSoFar = time - startTime;&lt;br /&gt;
var easedPosition = easeInOutQuad(timeSoFar, startPosition, -startPosition, duration);&lt;br /&gt;
window.scrollTo(0, easedPosition);&lt;br /&gt;
if( timeSoFar &amp;lt; duration ) {&lt;br /&gt;
animation = requestAnimationFrame(animateLoop);&lt;br /&gt;
} else {&lt;br /&gt;
animationFinished();&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
// ELEVATE!&lt;br /&gt;
//      ____&lt;br /&gt;
//    .&amp;#039; &amp;#039;=====&amp;lt;0&lt;br /&gt;
//    |======|&lt;br /&gt;
//    |======|&lt;br /&gt;
//    [IIIIII[\--()&lt;br /&gt;
//    |_______|&lt;br /&gt;
//    C O O O D&lt;br /&gt;
//    C O O O D&lt;br /&gt;
//    C O O O D&lt;br /&gt;
//  C__O__O__O__D&lt;br /&gt;
// [_____________]&lt;br /&gt;
function elevate() {&lt;br /&gt;
if( elevating ) {&lt;br /&gt;
return;&lt;br /&gt;
}&lt;br /&gt;
elevating = true;&lt;br /&gt;
startPosition = (document.documentElement.scrollTop || body.scrollTop);&lt;br /&gt;
// No custom duration set, so we travel at pixels per millisecond. (0.75px per ms)&lt;br /&gt;
if( !customDuration ) {&lt;br /&gt;
duration = (startPosition * 1.5);&lt;br /&gt;
}&lt;br /&gt;
requestAnimationFrame( animateLoop );&lt;br /&gt;
// Start music!&lt;br /&gt;
if( mainAudio ) {&lt;br /&gt;
mainAudio.play();&lt;br /&gt;
}&lt;br /&gt;
var cancelOnScroll = function () {&lt;br /&gt;
	animationFinished(true);&lt;br /&gt;
	if (document.removeEventListener) {&lt;br /&gt;
	document.removeEventListener(&amp;quot;mousewheel&amp;quot;, cancelOnScroll, false); // IE9+, Chrome, Safari, Opera&lt;br /&gt;
	document.removeEventListener(&amp;quot;DOMMouseScroll&amp;quot;, cancelOnScroll, false); // Firefox&lt;br /&gt;
	}else{&lt;br /&gt;
	document.detachEvent(&amp;quot;onmousewheel&amp;quot;, cancelOnScroll); // IE 6/7/8&lt;br /&gt;
	}&lt;br /&gt;
	};&lt;br /&gt;
	if (document.addEventListener) {&lt;br /&gt;
	// IE9+, Chrome, Safari, Opera&lt;br /&gt;
	document.addEventListener(&amp;quot;mousewheel&amp;quot;, cancelOnScroll, false);&lt;br /&gt;
	// Firefox&lt;br /&gt;
	document.addEventListener(&amp;quot;DOMMouseScroll&amp;quot;, cancelOnScroll, false);&lt;br /&gt;
	}&lt;br /&gt;
	// IE 6/7/8&lt;br /&gt;
	else {&lt;br /&gt;
	document.attachEvent(&amp;quot;onmousewheel&amp;quot;, cancelOnScroll);&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
function resetPositions() {&lt;br /&gt;
startTime = null;&lt;br /&gt;
startPosition = null;&lt;br /&gt;
elevating = false;&lt;br /&gt;
}&lt;br /&gt;
function animationFinished() {&lt;br /&gt;
resetPositions();&lt;br /&gt;
// Stop music!&lt;br /&gt;
if( mainAudio ) {&lt;br /&gt;
mainAudio.pause();&lt;br /&gt;
mainAudio.currentTime = 0;&lt;br /&gt;
}&lt;br /&gt;
if( endAudio ) {&lt;br /&gt;
endAudio.play();&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
function onWindowBlur() {&lt;br /&gt;
// If animating, go straight to the top. And play no more music.&lt;br /&gt;
if( elevating ) {&lt;br /&gt;
cancelAnimationFrame( animation );&lt;br /&gt;
resetPositions();&lt;br /&gt;
if( mainAudio ) {&lt;br /&gt;
mainAudio.pause();&lt;br /&gt;
mainAudio.currentTime = 0;&lt;br /&gt;
}&lt;br /&gt;
window.scrollTo(0, 0);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
function bindElevateToElement( element ) {&lt;br /&gt;
element.addEventListener(&amp;#039;click&amp;#039;, elevate, false);&lt;br /&gt;
}&lt;br /&gt;
function main( options ) {&lt;br /&gt;
// Bind to element click event, if need be.&lt;br /&gt;
body = document.body;&lt;br /&gt;
if( options.element ) {&lt;br /&gt;
bindElevateToElement( options.element );&lt;br /&gt;
}&lt;br /&gt;
if( options.duration ) {&lt;br /&gt;
customDuration = true;&lt;br /&gt;
duration = options.duration;&lt;br /&gt;
}&lt;br /&gt;
if( options.mainAudio ) {&lt;br /&gt;
mainAudio = new Audio( options.mainAudio );&lt;br /&gt;
mainAudio.setAttribute( &amp;#039;preload&amp;#039;, &amp;#039;true&amp;#039; ); //@TODO: Option to not preload audio.&lt;br /&gt;
mainAudio.setAttribute( &amp;#039;loop&amp;#039;, &amp;#039;true&amp;#039; );&lt;br /&gt;
}&lt;br /&gt;
if( options.endAudio ) {&lt;br /&gt;
endAudio = new Audio( options.endAudio );&lt;br /&gt;
endAudio.setAttribute( &amp;#039;preload&amp;#039;, &amp;#039;true&amp;#039; );&lt;br /&gt;
}&lt;br /&gt;
window.addEventListener(&amp;#039;blur&amp;#039;, onWindowBlur, false);&lt;br /&gt;
}&lt;br /&gt;
return extend(main, {&lt;br /&gt;
elevate: elevate&lt;br /&gt;
});&lt;br /&gt;
})();&lt;br /&gt;
&lt;br /&gt;
// Elevator script included on the page, already.&lt;br /&gt;
&lt;br /&gt;
window.onload = function() {&lt;br /&gt;
  var elevator = new Elevator({&lt;br /&gt;
    element: document.querySelector(&amp;#039;.elevator-button&amp;#039;),&lt;br /&gt;
    mainAudio: &amp;#039;https://raw.githubusercontent.com/tholman/elevator.js/master/demo/music/elevator-music.mp3&amp;#039;,&lt;br /&gt;
    endAudio: &amp;#039;https://raw.githubusercontent.com/tholman/elevator.js/master/demo/music/ding.mp3&amp;#039;&lt;br /&gt;
  });&lt;br /&gt;
};&lt;/div&gt;</summary>
		<author><name>Chocohead</name></author>
	</entry>
</feed>