PageSourceSearch

https://gumee.net/Modules/Board/Scripts/dimode.board.viewtype.js?2026100820

js gumee.net collected 2026-10-08 11:02:35 UTC 1,381 bytes, 38 lines download raw bytes

1(function ($) {
2    /*
3        이 스크립트는 게시판 보기 형식(리스트/갤러리/웹진) 전환을 처리합니다.
4        고른 값은 DB가 아니라 방문자 브라우저의 쿠키에만 저장하므로, 사람마다 다르게 볼 수 있습니다.
5    */
6
7    var cookiePrefix = 'dimodeBoardViewType_';
8    var cookieExpires = 365;
9
10    $(document).ready(function () {
11
12        $(document).on('click', '#dimodeBoard .board-view-types .view-type-btn', function () {
13
14            var button = $(this);
15
16            if (button.hasClass('selected'))
17                return false;
18
19            var moduleU = button.closest('.board-view-types').attr('data-module_u');
20            var viewType = button.attr('data-value');
21
22            if (dimodeLib.isNullOrEmpty(moduleU) || dimodeLib.isNullOrEmpty(viewType))
23                return false;
24
25            $.cookie(cookiePrefix + moduleU, viewType, { expires: cookieExpires, path: '/' });
26
27            // 주소에 viewType이 남아 있으면 쿠키보다 우선하므로 지우고 새로 불러옵니다.
28            var search = dimodeLib.removeArgument(location.search, 'viewType');
29
30            if (search === location.search)
31                location.reload();
32            else
33                location.href = location.pathname + search + location.hash;
34
35            return false;
36        });
37    });
38})(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.