<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.stephanschlegel.de/index.php?action=history&amp;feed=atom&amp;title=Scroll_ToTop_%28jQuery%29</id>
	<title>Scroll ToTop (jQuery) - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.stephanschlegel.de/index.php?action=history&amp;feed=atom&amp;title=Scroll_ToTop_%28jQuery%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.stephanschlegel.de/index.php?title=Scroll_ToTop_(jQuery)&amp;action=history"/>
	<updated>2026-05-06T19:00:36Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Wikizone</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wiki.stephanschlegel.de/index.php?title=Scroll_ToTop_(jQuery)&amp;diff=22346&amp;oldid=prev</id>
		<title>37.49.32.84: Die Seite wurde neu angelegt: „Praxistaugliches Beispiel aus alb-massage.de (mit font-awesome für das Icon).  HTML &lt;syntaxhighlight lang=&quot;html5&quot;&gt; &lt;!-- totop --&gt; &lt;div class=&quot;totop&quot; style=&quot;di…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.stephanschlegel.de/index.php?title=Scroll_ToTop_(jQuery)&amp;diff=22346&amp;oldid=prev"/>
		<updated>2017-06-02T06:47:56Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „Praxistaugliches Beispiel aus alb-massage.de (mit font-awesome für das Icon).  HTML &amp;lt;syntaxhighlight lang=&amp;quot;html5&amp;quot;&amp;gt; &amp;lt;!-- totop --&amp;gt; &amp;lt;div class=&amp;quot;totop&amp;quot; style=&amp;quot;di…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Praxistaugliches Beispiel aus alb-massage.de (mit font-awesome für das Icon).&lt;br /&gt;
&lt;br /&gt;
HTML&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;html5&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!-- totop --&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;totop&amp;quot; style=&amp;quot;display:none;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;a href=&amp;quot;top&amp;quot;&amp;gt;&amp;lt;i class=&amp;quot;fa fa-angle-double-up fa-2x&amp;quot;&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CSS&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;css&amp;quot;&amp;gt;&lt;br /&gt;
.totop{&lt;br /&gt;
	padding: 0.25em 0.5em;&lt;br /&gt;
	display: block;&lt;br /&gt;
	position: fixed;&lt;br /&gt;
	right: 20px;&lt;br /&gt;
	bottom: 20px;&lt;br /&gt;
	z-index: 200;&lt;br /&gt;
	background-color: #333;&lt;br /&gt;
	background-color: rgba(0,0,0,0.5);&lt;br /&gt;
	border-radius: 5px;&lt;br /&gt;
}&lt;br /&gt;
.totop a{&lt;br /&gt;
	color: #FFF;&lt;br /&gt;
	display:block;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
JavaScript&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
$(document).ready(function() {&lt;br /&gt;
  $(&amp;#039;.totop&amp;#039;).hide();&lt;br /&gt;
  $(window).scroll(function(){&lt;br /&gt;
    var value = 200; // Show at offset from x px &lt;br /&gt;
    var scrolling = $(window).scrollTop();&lt;br /&gt;
    if (scrolling &amp;gt; value) {&lt;br /&gt;
      $(&amp;#039;.totop&amp;#039;).fadeIn();&lt;br /&gt;
    } else {&lt;br /&gt;
      $(&amp;#039;.totop&amp;#039;).fadeOut();&lt;br /&gt;
  }&lt;br /&gt;
});&lt;br /&gt;
$(&amp;#039;.totop&amp;#039;).click(function(){&lt;br /&gt;
  $(&amp;#039;html, body&amp;#039;).animate({scrollTop:&amp;#039;0px&amp;#039;}, 400);&lt;br /&gt;
    return false;&lt;br /&gt;
  });&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>37.49.32.84</name></author>
	</entry>
</feed>