PageSourceSearch

https://www.pakistanpostcode.com/template/js/javascript.js

js pakistanpostcode.com collected 2026-10-03 00:39:57 UTC 1,368 bytes, 52 lines download raw bytes

1$(document).ready(function() {
2    $('[data-toggle=offcanvas]').click(function() {
3        $('.row-offcanvas').toggleClass('active');
4    });
5
6    // Fix jQuery UI button conflict with bootstrap
7    var btn = $.fn.button.noConflict();
8    $.fn.btn = btn;
9
10    $('input.error, select.error, textarea.error').closest('.form-group').addClass('has-error');
11
12
13    $('.menu_top_trigger').click(function(){
14
15        // Scroll to the top of the page
16        $(window).scrollTop(0);
17
18        if ($('#menu_top').is(':hidden')) {
19            $('#menu_top').slideDown('slow');
20    
21            $('body').one('click', function(){
22                $('#menu_top').slideUp('slow');
23            });
24
25        } else {
26            $('#menu_top').slideUp('slow');
27        }
28
29        return false;
30    });
31});
32
33function tooltip(element, text, title) {
34    if(title) {
35        var content_options = { title: { text: title }, text: text }
36    } else {
37        var content_options = { text: text }
38    }
39    $('#'+element).qtip({
40        show: { delay: 0 },
41        hide: {
42            fixed: true,
43            delay: 100
44        },
45        style: {
46            classes: 'qtip-bootstrap qtip-shadow',
47            tip: { corner: 'leftTop', size: { x: 20, y: 8 } }
48        },
49        position: { at: 'right center', my: 'left top', adjust: { x: 5 } },
50        content: content_options
51    });
52}

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.