PageSourceSearch

https://sedet.df.gov.br/o/gdf-secretarias-lf7_4-2026-theme/js/doud…=js&languageId=pt_BR&t=1790294970000

js sedet.df.gov.br collected 2026-09-30 16:25:58 UTC 19,503 bytes, 411 lines download raw bytes

1/*1790294970000*/
2function number_format(number, decimals, dec_point, thousands_sep) {
3    number = (number + '').replace(/[^0-9+\-Ee.]/g, '');
4    var n = !isFinite(+number) ? 0 : +number, prec = !isFinite(+decimals) ? 0 : Math.abs(decimals), sep = (typeof thousands_sep === 'undefined') ? ',' : thousands_sep, dec = (typeof dec_point === 'undefined') ? '.' : dec_point, s = '', toFixedFix = function (n, prec) {
5        var k = Math.pow(10, prec);
6        return'' + Math.round(n * k) / k;
7    };
8    s = (prec ? toFixedFix(n, prec) : '' + Math.round(n)).split('.');
9    if (s[0].length > 3) {
10        s[0] = s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g, sep);
11    }
12    if ((s[1] || '').length < prec) {
13        s[1] = s[1] || '';
14        s[1] += new Array(prec - s[1].length + 1).join('0');
15    }
16    return s.join(dec);
17}
18function str_pad(input, pad_length, pad_string, pad_type) {
19    var half = '', pad_to_go;
20    var str_pad_repeater = function (s, len) {
21        var collect = '', i;
22        while (collect.length < len) {
23            collect += s;
24        }
25        collect = collect.substr(0, len);
26        return collect;
27    };
28    input += '';
29    pad_string = pad_string !== undefined ? pad_string : ' ';
30    if (pad_type != 'STR_PAD_LEFT' && pad_type != 'STR_PAD_RIGHT' && pad_type != 'STR_PAD_BOTH') {
31        pad_type = 'STR_PAD_RIGHT';
32    }
33    if ((pad_to_go = pad_length - input.length) > 0) {
34        if (pad_type == 'STR_PAD_LEFT') {
35            input = str_pad_repeater(pad_string, pad_to_go) + input;
36        } else if (pad_type == 'STR_PAD_RIGHT') {
37            input = input + str_pad_repeater(pad_string, pad_to_go);
38        } else if (pad_type == 'STR_PAD_BOTH') {
39            half = str_pad_repeater(pad_string, Math.ceil(pad_to_go / 2));
40            input = half + input + half;
41            input = input.substr(0, pad_length);
42        }
43    }
44    return input;
45}
46function str_replace(e, t, n, r) {
47    var i = 0, s = 0, o = "", u = "", a = 0, f = 0, l = [].concat(e), c = [].concat(t), h = n, p = Object.prototype.toString.call(c) === "[object Array]", d = Object.prototype.toString.call(h) === "[object Array]";
48    h = [].concat(h);
49    if (r) {
50        this.window[r] = 0
51    }
52    for (i = 0, a = h.length; i < a; i++) {
53        if (h[i] === "") {
54            continue
55        }
56        for (s = 0, f = l.length; s < f; s++) {
57            o = h[i] + "";
58            u = p ? c[s] !== undefined ? c[s] : "" : c[0];
59            h[i] = o.split(l[s]).join(u);
60            if (r && h[i] !== o) {
61                this.window[r] += (o.length - h[i].length) / l[s].length
62            }
63        }
64    }
65    return d ? h : h[0]
66}
67function strstr(haystack, needle, bool) {
68    var pos = 0;
69    haystack += '';
70    pos = haystack.indexOf(needle);
71    if (pos == -1) {
72        return false;
73    } else {
74        if (bool) {
75            return haystack.substr(0, pos);
76        } else {
77            return haystack.slice(pos);
78        }
79    }
80}
81
82function setlocale(a, b) {
83    var c = "", d = [], e = 0, f = this.window.document, g = function B(a) {
84        if (a instanceof RegExp)
85            return new RegExp(a);
86        if (a instanceof Date)
87            return new Date(a);
88        var b = {};
89        for (var c in a)
90            "object" == typeof a[c] ? b[c] = B(a[c]) : b[c] = a[c];
91        return b
92    }, i = function (a) {
93        return 1 !== a ? 1 : 0
94    }, j = function (a) {
95        return a > 1 ? 1 : 0
96    };
97    try {
98        this.php_js = this.php_js || {}
99    } catch (x) {
100        this.php_js = {}
101    }
102    var y = this.php_js;
103    if (y.locales || (y.locales = {}, y.locales.en = {LC_COLLATE: function (a, b) {
104            return a == b ? 0 : a > b ? 1 : -1
105        }, LC_CTYPE: {an: /^[A-Za-z\d]+$/g, al: /^[A-Za-z]+$/g, ct: /^[\u0000-\u001F\u007F]+$/g, dg: /^[\d]+$/g, gr: /^[\u0021-\u007E]+$/g, lw: /^[a-z]+$/g, pr: /^[\u0020-\u007E]+$/g, pu: /^[\u0021-\u002F\u003A-\u0040\u005B-\u0060\u007B-\u007E]+$/g, sp: /^[\f\n\r\t\v ]+$/g, up: /^[A-Z]+$/g, xd: /^[A-Fa-f\d]+$/g, CODESET: "UTF-8", lower: "abcdefghijklmnopqrstuvwxyz", upper: "ABCDEFGHIJKLMNOPQRSTUVWXYZ"}, LC_TIME: {a: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], A: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], b: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], B: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "
105November", "December"], c: "%a %d %b %Y %r %Z", p: ["AM", "PM"], P: ["am", "pm"], r: "%I:%M:%S %p", x: "%m/%d/%Y", X: "%r", alt_digits: "", ERA: "", ERA_YEAR: "", ERA_D_T_FMT: "", ERA_D_FMT: "", ERA_T_FMT: ""}, LC_MONETARY: {int_curr_symbol: "USD", currency_symbol: "$", mon_decimal_point: ".", mon_thousands_sep: ",", mon_grouping: [3], positive_sign: "", negative_sign: "-", int_frac_digits: 2, frac_digits: 2, p_cs_precedes: 1, p_sep_by_space: 0, n_cs_precedes: 1, n_sep_by_space: 0, p_sign_posn: 3, n_sign_posn: 0}, LC_NUMERIC: {decimal_point: ".", thousands_sep: ",", grouping: [3]}, LC_MESSAGES: {YESEXPR: "^[yY].*", NOEXPR: "^[nN].*", YESSTR: "", NOSTR: ""}, nplurals: i}, y.locales.en_US = g(y.locales.en), y.locales.en_US.LC_TIME.c = "%a %d %b %Y %r %Z", y.locales.en_US.LC_TIME.x = "%D", y.locales.en_US.LC_TIME.X = "%r", y.locales.en_US.LC_MONETARY.int_curr_symbol = "USD ", y.locales.en_US.LC_MONETARY.p_sign_posn = 1, y.locales.en_US.LC_MONETARY.n_sign_posn = 1, y.locales.en_US.LC_MONETARY.mon_grouping = [3, 3], y.locales.en_US.LC_NUMERIC.thousands_sep = "", y.locales.en_US.LC_NUMERIC.grouping = [], y.locales.en_GB = g(y.locales.en), y.locales.en_GB.LC_TIME.r = "%l:%M:%S %P %Z", y.locales.en_AU = g(y.locales.en_GB), y.locales.C = g(y.locales.en), y.locales.C.LC_CTYPE.CODESET = "ANSI_X3.4-1968", y.locales.C.LC_MONETARY = {int_curr_symbol: "", currency_symbol: "", mon_decimal_point: "", mon_thousands_sep: "", mon_grouping: [], p_cs_precedes: 127, p_sep_by_space: 127, n_cs_precedes: 127, n_sep_by_space: 127, p_sign_posn: 127, n_sign_posn: 127, positive_sign: "", negative_sign: "", int_frac_digits: 127, frac_digits: 127}, y.locales.C.LC_NUMERIC = {decimal_point: ".", thousands_sep: "", grouping: []}, y.locales.C.LC_TIME.c = "%a %b %e %H:%M:%S %Y", y.locales.C.LC_TIME.x = "%m/%d/%y", y.locales.C.LC_TIME.X = "%H:%M:%S", y.locales.C.LC_MESSAGES.YESEXPR = "^[yY]", y.locales.C.LC_MESSAGES.NOEXPR = "^[nN]", y.locales.fr = g(y.locales.en), y.locales.fr.nplurals = j, y.locales.fr.LC_TIME.a = ["dim", "lun", "mar", "mer", "jeu", "ven", "sam"], y.locales.fr.LC_TIME.A = ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], y.locales.fr.LC_TIME.b = ["jan", "f\xe9v", "mar", "avr", "mai", "jun", "jui", "ao\xfb", "sep", "oct", "nov", "d\xe9c"], y.locales.fr.LC_TIME.B = ["janvier", "f\xe9vrier", "mars", "avril", "mai", "juin", "juillet", "ao\xfbt", "septembre", "octobre", "novembre", "d\xe9cembre"], y.locales.fr.LC_TIME.c = "%a %d %b %Y %T %Z", y.locales.fr.LC_TIME.p = ["", ""], y.locales.fr.LC_TIME.P = ["", ""], y.locales.fr.LC_TIME.x = "%d.%m.%Y", y.locales.fr.LC_TIME.X = "%T", y.locales.fr_CA = g(y.locales.fr), y.locales.fr_CA.LC_TIME.x = "%Y-%m-%d"), !y.locale) {
106        y.locale = "en_US";
107        var z = "http://www.w3.org/1999/xhtml", A = "http://www.w3.org/XML/1998/namespace";
108        f.getElementsByTagNameNS && f.getElementsByTagNameNS(z, "html")[0] ? f.getElementsByTagNameNS(z, "html")[0].getAttributeNS && f.getElementsByTagNameNS(z, "html")[0].getAttributeNS(A, "lang") ? y.locale = f.getElementsByTagName(z, "html")[0].getAttributeNS(A, "lang") : f.getElementsByTagNameNS(z, "html")[0].lang && (y.locale = f.getElementsByTagNameNS(z, "html")[0].lang) : f.getElementsByTagName("html")[0] && f.getElementsByTagName("html")[0].lang && (y.locale = f.getElementsByTagName("html")[0].lang)
109    }
110    if (y.locale = y.locale.replace("-", "_"), y.locale in y.locales || y.locale.replace(/_[a-zA-Z]+$/, "")in y.locales && (y.locale = y.locale.replace(/_[a-zA-Z]+$/, "")), y.localeCategories || (y.localeCategories = {LC_COLLATE: y.locale, LC_CTYPE: y.locale, LC_MONETARY: y.locale, LC_NUMERIC: y.locale, LC_TIME: y.locale, LC_MESSAGES: y.locale}), null === b || "" === b)
111        b = this.getenv(a) || this.getenv("LANG");
112    else if ("[object Array]" === Object.prototype.toString.call(b))
113        for (e = 0; e < b.length; e++) {
114            if (b[e]in this.php_js.locales) {
115                b = b[e];
116                break
117            }
118            if (e === b.length - 1)
119                return!1
120        }
121    if ("0" === b || 0 === b) {
122        if ("LC_ALL" === a) {
123            for (c in this.php_js.localeCategories)
124                d.push(c + "=" + this.php_js.localeCategories[c]);
125            return d.join(";")
126        }
127        return this.php_js.localeCategories[a]
128    }
129    if (!(b in this.php_js.locales))
130        return!1;
131    if ("LC_ALL" === a)
132        for (c in this.php_js.localeCategories)
133            this.php_js.localeCategories[c] = b;
134    else
135        this.php_js.localeCategories[a] = b;
136    return b
137}
138function date(a, b) {
139    var d, e, c = this, f = ["Sun", "Mon", "Tues", "Wednes", "Thurs", "Fri", "Satur", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "
139November", "December"], g = /\\?(.?)/gi, h = function (a, b) {
140        return e[a] ? e[a]() : b
141    }, i = function (a, b) {
142        for (a = String(a); a.length < b; )
143            a = "0" + a;
144        return a
145    };
146    return e = {d: function () {
147            return i(e.j(), 2)
148        }, D: function () {
149            return e.l().slice(0, 3)
150        }, j: function () {
151            return d.getDate()
152        }, l: function () {
153            return f[e.w()] + "day"
154        }, N: function () {
155            return e.w() || 7
156        }, S: function () {
157            var a = e.j(), b = a % 10;
158            return 3 >= b && 1 == parseInt(a % 100 / 10, 10) && (b = 0), ["st", "nd", "rd"][b - 1] || "th"
159        }, w: function () {
160            return d.getDay()
161        }, z: function () {
162            var a = new Date(e.Y(), e.n() - 1, e.j()), b = new Date(e.Y(), 0, 1);
163            return Math.round((a - b) / 864e5)
164        }, W: function () {
165            var a = new Date(e.Y(), e.n() - 1, e.j() - e.N() + 3), b = new Date(a.getFullYear(), 0, 4);
166            return i(1 + Math.round((a - b) / 864e5 / 7), 2)
167        }, F: function () {
168            return f[6 + e.n()]
169        }, m: function () {
170            return i(e.n(), 2)
171        }, M: function () {
172            return e.F().slice(0, 3)
173        }, n: function () {
174            return d.getMonth() + 1
175        }, t: function () {
176            return new Date(e.Y(), e.n(), 0).getDate()
177        }, L: function () {
178            var a = e.Y();
179            return a % 4 === 0 & a % 100 !== 0 | a % 400 === 0
180        }, o: function () {
181            var a = e.n(), b = e.W(), c = e.Y();
182            return c + (12 === a && 9 > b ? 1 : 1 === a && b > 9 ? -1 : 0)
183        }, Y: function () {
184            return d.getFullYear()
185        }, y: function () {
186            return e.Y().toString().slice(-2)
187        }, a: function () {
188            return d.getHours() > 11 ? "pm" : "am"
189        }, A: function () {
190            return e.a().toUpperCase()
191        }, B: function () {
192            var a = 3600 * d.getUTCHours(), b = 60 * d.getUTCMinutes(), c = d.getUTCSeconds();
193            return i(Math.floor((a + b + c + 3600) / 86.4) % 1e3, 3)
194        }, g: function () {
195            return e.G() % 12 || 12
196        }, G: function () {
197            return d.getHours()
198        }, h: function () {
199            return i(e.g(), 2)
200        }, H: function () {
201            return i(e.G(), 2)
202        }, i: function () {
203            return i(d.getMinutes(), 2)
204        }, s: function () {
205            return i(d.getSeconds(), 2)
206        }, u: function () {
207            return i(1e3 * d.getMilliseconds(), 6)
208        }, e: function () {
209            throw"Not supported (see source code of date() for timezone on how to add support)"
210        }, I: function () {
211            var a = new Date(e.Y(), 0), b = Date.UTC(e.Y(), 0), c = new Date(e.Y(), 6), d = Date.UTC(e.Y(), 6);
212            return a - b !== c - d ? 1 : 0
213        }, O: function () {
214            var a = d.getTimezoneOffset(), b = Math.abs(a);
215            return(a > 0 ? "-" : "+") + i(100 * Math.floor(b / 60) + b % 60, 4)
216        }, P: function () {
217            var a = e.O();
218            return a.substr(0, 3) + ":" + a.substr(3, 2)
219        }, T: function () {
220            return"UTC"
221        }, Z: function () {
222            return 60 * -d.getTimezoneOffset()
223        }, c: function () {
224            return"Y-m-d\\TH:i:sP".replace(g, h)
225        }, r: function () {
226            return"D, d M Y H:i:s O".replace(g, h)
227        }, U: function () {
228            return d / 1e3 | 0
229        }}, this.date = function (a, b) {
230        return c = this, d = void 0 === b ? new Date : b instanceof Date ? new Date(b) : new Date(1e3 * b), a.replace(g, h)
231    }, this.date(a, b)
232}
233function mktime() {
234    var a = new Date, b = arguments, c = 0, d = ["Hours", "Minutes", "Seconds", "Month", "Date", "FullYear"];
235    for (c = 0; c < d.length; c++)
236        if ("undefined" == typeof b[c])
237            b[c] = a["get" + d[c]](), b[c] += 3 === c;
238        else if (b[c] = parseInt(b[c], 10), isNaN(b[c]))
239            return!1;
240    return b[5] += b[5] >= 0 ? b[5] <= 69 ? 2e3 : b[5] <= 100 ? 1900 : 0 : 0, a.setFullYear(b[5], b[3] - 1, b[4]), a.setHours(b[0], b[1], b[2]), (a.getTime() / 1e3 >> 0) - (a.getTime() < 0)
241}
242
243
244
245var meses = {
246    '1': 'Janeiro',
247    '2': 'Fevereiro',
248    '3': 'Março',
249    '4': 'Abril',
250    '5': 'Maio',
251    '6': 'Junho',
252    '7': 'Julho',
253    '8': 'Agosto',
254    '9': 'Setembro',
255    '10': 'Outubro',
256    '11': 'Novembro',
257    '12': 'Dezembro'};
258
259
260
261/**
262 * Modifica as informações do calendário
263 *
264 * @param int mes
265 * @param int ano
266 * @return void
267 */
268function modificarCalendario(mes, ano)
269{
270    var dias = date("t", mktime(0, 0, 0, mes, '01', ano)),
271        udmp = parseInt(date("t", mktime(0, 0, 0, (mes - 1 != 0 ? mes - 1 : 12), '01', (mes - 1) != 0 ? ano : ano - 1)));
272    html = '<tr>';
273
274    for (i = 1; i <= dias; i++) {
275        var diadasemana = parseInt(date("w", mktime(0, 0, 0, mes, i, ano))),
276            contador = 0;
277
278        if (i == 1) {
279            while (contador < diadasemana) {
280                html += '<td class="inactive">' + (udmp - diadasemana + contador + 1) + '</td>';
281                contador++;
282            }
283        }
284
285        html += '<td class="">' +
286            '<span class="' + (i == date("j") ? 'active' : '') + '">' +
287            '&nbsp;' + i + '&nbsp;' +
288            '</span>' +
289            '</td>';
290
291        if (diadasemana == 6) {
292            html += '</tr><tr>';
293        }
294    }
295
296    html += '</tr>';
297
298    return html;
299}
300
301
302$(document).on("click", ".seta-azul.esquerda, .seta-azul.direita", function () {
303    var ano = parseInt($(".area-central .azul").attr('data-id')),
304        mes = parseInt($(".area-central .verde").attr('data-id')),
305        novo = parseInt($(this).hasClass('esquerda') ? ano - 1 : ano + 1),
306        conteudo = modificarCalendario(mes, novo);
307    $(".area-central .azul").attr('data-id', novo).text(novo);
308    $("#miniCalendario table tbody").html(conteudo);
309});
310
311
312$(document).on("click", ".seta-verde.esquerda, .seta-verde.direita", function () {
313    var ano = parseInt($(".area-central .azul").attr('data-id')),
314        mes = parseInt($(".area-central .verde").attr('data-id')),
315        novo = parseInt($(this).hasClass('esquerda') ? (mes - 1 >= 1 ? mes - 1 : 12) : (mes + 1 <= 12 ? mes + 1 : 1)),
316        conteudo = modificarCalendario(novo, ano);
317    $(".area-central .verde").attr('data-id', novo).text(meses[novo]);
318    $("#miniCalendario table tbody").html(conteudo);
319});
320
321
322$(document).on("click", ".miniCalendario table tbody tr td span", function () {
323    var dia = $(this).text().replace(/\D/g, ''),
324        mesNumerico = str_pad($(".miniCalendario .area-central .verde").attr('data-id').replace(/\D/g, ''), 2, '0', 'STR_PAD_LEFT'),
325        mesPorExtenso = $(".area-central .verde").text().trim().charAt(0).toUpperCase() + $(".area-central .verde").text().trim().slice(1),
326        ano = $(".miniCalendario .area-central .azul").attr('data-id').replace(/\D/g, ''),
327        dataSelecionada = new Date(ano, mesNumerico - 1, dia),
328        dataAtual = new Date(),
329        html = '';
330
331    var urlRequisicao = "https://www.dodf.df.gov.br/dodf/jornal/pastas?pasta=" + ano + '/' + mesNumerico + '_' + mesPorExtenso + '/' + (dia < 10 ? '0' + dia : dia) + ' ' + mesNumerico + ' ' + ano;
332
333    $(".miniCalendario table .active").removeClass("active");
334    $(this).addClass("active");
335    $("#dodf-file-list").html(html);
336
337    if (dataSelecionada > dataAtual) {
338        $("#dodf-file-list").html('<li class="msg-informativa">Nenhum arquivo disponível</li>');
339        return;
340    }
341
342
343    $.post(urlRequisicao, function (response) {
344        if (!response || !response.data || typeof response.data !== 'object') {
345            console.error("Dados inválidos na resposta:", response);
346            $("#dodf-file-list").html('<li class="msg-informativa">Nenhum arquivo disponível</li>');
347            return;
348        }
349
350        var data = response.data;
351
352        if (data['arquivo'].length === undefined || data['arquivo'].length === 0) {
353            $("#dodf-file-list").html('<li class="msg-informativa">Nenhum arquivo disponível</li>');
354            return;
355        }
356
357        for (var key in data['arquivo']) {
358            var chave = data['arquivo'][key];
359
360            if (data.hasOwnProperty(chave)) {
361                var caminhoArquivo = data[chave];
362                html += '<li><a href="https://www.dodf.df.gov.br/dodf/jornal/visualizar-pdf?' + caminhoArquivo.trim().replace(/\|/g, '/') + '" target="_blank">' + chave.trim() + '</a></li>';
363            }
364
365        }
366
367        $("#dodf-file-list").html(html);
368
369    }).fail(function (xhr, status, error) {
370        console.error("Erro na requisição:", status, error);
371        $("#dodf-file-list").html('<li class="msg-informativa">Nenhum arquivo disponível</li>');
372    });
373});
374
375
376function simularCliqueDataAtual() {
377    var dataAtual = new Date();
378    var diaAtual = dataAtual.getDate();
379    var mesAtual = dataAtual.getMonth() + 1;
380    var anoAtual = dataAtual.getFullYear();
381
382    $(".miniCalendario table tbody tr td span").each(function () {
383        var diaCalendario = parseInt($(this).text().replace(/\D/g, ''), 10);
384        var mesCalendario = parseInt($(".miniCalendario .area-central .verde").attr('data-id').replace(/\D/g, ''), 10);
385        var anoCalendario = parseInt($(".miniCalendario .area-central .azul").attr('data-id').replace(/\D/g, ''), 10);
386
387
388        if (diaAtual === diaCalendario && mesAtual === mesCalendario && anoAtual === anoCalendario) {
389            $(this).click();
390            return false;
391        }
392    });
393}
394Liferay.on('allPortletsReady', function () {
395    var mesAtual = new Date().getMonth() + 1;
396    var anoAtual = new Date().getFullYear();
397
398    // Update the calendar for the current month and year
399    var conteudo = modificarCalendario(mesAtual, anoAtual);
400
401    // Update the calendar's HTML content
402    $(".area-central .verde").attr('data-id', mesAtual).text(meses[mesAtual]);
403    $(".area-central .azul").attr('data-id', anoAtual).text(anoAtual);
404    $("#miniCalendario table tbody").html(conteudo);
405
406    // Simulate clicking the current day after updating the calendar
407    simularCliqueDataAtual();
408});
409
410
411

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.