PageSourceSearch

https://www.cosme.net/js/lib/jquery-fltpopup.js?08d187830e31f5377af23e29255a35e0e656e76e

js cosme.net collected 2026-10-01 08:51:56 UTC 2,336 bytes, 75 lines download raw bytes

1/*
2* jQuery floating popup
3*	Created:        2011-10-25 
4* Last update:    2018-04-04 by sumit
5*/
6
7;(function($){
8	$(function(){
9		var $fp = {
10			name: '.jq-fltpup',
11			trigger: '.trigger',
12			toggle: '.toggle',
13			btnclose: '.btn-close', 
14			activeClass: 'active', 
15			hoverClass: 'hover',
16			defzIndex : ($('.zIdx').css('zIndex') > 0 || $('.zIdx').css('zIndex') !== 'auto') ? $('.zIdx').css('zIndex') : 30000 
17		};		
18
19		if(!$($fp.name).length){ return;}				
20
21		//zIdx要素の最大zIndex値+1を取得		
22		$fp.getMaxIndex = function(){
23			var zIndexArr = new Array;		
24			$('.zIdx').each(function(i){
25						zIndexArr[i]	= parseInt($(this).css('zIndex'));
26			});
27			return Math.max.apply(null,zIndexArr)+1;
28		};
29		
30		$('.zIdx').css('zIndex',$fp.defzIndex);
31		$($fp.trigger , $fp.name).click(function(e){
32				var $thisTrigger = $(this);
33				var $thisToggle = $($fp.toggle,$thisTrigger.parents($fp.name).first()).first();
34				var eventTarget = $(e.currentTarget);
35
36				$thisTrigger.toggleClass($fp.activeClass);
37
38				/*
39				 * Twitterボタンが初期表示にdisplay:none掛かっているモジュール内にあるとボタンが表示されないので、opacityで対応する。
40				 */
41				if (eventTarget.hasClass('js-for-tw')) {
42					// display: noneにしているとツイッターボタンが表示されないのでopacity: 0で隠すように改修
43					if ($thisTrigger.hasClass('active')) {
44						$thisToggle.addClass('is-active');
45					} else {
46						$thisToggle.removeClass('is-active');
47					}
48				} else {
49					$thisToggle.toggle();
50				}
51			
52				if($thisToggle.parent($fp.name).hasClass('zIdx')){
53					$fp.zIndex = ($thisTrigger.hasClass($fp.activeClass))		?	$fp.getMaxIndex() :	$fp.defzIndex	;
54					$thisToggle.parent($fp.name).css('zIndex',$fp.zIndex);
55				}
56				
57				$($fp.btnclose,$thisToggle).click(function(){
58						$thisTrigger.removeClass($fp.activeClass);
59
60						if (eventTarget.hasClass('js-for-tw')) {
61							$thisToggle.removeClass('is-active');
62						} else {
63							$thisToggle.hide();
64						}
65						if($thisToggle.parent($fp.name).hasClass('zIdx')){
66							$thisToggle.parent($fp.name).css('zIndex',$fp.defzIndex);
67						}
68				});		
69		});
70		
71		$($fp.trigger , $($fp.name)).hover(function(){
72			$(this).toggleClass($fp.hoverClass);																																															
73		});
74	});
75})(jQuery);

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.