PageSourceSearch

http://pieni-takka.com/js/common.js

js pieni-takka.com collected 2026-10-01 03:19:47 UTC 1,033 bytes, 37 lines download raw bytes

1// JavaScript Document
2$(function() {
3	var images = $("img");
4	for(var i=0; i < images.size(); i++) {
5		if(images.eq(i).attr("src").match("_off.")) {
6			$("img").eq(i).hover(function() {
7				$(this).attr('src', $(this).attr("src").replace("_off.", "_on."));
8			}, function() {
9				$(this).attr('src', $(this).attr("src").replace("_on.", "_off."));
10			});
11		}
12	}
13
14
15	 $('#sp_nav > a').on('click', function() {
16      $('#sp_menu').slideToggle();
17      return false;
18    });
19
20
21    // #で始まるアンカーをクリックした場合に処理
22    $('a[href^=#]').click(function() {
23      // スクロールの速度
24      var speed = 400; // ミリ秒
25      // アンカーの値取得
26      var href= $(this).attr("href");
27      // 移動先を取得
28      var target = $(href == "#" || href == "" ? 'html' : href);
29      // 移動先を数値で取得
30      var position = target.offset().top;
31      // スムーススクロール
32      $('body,html').animate({scrollTop:position}, speed, 'swing');
33      return false;
34    });
35
36
37});

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.