PageSourceSearch

https://www.og-cel.jp/common/js/devicemode_sp.js

js og-cel.jp collected 2026-10-02 19:52:08 UTC 482 bytes, 24 lines download raw bytes

1var pathArr = location.pathname.split("/"); 
2// URL‚Ì”»•Ê
3if($.inArray('sp', pathArr) == -1) { // PC”Å‚ÌURL‚̂Ƃ«
4} else { // SP”Å‚ÌURL‚̂Ƃ«
5	$(function() {
6
7		// PC”łւ̗U“±ƒŠƒ“ƒN‚ðƒNƒŠƒbƒN‚µ‚½Žž
8		$('#btn_pcpage a').click(function() {
9			var thisHref = $(this).attr('href');
10			$.cookie(
11				'devicemode',
12				'PC',
13				{
14					expires:3,
15					path:'/',
16					domain:'.osakagas.co.jp'
17				}
18			);
19
20			window.location = thisHref;
21			return false;
22		})
23	});
24}

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.