PageSourceSearch

https://www.sofitel-seoul.com/wp-content/themes/sofitel-seoul/js/child.js

js sofitel-seoul.com collected 2026-09-30 06:16:33 UTC 2,367 bytes, 50 lines download raw bytes

1(function() {
2  function onAvailable(n,i,o){if(void 0!==n&&void 0!==i){n.constructor!==Array&&(n=[n]),void 0===o&&(o=100);var w=function(n)        {n=n.split(".");for(var i=window[n.shift()];i&&n.length;)i=i[n.shift()];return void 0!==i},r="$_onAvailableIntervals",t="$_onAvailableCallbacks";window[r]=window[r]||[],window[t]=window[t]||[],window[t].push(i);var a=window[t].length-1;window[r].push(setInterval(function(n,i){return function(){for(var o=!0,a=0;a<i.length;a++)o=o&&w(i[a]);o&&(clearInterval(window[r][n]),void 0!==window[t][n]&&window[t][n]())}}(a,n),o))}}
3  onAvailable(['jQuery'], function () {
4    (function($) {
5      $(document).ready(function () {
6
7        $('.choose_offers .offer_products').each(function() {
8          $(this).on('click', function() {
9            var _val = $(this).data('product');
10            if(_val === 'all') {
11              $('.choose_offers .offer_products').removeClass('active');
12              $(this).addClass('active');
13              $('li.offer_detail').show();
14            } else {
15              $('.choose_offers .offer_products').removeClass('active');
16              $(this).addClass('active');
17              $('li.offer_detail').removeClass('last').hide();
18              $('li.offer_detail[data-product="'+ _val +'"]').show();
19              $('li.offer_detail:visible').each(function(n) {
20                if((n+1) % 3 === 0) { $(this).addClass('last'); }
21              });
22            }
23          });
24        });
25
26        $('.choose_offers .offer_categories').each(function() {
27          $(this).on('click', function() {
28            var _val = $(this).data('category');
29            if(_val === 'all') {
30              $('.choose_offers .offer_categories').removeClass('active');
31              $(this).addClass('active');
32              $('li.offer_detail').show();
33            } else {
34              $('.choose_offers .offer_categories').removeClass('active');
35              $(this).addClass('active');
36              $('li.offer_detail').removeClass('last').hide();
37              $('li.offer_detail[data-category="'+ _val +'"]').show();
38              $('li.offer_detail:visible').each(function(n) {
39                if((n+1) % 3 === 0) { $(this).addClass('last'); }
40              });
41            }
42          });
43        });
44
45      });
46    })(jQuery);
47  });
48})();
49
50

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.