PageSourceSearch

https://saude.rs.gov.br/matriz_common/versions/2.1.5/themes/frontend/js/master.js?2.1.5.161.7+10

js saude.rs.gov.br collected 2026-10-02 05:35:16 UTC 4,000 bytes, 99 lines download raw bytes

1$(function () {
2    /*
3     matriz.ui.init.datepicker();
4     matriz.ui.init.geolocation();
5     matriz.ui.init.mask();
6     matriz.ui.init.combobox();
7     matriz.ui.init.tabs();
8     matriz.ui.init.searchbox();
9     matriz.ui.loading.init();
10     */
11    matriz.ui.init.maxlength(".form-group textarea.form-control[maxlength]");
12    
13    /**
14     * Sobreecreve o plugin bootstrap select. Esta alteração foi feita para não 
15     * causar problemas de acessibilidade nos componentes select
16     * 
17     * @returns {$.fn}
18     */
19    $.fn.selectpicker = function() {
20        return this;
21    };
22
23    master = {
24        init: function () {
25            $(".defaultpagedlist.matriz-ui-pagedlist-container").each(function () {
26                $(this).matrizPagedList({
27                    callback: function () {
28                        if (this.recordCount > 0) {
29                            this.$container.find(".matriz-ui-pagedlist-pagination-header").show();
30                            this.$container.find(".matriz-ui-pagedlist-startitem").text(this.startitem);
31                            this.$container.find(".matriz-ui-pagedlist-enditem").text(this.enditem);
32                            this.$container.find(".matriz-ui-pagedlist-recordcount").text(this.recordCount);
33                            this.$container.find(".matriz-ui-pagedlist-recordcount").removeClass("hidden");
34                        } else {
35                            this.$container.find(".matriz-ui-pagedlist-pagination-header").hide();
36                        }
37                    }
38                });
39            });
40
41            //inicializa dynamic top
42            $('.containerDynamicTop').each(function () {
43                easingType = $(this).attr("data-easing");
44                scrollSpeed = eval($(this).attr("data-speed"));
45
46                var defaults = {
47                    text: matriz.utils.internationalization.translate("Ir para o topo", "master"),
48                    containerID: 'dynamicTop', // fading element id
49                    containerHoverID: 'dynamicTopHover', // fading element hover id
50                    scrollSpeed: scrollSpeed,
51                    easingType: easingType
52                };
53                $().UItoTop(defaults);
54            });
55
56            $("#formSeletorAlbumImagem, #formSeletorAlbumVideo").on("submit", function (event) {
57                event.preventDefault();
58
59                $album = $(this).find("select[name=Albuns]");
60                if ($album.val()) {
61                    location.href = $album.val();
62                }
63            });
64
65            $("a[download]").on("click", function () {
66                ga('set', 'anonymizeIp', true);
67                ga('send', 'event', 'arquivos', 'download', $(this).attr("title"));
68            });
69
70            matriz.common.events.on("matriz.media.player.play", function (player) {
71                var mediaInfo = player.getMediaInfo();
72                var type = player.type;
73                ga('send', 'event', type, 'play', mediaInfo.title);
74            });
75                        
76            var trackOutboundLink = function (url) {
77                ga('send', 'event', 'outbound', 'click', url, {
78                    'transport': 'beacon'
79                });
80            };
81            
82            $(".artigo__texto a[href]:not([href^='#'])").on("click", function(event) {
83                trackOutboundLink($(this).attr("href"));
84            });
85            
86            $('.pgwSlideshow').pgwSlideshow();
87        }
88    };
89    master.init();
90
91    //inicializa pagedlist padrões
92
93    var e;
94    e = '<a href="#conteudoInicio" accessKey="1">Ir para o conteúdo </a>';
95    e += '<a href="#menuInicio" accessKey="2">Ir para o menu </a>';
96    e += '<a href="#buscageralTextBox" accessKey="3">Ir para a busca </a>';
97
98    jQuery("<div/>").attr("class", "sr-only").html(e).prependTo(jQuery("body").eq(0));
99});

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.