PageSourceSearch

http://fampal.cn/js/myjs.js

js fampal.cn collected 2026-10-09 00:53:44 UTC 3,249 bytes, 143 lines download raw bytes

1// 搜索
2$(document).ready(function(){
3	$(".s_open").click(function () {
4		$(this).next('.search_box').addClass("active");
5	})
6	$(".s_close").click(function () {
7		$('.search_box').removeClass("active");
8	})
9})
10
11// 语言
12$(document).ready(function(){
13	$(".l_open").click(function () {
14		$(this).next('.language_box').toggleClass("active");
15		$(this).parent().toggleClass("active");
16	})
17})
18
19
20// 轮播图
21$(document).ready(function() {
22	var swiper = new Swiper(".mySwiper1", {
23		navigation: {
24			nextEl: ".next_btn",
25			prevEl: ".prev_btn",
26		},
27		pagination: {
28			el: ".swiper-pagination1",
29			clickable: true,
30		},
31		loop:true,
32		autoplay:true
33	});
34});
35
36
37
38// out_top
39$(document).ready(function(){
40	$(".out_top").click(function () {
41		$("html,body").animate({ scrollTop: "0px" }, "slow");
42		$(window).scroll(function () {
43			var e = $(window).scrollTop();
44			if (e < 200) {
45			    $(".out_top").hide();
46			} else {
47			$(".out_top").show();
48			}
49		});
50	});
51})
52
53
54
55//mMenu
56$(function () {
57	var windoww = $(window).width();
58	$('.sp_nav').click(function () {
59		// $('.sjj_nav').toggleClass('nav_show');
60		 $('.sjj_nav').slideToggle();
61	});
62	
63	$('.sjj_nav ul li i').click(function () {
64		$(this).parent().children('ul').slideToggle().parent().siblings().children('ul').slideUp();
65		$(this).toggleClass('sjj_nav_i_se');
66		$(this).parent().siblings().find('i').removeClass('sjj_nav_i_se');
67	});
68	
69	$('.sp_nav_xjb').html('<svg t="1496193951932" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="995" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"> <path d="M768.468 428.876l-84.723-84.723-170.711 170.711-170.711-170.711-84.723 84.723 170.711 170.711-0.092 0.091 84.723 84.724 0.092-0.092 0.092 0.092 84.723-84.724-0.092-0.091z" p-id="996"></path></svg>');
70	
71});
72
73 
74$(document).ready(function(){
75	$(".pro_list_btn").click(function () {
76		$(this).next('.pro_list').slideToggle()
77	})
78})
79
80
81$(document).ready(function(){
82	$(".pro_list ul li h3").click(function () {
83		$(this).next('dl').slideToggle();
84	})
85})
86
87
88
89// 按钮展开  detail
90$(document).ready(function(){
91	var Accordion = function(el, multiple) {
92		this.el = el || {};
93		this.multiple = multiple || false;
94
95		// Variables privadas
96		var links = this.el.find('.detail_tab');
97		// Evento
98		links.on('click', {
99			el: this.el,
100			multiple: this.multiple
101		}, this.dropdown)
102	}
103
104	Accordion.prototype.dropdown = function(e) {
105		var $el = e.data.el;
106		$this = $(this),
107			$next = $this.next();
108
109		$next.slideToggle();
110		$this.parent().toggleClass('on');
111
112		if(!e.data.multiple) {
113			$el.find('.detail_box').not($next).slideUp().parent().removeClass('on');
114		};
115	}
116
117	var accordion = new Accordion($('.detail_list'), false);
118})
119
120
121
122$(document).ready(function () {
123	var ary = location.href.split("&");
124	jQuery(".about2").slide({
125		titCell: ".about2_left .item_tab",
126		mainCell: ".about2_right ul",
127		effect:"fade",
128		trigger:"click"
129	});
130}) 
131
132
133
134$(document).ready(function() {
135	var swiper = new Swiper(".detail_swiper", {
136		navigation: {
137			nextEl: ".pro_next",
138			prevEl: ".pro_prev",
139		},
140		loop:true,
141		autoplay:true
142	});
143});

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.