<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hant-TW">
	<id>https://as.llsif.moe/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-scrollUpButton.js</id>
	<title>MediaWiki:Gadget-scrollUpButton.js - 修訂紀錄</title>
	<link rel="self" type="application/atom+xml" href="https://as.llsif.moe/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3AGadget-scrollUpButton.js"/>
	<link rel="alternate" type="text/html" href="https://as.llsif.moe/index.php?title=MediaWiki:Gadget-scrollUpButton.js&amp;action=history"/>
	<updated>2026-05-01T02:59:38Z</updated>
	<subtitle>本wiki上此頁面的修訂紀錄</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://as.llsif.moe/index.php?title=MediaWiki:Gadget-scrollUpButton.js&amp;diff=8021&amp;oldid=prev</id>
		<title>Inamin：​建立內容為「/* scrollUpButton * Add a button to scroll up to the top of the current page. * @rev 3 (2019-28-07) * @author Kwj2772 * @contributor Perhelion * No internationali…」的新頁面</title>
		<link rel="alternate" type="text/html" href="https://as.llsif.moe/index.php?title=MediaWiki:Gadget-scrollUpButton.js&amp;diff=8021&amp;oldid=prev"/>
		<updated>2021-03-21T16:59:18Z</updated>

		<summary type="html">&lt;p&gt;建立內容為「/* scrollUpButton * Add a button to scroll up to the top of the current page. * @rev 3 (2019-28-07) * @author Kwj2772 * @contributor Perhelion * No internationali…」的新頁面&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新頁面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/* scrollUpButton&lt;br /&gt;
* Add a button to scroll up to the top of the current page.&lt;br /&gt;
* @rev 3 (2019-28-07)&lt;br /&gt;
* @author Kwj2772&lt;br /&gt;
* @contributor Perhelion&lt;br /&gt;
* No internationalisation required&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;&lt;br /&gt;
*/&lt;br /&gt;
/* global $:false */&lt;br /&gt;
$(function () {&lt;br /&gt;
&amp;#039;use strict&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
var $icon = &amp;#039;//upload.wikimedia.org/wikipedia/commons/5/59/Font_Awesome_5_regular_arrow-circle-up_blue.svg&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
if (!document.implementation.hasFeature(&amp;#039;http://www.w3.org/TR/SVG11/feature#Image&amp;#039;, &amp;#039;1.1&amp;#039;))&lt;br /&gt;
	$icon = &amp;#039;//upload.wikimedia.org/wikipedia/commons/thumb/5/59/Font_Awesome_5_regular_arrow-circle-up_blue.svg/32px-Font_Awesome_5_regular_arrow-circle-up_blue.svg.png&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
$icon = $(&amp;#039;&amp;lt;img&amp;gt;&amp;#039;, {&lt;br /&gt;
	src: $icon,&lt;br /&gt;
	id: &amp;#039;scrollUpButton&amp;#039;&lt;br /&gt;
}).css({&lt;br /&gt;
		position: &amp;#039;fixed&amp;#039;,&lt;br /&gt;
		bottom: &amp;#039;24px&amp;#039;,&lt;br /&gt;
		right: &amp;#039;18px&amp;#039;,&lt;br /&gt;
		opacity: 0.7,&lt;br /&gt;
		cursor: &amp;#039;pointer&amp;#039;,&lt;br /&gt;
		display: &amp;#039;none&amp;#039;&lt;br /&gt;
	}).on(&amp;#039;click&amp;#039;, function () {&lt;br /&gt;
		// Move to the top of the page&lt;br /&gt;
		$(&amp;#039;html, body&amp;#039;).animate({ scrollTop: 0 }, 660);&lt;br /&gt;
	}).on(&amp;#039;mouseenter mouseleave&amp;#039;, function (e) {&lt;br /&gt;
		this.style.opacity = e.type === &amp;#039;mouseenter&amp;#039; ? 1 : 0.7;&lt;br /&gt;
	}).appendTo(&amp;#039;body&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
$(window).on(&amp;#039;scroll&amp;#039;, function () {&lt;br /&gt;
	// Fade out if you reach the top of the page&lt;br /&gt;
	if ($(this).scrollTop() &amp;gt; 60) $icon.fadeIn(&amp;#039;slow&amp;#039;);&lt;br /&gt;
	else $icon.fadeOut(&amp;#039;slow&amp;#039;);&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
}());&lt;br /&gt;
// &amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Inamin</name></author>
	</entry>
</feed>