PageSourceSearch

https://www.medpulse.ru/js/all.js

js medpulse.ru collected 2026-10-02 08:02:02 UTC 2,205 bytes, 79 lines download raw bytes

1
2$(function() {
3    var menuVisible = false;
4    $('#toggle-menu').click(function() {
5	if (menuVisible) {
6	    $('#aqua-block .nav').addClass('d-none d-sm-block');
7	    menuVisible = false;
8	} else {
9	    $('#aqua-block .nav').removeClass('d-none d-sm-block');
10	    menuVisible = true;
11	}
12    });
13    var searchVisible = false;
14    $('#toggle-search').click(function() {
15	if (searchVisible) {
16	    $('#aqua-block form').addClass('d-none d-sm-block');
17	    searchVisible = false;
18	} else {
19	    $('#aqua-block form').removeClass('d-none d-sm-block');
20	    searchVisible = true;
21	}
22    });
23    $('#search-form').submit(function(e) {
24        e.preventDefault();
25        var template = $(this).data('template');
26        var val = $('#search-field').val();
27        template = template.replace('template', val);
28        location.href = template;
29    });
30    $("#aqua-menu").mCustomScrollbar({
31        theme: 'light-thick',
32        autoDraggerLength: false,
33        alwaysShowScrollbar: 1,
34        scrollInertia: 0
35    });
36    $('select#metro').change(function(e) {
37        e.preventDefault();
38        var template = $(this).data('template');
39        var val = $(this).val();
40        template = template.replace('template', val);
41        location.href = template;
42    });
43})
44
45function AjaxActivity(id) {
46    this.id = id;
47}
48
49AjaxActivity.prototype = {
50    formRequestParams: function (activity) {
51        this.reqParams = {area: this.area, ajax: 1, action: activity};
52        return this;
53    },
54    sendRequest: function () {
55        jQuery.post(
56            '/?' + jQuery.param(this.reqParams),
57            {objectId: this.id},
58            function (data) {
59            },
60            'json'
61        );
62    },
63    // send activity request that will increase views_count by 1
64    activity: function () {
65        this.formRequestParams('activity').sendRequest();
66    },
67};
68/**
69 * class for articleItem.tpl.html and newsItem.tpl.html
70 * @param id
71 * @constructor
72 */
73function AjaxArticleActivity(id) {
74    AjaxActivity.call(this, id);
75    this.area = 'ajaxArticleActivity';
76}
77
78AjaxArticleActivity.prototype = Object.create(AjaxActivity.prototype);
79AjaxArticleActivity.prototype.constructor = AjaxArticleActivity;

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.