PageSourceSearch

https://www.norrtalje.se/Static/js/custom/googleTranslateHandler.js?v=639237714360000000

js norrtalje.se collected 2026-09-24 22:14:28 UTC 845 bytes, 26 lines download raw bytes

1$('.google-translate-trigger').on('click', function (event) {
2    event.preventDefault();
3
4    var container = $('.google-translate-container');
5    var left;
6    var top;
7    var width;
8
9    width = $(this).outerWidth() / 2;
10
11    if ($('.google-translate-container').is(":visible")) {
12        //$('#google-translate-trigger').css("background-color", "#002147");
13        container.hide();
14    } else {
15        //$('#google-translate-trigger').css("background-color", "#004c85");
16        left = $(this).offset().left;
17        top = $(this).offset().top;
18        container.show();
19        styleGoogleTranslate(left, top, width);
20    }
21});
22
23function styleGoogleTranslate(left, top, offset) {
24    var topPosition = 64 + top;
25    $('.google-translate-container').css({ 'top': topPosition + 'px', 'left': (left) + 'px'});
26}

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.