PageSourceSearch

https://tomatonoki.com/wp/wp-content/themes/tomatonoki/common/js/backToTop.js

js tomatonoki.com collected 2026-10-07 09:35:38 UTC 658 bytes, 22 lines download raw bytes

1// JavaScript Document<script type="text/javascript">
2<!--
3function backToTop() {
4  var x1 = x2 = x3 = 0;
5  var y1 = y2 = y3 = 0;
6  if (document.documentElement) {
7      x1 = document.documentElement.scrollLeft || 0;
8      y1 = document.documentElement.scrollTop || 0;
9  }
10  if (document.body) {
11      x2 = document.body.scrollLeft || 0;
12      y2 = document.body.scrollTop || 0;
13  }
14  x3 = window.scrollX || 0;
15  y3 = window.scrollY || 0;
16  var x = Math.max(x1, Math.max(x2, x3));
17  var y = Math.max(y1, Math.max(y2, y3));
18  window.scrollTo(Math.floor(x / 2), Math.floor(y / 2));
19  if (x > 0 || y > 0) {
20      window.setTimeout("backToTop()", 35);
21  }
22}//-->

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.