PageSourceSearch

https://moha.go.tz/site/js/custom.min.js

js moha.go.tz collected 2026-10-02 19:02:03 UTC 4,618 bytes, 187 lines download raw bytes

1
2var main_url =  window.location.href;
3var main_url_array =  window.location.href.split("/");
4var current_url = main_url_array[main_url_array.length - 1];
5//console.log(current_url);
6
7$(".nav-bottom-header li.nav-item").removeClass("active"), $(".nav-bottom-header").find('a[href="' + main_url + '"]').parents("li.nav-item").addClass("active"), $("body").scroll(function(o) {
8  180 < $("body").scrollTop() ? $(".top-bottom").addClass("fixed-top") : $(".top-bottom").removeClass("fixed-top")
9}), $(document).ready(function() {
10  $(".dataTable").dataTable({
11    autoWidth: !1,
12    columnDefs: [{
13      targets: ["_all"],
14      className: "mdc-data-table__cell"
15    }],
16    bPaginate: !0,
17    bLengthChange: !1,
18    bFilter: !0,
19    bInfo: !0,
20    bAutoWidth: !0,
21    oLanguage: {
22      sSearch: " ",
23      oPaginate: {
24        sPrevious: '<svg viewBox="0 0 24 24" focusable="false" class="mat-paginator-icon"><path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"></path></svg>',
25        sNext: '<svg viewBox="0 0 24 24" focusable="false" class="mat-paginator-icon"><path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"></path></svg>'
26      }
27    }
28  }), $('input[type="search"]').attr("placeholder", "Search ..."), $("li.dropdown").hover(function() {
29    $(".dropdown-menu", this).first().stop(!0, !0).slideDown("fast"), $(this).toggleClass("open")
30  }, function() {
31    $(".dropdown-menu", this).first().stop(!0, !0).slideUp("fast"), $(this).toggleClass("open")
32  }), $(".popup-youtube, .popup-vimeo").magnificPopup({
33    disableOn: 700,
34    type: "iframe",
35    mainClass: "mfp-fade",
36    removalDelay: 160,
37    preloader: !1,
38    fixedContentPos: !1,
39    iframe: {
40      patterns: {
41        youtube: {
42          index: "youtube.com/",
43          id: function(o) {
44            var e = o.match(/[\\?\\&]v=([^\\?\\&]+)/);
45            return e && e[1] ? e[1] : null
46          },
47          src: "https://www.youtube.com/embed/%id%?autoplay=1"
48        },
49        vimeo: {
50          index: "vimeo.com/",
51          id: function(o) {
52            var e = o.match(/(https?:\/\/)?(www.)?(player.)?vimeo.com\/([a-z]*\/)*([0-9]{6,11})[?]?.*/);
53            return e && e[5] ? e[5] : null
54          },
55          src: "https://player.vimeo.com/video/%id%?autoplay=1"
56        }
57      }
58    }
59  })
60}),  
61$(".slick-one").slick({
62  slidesToShow: 1,
63  slidesToScroll: 1,
64  dots: false,
65  arrows: true,
66  autoplay: !0,
67  responsive: [{
68    breakpoint: 1025,
69    settings: {
70      slidesToShow: 1,
71      slidesToScroll: 1,
72      infinite: !0,
73      dots: !1
74    }
75  }, {
76    breakpoint: 769,
77    settings: {
78      slidesToShow: 1,
79      slidesToScroll: 1,
80      infinite: !0,
81      dots: !1
82    }
83  }, {
84    breakpoint: 600,
85    settings: {
86      slidesToShow: 1,
87      slidesToScroll: 1
88    }
89  }, {
90    breakpoint: 480,
91    settings: {
92      slidesToShow: 1,
93      slidesToScroll: 1
94    }
95  }]
96}),
97$(".slick-slide1").slick({
98  slidesToShow: 6,
99  slidesToScroll: 1,
100  dots: false,
101  arrows: true,
102  autoplay: !0,
103  responsive: [{
104    breakpoint: 1025,
105    settings: {
106      slidesToShow: 4,
107      slidesToScroll: 1,
108      infinite: !0,
109      dots: !1
110    }
111  }, {
112    breakpoint: 769,
113    settings: {
114      slidesToShow: 3,
115      slidesToScroll: 1,
116      infinite: !0,
117      dots: !1
118    }
119  }, {
120    breakpoint: 600,
121    settings: {
122      slidesToShow: 2,
123      slidesToScroll: 1
124    }
125  }, {
126    breakpoint: 480,
127    settings: {
128      slidesToShow: 1,
129      slidesToScroll: 1
130    }
131  }]
132}), 
133
134$(".slick-slide2").slick({
135  slidesToShow: 2,
136  slidesToScroll: 1,
137  dots: !0,
138  arrows: !1,
139  autoplay: !0,
140  responsive: [{
141    breakpoint: 1025,
142    settings: {
143      slidesToShow: 4,
144      slidesToScroll: 1,
145      infinite: !0,
146      dots: !1
147    }
148  }, {
149    breakpoint: 769,
150    settings: {
151      slidesToShow: 2,
152      slidesToScroll: 1,
153      infinite: !0,
154      dots: !1
155    }
156  }, {
157    breakpoint: 600,
158    settings: {
159      slidesToShow: 2,
160      slidesToScroll: 1
161    }
162  }, {
163    breakpoint: 480,
164    settings: {
165      slidesToShow: 1,
166      slidesToScroll: 1
167    }
168  }]
169});
170
171
172
173var delays = [2500, 5000];
174
175function cycle(id) {
176  var nextId = (id == "deputy-secretaries") ? "secretaries" : "deputy-secretaries";
177  var del = (id == "deputy-secretaries") ? delays[0] : delays[1]; 
178  $("." + id)
179    .fadeIn(400)
180    .delay(del) 
181    .fadeOut(400, function() {
182      cycle(nextId);
183    });
184}
185cycle("secretaries", 0);
186
187 

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.