PageSourceSearch

https://shachomeikan.jp/assets/js/common/common.js

js shachomeikan.jp collected 2026-10-01 12:07:19 UTC 1,573 bytes, 48 lines download raw bytes

1$(function(){
2        $('.pagetop').click(function() {
3          // スクロールの速度
4          var speed = 400; // ミリ秒で記述
5          var href= $(this).attr("href");
6          var target = $(href == "#" || href == "" ? 'html' : href);
7          var position = target.offset().top;
8          $('body,html').animate({scrollTop:position}, speed, 'swing');
9          return false;
10        });
11        
12        /*$(window).on('load resize',function(){
13           var Window = window.innerWidth;
14           var Banner = $(".tenki_banner_position");
15           var buttons = $(".sub-contents-inner").find(".president_buttons");
16           if(Window < 993){
17              if(document.URL.match("/article/") && buttons.length){
18                 Banner.insertAfter(".president_buttons");
19              } else {
20                 Banner.prependTo(".sub-contents-inner");
21              }
22           } else {
23              Banner.appendTo(".sub-contents-inner");
24           }
25        });*/
26        
27        var arr = [];
28        var news = $('.new-column li');
29          news.each(function() {
30            arr.push($(this).html());
31          });
32          arr.sort(function(a, b) {
33            return ($(a).find('.publishStartedAt').text() < $(b).find('.publishStartedAt').text() ? 1 : -1);
34          });
35
36          news.empty();
37
38          i = 0;
39          news.each(function() {
40            $(this).append(arr[i]);
41            i++;
42          });
43
44          /*$(window).on('load', function(){
45             $('.publishStartedAt').remove();
46          });*/
47        
48});

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.