PageSourceSearch

https://uraspi.com/wp/wp-content/themes/prpl/assets/js/common.js

js uraspi.com collected 2026-10-04 04:39:37 UTC 748 bytes, 25 lines download raw bytes

1$(document).ready(function(){
2
3//pagetop
4	$(".pagetop").on("click",function(){
5		$("html, body").animate({scrollTop:0}, 500);
6	});
7	
8//wordpress related postsタイトル文字数制限
9	if(document.getElementById("wp_rp_first") != null){
10		var $setElm = $('.wp_rp_title');
11			var cutFigure = '30'; // カットする文字数
12			var afterTxt = '...'; // 文字カット後に表示するテキスト
13		
14			$setElm.each(function(){
15					var textLength = $(this).text().length;
16					var textTrim = $(this).text().substr(0,(cutFigure));
17		
18					if(cutFigure < textLength) {
19							$(this).html(textTrim + afterTxt).css({visibility:'visible'});
20					} else if(cutFigure >= textLength) {
21							$(this).css({visibility:'visible'});
22					}
23			});
24	}
25});

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.