PageSourceSearch

https://cdri.org.kh/js/share.js

js cdri.org.kh collected 2026-10-02 06:28:25 UTC 615 bytes, 20 lines download raw bytes

1var popupSize = {
2    width: 780,
3    height: 550
4};
5
6$(document).on('click', '.social-button', function (e) {
7    var verticalPos = Math.floor(($(window).width() - popupSize.width) / 2),
8        horisontalPos = Math.floor(($(window).height() - popupSize.height) / 2);
9
10    var popup = window.open($(this).prop('href'), 'social',
11        'width=' + popupSize.width + ',height=' + popupSize.height +
12        ',left=' + verticalPos + ',top=' + horisontalPos +
13        ',location=0,menubar=0,toolbar=0,status=0,scrollbars=1,resizable=1');
14
15    if (popup) {
16        popup.focus();
17        e.preventDefault();
18    }
19
20});

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.