PageSourceSearch

https://www.rakuten-sonpo.co.jp/Portals/0/js/common.js

js rakuten-sonpo.co.jp collected 2026-09-26 02:32:29 UTC 2,005 bytes, 77 lines download raw bytes

1(function($) {
2	'use strict';
3	$(function() {
4
5/*=============================================
6	edit
7=============================================*/
8		var optMode = $('input:radio[name="IconBar.ascx$optMode"]:checked');
9		if(optMode.length > 0 && optMode.val() == 'EDIT'){
10			$('body').addClass('adminMode');
11		} else if(optMode.length > 0 && optMode.val() === 'VIEW'){
12			$('body').addClass('previewMode');
13		} else {
14			$('body').addClass('viewMode');
15		}
16
17/*=============================================
18	global
19=============================================*/
20		var $body = $('body'),
21			mode = 'pc',
22			view = 'pc',
23			animSpd = 300;
24
25/*=============================================
26	mode / view
27=============================================*/
28		// mode
29		//if($body.hasClass('spMode')){
30			//mode = 'sp';
31		//} else if($body.hasClass('tbMode')){
32			//mode = 'sp';
33		//}
34		//if(mode === 'sp'){
35		//} else {}
36
37		// view
38		//if($body.hasClass('spView')){
39			//view = 'sp';
40		//}
41		//if(view === 'sp'){
42		//} else {}
43
44/*=============================================
45	global function
46=============================================*/
47		initialize();
48		// accordion('.accordionMotion', '.accordionItem', '.accordionBtn', animSpd);
49
50
51
52/*=============================================
53	SmoothScroll
54=============================================*/
55		//$('a[href*="#"]:not([href="#"]):not(.noSmooth):not([href*="TabModule"])').smoothScroll({
56			//speed: animSpd,
57			//fix: true,
58			//fixItem: '#header'
59		//});
60
61/*=============================================
62	pluginExists
63=============================================*/
64		function pluginExists(pluginName) {
65			return $.fn[pluginName] ? true : false;
66		}
67
68/*=============================================
69	Initialize
70=============================================*/
71		function initialize(){
72			$('a[href="#"]').on('click', function(e){
73				e.preventDefault();
74			});
75		}
76	});
77})(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.