PageSourceSearch

https://www.craftinterior.jp/wp-content/themes/Template/assets/js/common.js

js craftinterior.jp collected 2026-10-05 11:25:30 UTC 686 bytes, 33 lines download raw bytes

1(function ($) {
2  'use strict';
3
4  $(function(){
5
6    /* separate text */
7    $('.visual .line').children().addBack().contents().each(function(){
8      if (this.nodeType == 3) {
9        var $this = $(this);
10        $this.replaceWith($this.text().replace(/(\S)/g, '<span class="letter">$&</span>'));
11      }
12    });
13
14    /* animation delay */
15    $('.visual .letter').each(function () {
16      var letters = $(this).closest('.txt').find('.letter');
17      var index = $(letters).index(this);
18      var time = index * 0.03;
19      $(this).css('animation-delay', time + 's');
20    });
21
22  });
23
24
25
26  $(window).on('load', function(){
27    $('.visual').addClass('is-visible');
28  });
29
30
31})(jQuery);
32
33

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.