PageSourceSearch

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

js sheria.go.tz collected 2026-10-04 21:58:53 UTC 9,871 bytes, 1 lines download raw bytes

1var current_url=(current_url=window.location.href.split("/"))[current_url.length-1];$("#cssmenu li.menu-parent").removeClass("active"),$("#cssmenu").find('a[href="'+current_url+'"]').parents("li.menu-parent").addClass("active"),$("body").scroll(function(e){180<$("body").scrollTop()?$(".top-fixed").addClass("fixed-top"):$(".top-fixed").removeClass("fixed-top"),scrollBanner()});const main_banners=document.querySelectorAll(".parallax-banner");var banners_offsets=[],banners_rates=[],hasReset=(main_banners.length&&main_banners.forEach((e,t)=>{banners_offsets.push(0),banners_rates.push(.5),bannerPosition=e.getBoundingClientRect().top+scrollTop,e.dataset.offset&&(banners_offsets[t]=parseInt(e.dataset.offset)),e.dataset.rate&&(banners_rates[t]=parseFloat(e.dataset.rate)),991.98<$(window).width()?e.style.backgroundPosition="0px "+-1*banners_offsets[t]+"px":e.style.backgroundPosition="0px 0px"}),$(window).resize(function(e){scrollBanner(),makeSquareUsingHeight(),hasReset=!1}),!1),scrollTop=0;function scrollBanner(){hasReset&&$(window).width()<991.98||(scrollTop=$("body").scrollTop(),main_banners.length&&main_banners.forEach((e,t)=>{bannerPosition=e.getBoundingClientRect().top+scrollTop,991.98<$(window).width()?e.style.backgroundPosition="0px "+(scrollTop*banners_rates[t]-banners_offsets[t])+"px":(e.style.backgroundPosition="0px 0px",hasReset=!0)}))}function makeSquareUsingHeight(){0!==squared_items_by_height.length&&squared_items_by_height.forEach(e=>{e.style.width=getComputedStyle(e,null).height})}var squared_items_by_height=[],sheet=($(document).ready(function(){var e=document.querySelector(".popup-close"),e=(e&&e.addEventListener("click",function(){document.querySelector(this.dataset.close).classList.add("closed")}),document.querySelector(".scroll-to-content")),e=(e&&e.addEventListener("click",function(){document.querySelector("#homeContentTether").scrollIntoView({behavior:"smooth"})}),document.querySelector(".scroll-to-top"));e&&e.addEventListener("click",function(){document.querySelector("header").scrollIntoView({behavior:"smooth"})});const t=document.querySelector(".search-form-container");var o,e=document.querySelectorAll(".search-toggle");t&&e.length&&e.forEach(e=>{e.addEventListener("click",()=>{t.classList.toggle("active");var e=document.querySelector(".menu-button");e&&(t.classList.contains("active")?(e.classList.replace("d-flex","d-none"),e.classList.contains("menu-opened")&&e.click()):e.classList.replace("d-none","d-flex"))})}),squared_items_by_height=document.querySelectorAll(".squared-item-by-height"),makeSquareUsingHeight(),$(document).ready(function(){document.querySelector(".owl-carousel")&&$(".owl-carousel").owlCarousel({nav:!0,navContainer:".custom-owl-nav",navText:[document.querySelector(".owl-prev-template"),document.querySelector(".owl-next-template")],rtl:!1,loop:!0,autoplay:!0,autoplayTimeout:3e3,autoplayHoverPause:!0,dots:!0,dotsEach:!0,responsiveClass:!0,responsive:{0:{items:1},600:{items:3},1e3:{items:4}}})}),$(document).ready(function(){document.querySelector(".owl-carousel-2")&&$(".owl-carousel-2").owlCarousel({nav:!0,navContainer:".custom-owl-nav-2",navText:[document.querySelector(".owl-prev-template-2"),document.querySelector(".owl-next-template-2")],rtl:!1,loop:!0,autoplay:!0,autoplayTimeout:3e3,autoplayHoverPause:!0,dots:!0,dotsEach:!0,responsiveClass:!0,responsive:{0:{items:1},425:{items:2},768:{items:3},1024:{items:4}}})}),$(document).ready(function(){document.querySelector(".owl-carousel-3")&&$(".owl-carousel-3").owlCarousel({nav:!0,navContainer:".custom-owl-nav-3",navText:[document.querySelector(".owl-prev-template-3"),document.querySelector(".owl-next-template-3")],rtl:!1,loop:!0,autoplay:!0,autoplayTimeout:3e3,autoplayHoverPause:!0,dots:!0,dotsEach:!0,responsiveClass:!0,responsive:{0:{items:1},600:{items:3},1e3:{items:5}}})}),$(document).ready(function(){var e,t;document.querySelector(".mySwiper")&&(o=new Swiper(".mySwiper",{effect:"cards",grabCursor:!0,speed:700,spaceBetween:50,autoplay:{delay:3e3}}),(e=document.querySelector(".swiper-next"))&&e.addEventListener("click",()=>{o.slideNext()}),(e=document.querySelector(".swiper-prev"))&&e.addEventListener("click",()=>{o.slidePrev()}),(t=document.querySelectorAll(".swiper-indicator")).length&&t.forEach((e,t)=>{e.addEventListener("click",()=>{o.slideTo(t,700,!1)})}),o.on("slideChange",function(){var e;t.length>=o.activeIndex+1&&((e=document.querySelector(".swiper-indicator.active"))&&e.classList.remove("active"),t[o.activeIndex].classList.add("active"))}))}),$(".dataTable").dataTable({autoWidth:!1,columnDefs:[{targets:["_all"],className:"mdc-data-table__cell"}],bPaginate:!0,bLengthChange:!1,bFilter:!0,bInfo:!0,bAutoWidth:!0,oLanguage:{sSearch:" ",oPaginate:{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>',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>'}}}),$("li.dropdown").hover(function(){$(".dropdown-menu",this).first().stop(!0,!0).slideDown("fast"),$(this).toggleClass("open")},function(){$(".dropdown-menu",this).first().stop(!0,!0).slideUp("fast"),$(this).toggleClass("open")}),$(".popup-youtube, .popup-vimeo").magnificPopup({disableOn:700,type:"iframe",mainClass:"mfp-fade",removalDelay:160,preloader:!1,fixedContentPos:!1,iframe:{patterns:{youtube:{index:"youtube.com/",id:function(e){e=e.match(/[\\?\\&]v=([^\\?\\&]+)/);return e&&e[1]?e[1]:null},src:"https://www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:function(e){e=e.match(/(https?:\/\/)?(www.)?(player.)?vimeo.com\/([a-z]*\/)*([0-9]{6,11})[?]?.*/);return e&&e[5]?e[5]:null},src:"https://player.vimeo.com/video/%id%?autoplay=1"}}}}),colorThief()}),$(".carousel").carousel({interval:5e3}),$(".slick-slide1").slick({slidesToShow:6,slidesToScroll:1,infinite:!0,dots:!0,arrows:!1,autoplay:!0,responsive:[{breakpoint:1025,settings:{slidesToShow:5,slidesToScroll:1,infinite:!0,dots:!1}},{breakpoint:769,settings:{slidesToShow:4,slidesToScroll:1,infinite:!0,dots:!1}},{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:3,slidesToScroll:1}}]}),$(".slick-slide2").slick({slidesToShow:2,slidesToScroll:1,dots:!0,arrows:!1,autoplay:!0,responsive:[{breakpoint:1025,settings:{slidesToShow:4,slidesToScroll:1,infinite:!0,dots:!1}},{breakpoint:769,settings:{slidesToShow:2,slidesToScroll:1,infinite:!0,dots:!1}},{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:1}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]}),$(".photo-top").slick({autoplay:!0,arrows:!1,autoplaySpeed:2e3}),$(".photo-bottom").slick({autoplay:!0,arrows:!1,autoplaySpeed:2e3}),"");function colorThief(){var e=document.querySelectorAll(".thiefed-image");const r=document.querySelectorAll(".target-backdrop"),l=document.querySelectorAll(".target-text");e&&(sheet=document.createElement("style"),e.forEach((s,a)=>{var n=new ColorThief,[e,t,o]=n.getColor(s);s.complete?([e,t,o]=n.getColor(s),r.length&&(r[a].classList.add("target-backdrop-"+a),sheet.innerHTML+=".has-hover-color-thief:hover .target-backdrop-"+a+"{background-color:rgb("+e+","+t+","+o+");}"),l.length&&(l[a].classList.add("target-text-"+a),sheet.innerHTML+=".has-hover-color-thief:hover .target-text-"+a+"{color:rgb("+e+","+t+","+o+");}")):s.addEventListener("load",function(){var[e,t,o]=n.getColor(s);n.getColor(s),r.length&&(r[a].classList.add("target-backdrop-"+a),sheet.innerHTML+=".has-hover-color-thief:hover .target-backdrop-"+a+"{background-color:rgb("+e+","+t+","+o+");}"),l.length&&(l[a].classList.add("target-text-"+a),sheet.innerHTML+=".has-hover-color-thief:hover .target-text-"+a+"{color:rgb("+e+","+t+","+o+");}")})}),document.body.appendChild(sheet))}function getAverageRGB(e){var t,o,s,a={r:0,g:0,b:0},n=document.createElement("canvas"),r=n.getContext&&n.getContext("2d"),l=-4,i={r:0,g:0,b:0},c=0;if(!r)return a;o=n.height=e.naturalHeight||e.offsetHeight||e.height,n=n.width=e.naturalWi
1dth||e.offsetWidth||e.width,r.drawImage(e,0,0);try{t=r.getImageData(0,0,n,o)}catch(e){return a}for(s=t.data.length;(l+=20)<s;)++c,i.r+=t.data[l],i.g+=t.data[l+1],i.b+=t.data[l+2];return i.r=~~(i.r/c),i.g=~~(i.g/c),i.b=~~(i.b/c),i}const faqListSelect=document.querySelector("#selectFaqList");var noFaqsFields=document.querySelectorAll(".no-faq"),faqAns=document.querySelector(".faq-ans"),submitFaqButton=document.querySelector(".submit-faq"),allAnsweredFaqs=document.querySelectorAll(".answered-faq"),faqForm=document.querySelector(".faq-form");function showAns(){faqChanged(value=faqListSelect.value),faqAns.textContent=value,console.log("ehehe")}function showAnsFor(t){var o=[],e=(allAnsweredFaqs.forEach(e=>{e.dataset.faq.length==t.length&&o.push(e)}),1==o.length&&(faqAns.textContent=o[0].dataset.ans),1<o.length&&o.forEach(e=>{e.dataset.faq==t&&(faqAns.textContent=e.dataset.ans)}),hideInputs(),document.querySelector(".searchSelect3_Times"));e&&e.addEventListener("click",()=>{faqAns.textContent="",hideInputs()})}function hideInputs(){noFaqsFields.forEach(e=>{e.classList.add("d-none")}),submitFaqButton.classList.add("d-none"),faqAns.classList.remove("d-none")}function faqChanged(){faqAns.textContent="",document.querySelector(".searchSelect3_List").querySelector("li")?(noFaqsFields.forEach(e=>{e.classList.add("d-none")}),faqAns.classList.remove("d-none"),submitFaqButton.classList.add("d-none")):(noFaqsFields.forEach(e=>{e.classList.remove("d-none")}),faqAns.classList.add("d-none"),submitFaqButton.classList.remove("d-none"))}function faqSubmitChanged(){faqForm.reportValidity()?submitFaqButton.disabled=!1:submitFaqButton.disabled=!0}faqListSelect&&(faqListSelect.addEventListener("change",()=>{showAns()}),noFaqsFields.forEach(e=>e.addEventListener("keyup",()=>{faqSubmitChanged()})));

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.