PageSourceSearch

https://innobranch.com/resources/front/js/popup/popup-term.js

js innobranch.com collected 2026-10-08 08:26:23 UTC 1,432 bytes, 46 lines download raw bytes

1
2function openPopupTerm(termsCategory, target) {
3
4  $.ajax({
5    url: `/user-common/api/terms?terms=${termsCategory}`,
6    type: 'GET',
7    success: function (response) {
8      let title = response.title;
9      switch(response.category){
10		  	case "T1" : title = getGlobalMessageByString("Privacy Terms", "Privacy Terms"); break;
11		  	case "T2" : title = getGlobalMessageByString("Terms of Post", "Terms of Post"); break;
12		  	case "T3" : title = getGlobalMessageByString("Third party information terms", "Third party information terms"); break;
13		  	default : break;
14	  	}
15	  	
16      let content = (_getCookie('lang') === 'ko') ? response.contentKr : response.content;
17
18      $('.popup-term .popup-term-title').text(title);
19      
20      $('.popup-term .popup-term-content').html(content);
21
22      $('.data-term-target').data('target', target);
23
24      $('.popup-term').addClass('on');
25      $("body").css("overflow","hidden");
26    },
27    error: function (xhr, status, error) {
28      console.log(error);
29    },
30  });
31
32}
33
34$('.btn-term-agree').on('click', function () {
35  const root = $(this).parents('.popup-term');
36
37  $(root.find('.data-term-target').data('target')).prop('checked', true);
38
39  root.removeClass('on');
40  $("body").css("overflow","");
41})
42
43$('.btn-popup-close').on('click', function () {
44  $(this).parents('.popup-term').removeClass('on');
45  $("body").css("overflow","");
46})

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.