PageSourceSearch

https://www.irentcar.com.tw/irent/web/js/custom.js

js irentcar.com.tw collected 2026-10-02 15:06:37 UTC 1,330 bytes, 53 lines download raw bytes

1"use strict";
2
3$.material.init();
4//back to top new btn
5if ($('#back-to-top').length) {
6    var scrollTrigger = 100, // px
7        backToTop = function () {
8            var scrollTop = $(window).scrollTop();
9            if (scrollTop > scrollTrigger) {
10                $('#back-to-top').addClass('show');
11            } else {
12                $('#back-to-top').removeClass('show');
13            }
14        };
15    backToTop();
16    $(window).on('scroll', function () {
17        backToTop();
18    });
19    $('#back-to-top').on('click', function (e) {
20        e.preventDefault();
21        $('html,body').animate({
22            scrollTop: 0
23        }, 700);
24    });
25}
26
27//dropdown menu
28
29$(document).ready(function () {
30
31  $('[data-toggle="offcanvas"]').on('click',function () {
32        $('#wrapper').toggleClass('toggled');
33
34  });
35  $(".back-icon").on('click',function(e) {
36        e.preventDefault();
37        $("#wrapper").toggleClass("toggled");
38    });
39});
40
41
42
43$(".dropdown").hover(
44    function() {
45        $('.dropdown-menu', this).not('.in .dropdown-menu').stop(true,true).fadeIn("50");
46        $(this).toggleClass('open');
47    },
48    function() {
49        $('.dropdown-menu', this).not('.in .dropdown-menu').stop(true,true).fadeOut("50");
50        $(this).toggleClass('open');
51    }
52);
53

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.