PageSourceSearch

https://mke.gov.tr/Content/js/mke.js?v=F332BFEAEE76F89D5764E30F40EEAC25

js mke.gov.tr collected 2026-10-02 12:12:25 UTC 11,018 bytes, 265 lines download raw bytes

1$(window).on('load', function () {
2
3    ControlLanguageFromInPage();
4
5    var maximumHaber = null;
6    $('#haberler .item-content').each(function () {
7        var value = parseFloat($(this).height());
8        maximumHaber = (value > maximumHaber) ? value : maximumHaber;
9    });
10    $('#haberler .item-content').height(maximumHaber);
11
12    MakaleYukseklikAyari();
13
14    if ($('a[data-fancybox="galeriResim"]').length > 0) {
15        Fancybox.bind('[data-fancybox="galeriResim"]');
16    }
17
18    lazyload(document.querySelectorAll(".lazyLoad"));
19    BilgilendirmeGetir();
20    CerezPolitikasi();
21
22
23
24    $(window).scroll(function () {
25        if ($(this).scrollTop() > 0) {
26            $('#makaleler').removeClass('d-none');
27            MakaleYukseklikAyari();
28        }
29        else {
30            $('#makaleler').addClass('d-none');
31        }
32    });
33
34    
35
36    $('a').each(function () {
37        if ($(this).attr('href') !== undefined && $(this) !== false && $(this).attr('href') != "" && $(this).attr('href').indexOf('#') == -1 && $(this).attr('href') != "javascript:void(0)" && $(this).attr('href').indexOf('D_Dosya') == -1 && $(this).attr('href').indexOf('turkiye.gov.tr') == -1) {
38            $(this).addClass('lnkPreLoad');
39        }
40    })
41
42    $('.lnkPreLoad').click(function (event) {
43        setTimeout(function () {
44            $(".preloader").fadeIn(800, function () {
45                setTimeout(function () {
46                    $(".preloader").fadeOut(800);
47                }, 800);
48            });
49        }, 1);
50    });
51
52
53    $("a[data-toggle='collapse']").click(function () {
54        $([document.documentElement, document.body]).animate({
55            scrollTop: parseInt($(this).offset().top - $(this).position().top) - 100
56        }, 10);
57    });
58
59    if (isMobileDevice()) {
60        $('iframe').each(function () {
61            var frameSrc = $(this).attr('src');
62            pdfIndirmeMobile($(this),frameSrc);
63        });
64    }
65});
66
67function MakaleYukseklikAyari() {
68    var maximumMakaler = null;
69    $('#makaleler .item-content').each(function () {
70        var value = parseFloat($(this).height());
71        maximumMakaler = (value > maximumMakaler) ? value : maximumMakaler;
72    });
73    $('#makaleler .item-content').height(maximumMakaler);
74}
75function BilgilendirmeGetir() {
76    var modulStr = window.location.pathname.split('/')[1];
77    if (modulStr == "") {
78        modulStr = "Home"
79        if (localStorage.getItem('i18nextLng') === 'tr') {
80            modulStr = "Anasayfa"
81        }
82    }
83    $.ajax({
84        cache: false,
85        global: false,
86        async: false,
87        type: 'POST',
88        data: {
89            modul: modulStr
90        },
91        dataType: "json",
92        url: '/Anasayfa/BilgilendirmeGetir',
93        beforeSend: function () {
94            $('#popUpBody').empty();
95            $(".preloader").show();
96        },
97        success: function (veri) {
98            var popUpSonuc = veri.Sonuc;
99            if (veri.SonucEng != null) {
100                popUpSonuc = veri.SonucEng
101            }
102            if (popUpSonuc.length > 0) {
103                var resultStr = "";
104                var first = "";
105                $.each(popUpSonuc, function (index, satir) {
106                    var linkName = "->Detail";
107                    var engAyrac = "ENG";
108                    if (veri.Sonuc != null) {
109                        linkName = "->Detay";
110                        engAyrac = "";
111                        if (localStorage.getItem('i18nextLng') !== 'tr') {
112                            i18next.changeLanguage('tr', () => {
113                                rerender();
114                            });
115                        }
116                    }
117
118                    var icerikKontrol = false;
119                    var resimBoyutu = "w-100";
120                    if (satir['POPUP' + engAyrac + '_ICERIK'] != "" && satir['POPUP' + engAyrac + '_ICERIK'] != null) {
121                        icerikKontrol = true
122                        resimBoyutu = "w-75";
123                    }
124                    
125                    resultStr += '<h5>' + satir['POPUP' + engAyrac + '_BASLIK'] + '</h5>';
126                    if (satir['POPUP_RESIM'] != "" && satir['POPUP_RESIM'] != undefined) {
127                        resultStr += '<div class="text-center"><img class="mb-3 ' + resimBoyutu + '" src="/D_Dosya/Dosyalar/' + satir['POPUP_RESIM'] + '" /></div>';
128                    }
129
130                    if (icerikKontrol) {
131                        resultStr += decodeEntities(satir['POPUP' + engAyrac + '_ICERIK'])
132                    }
133
134                    if (satir['POPUP' + engAyrac + '_LINK'] != null && satir['POPUP' + engAyrac + '_LINK'] != "" && satir['POPUP' + engAyrac + '_LINK'] != "#") {
135
136                        resultStr += '<p class="text-right my-2"><a target="_blank" href="' + satir['POPUP' + engAyrac + '_LINK'] + '" class="btn btn-maincolor">' + linkName + '</a></p>';
137                    }
138                    resultStr += '</div>';
139                });
140                if (resultStr != "") {
141                    $('#popUpBody').html(resultStr);
142                    $('#mke_modal_info').modal({
143                        backdrop: "static",
144                        keyboard: false,
145                    }, 'show');
146                }
147            }
148
149            $(".preloader").fadeOut(800);
150        },
151    });
152}
153
154function decodeEntities(encodedString) {
155    var textArea = document.createElement('textarea');
156    textArea.innerHTML = encodedString;
157    return textArea.value;
158}
159
160function CerezPolitikasi() {
161
162    var link = "Detay";
163    var href = "/Hakkimizda/Cerez-Politikasi/18";
164    var dismiss = "Anladım";
165    var message = "Bu internet sitesinde sizlere daha iyi hizmet sunulabilmesi için çerezler kullanılmaktadır. Çerez politikamız hakkında bilgi edinmek için";
166    var deny = "Reddet";
167    var allow = "Kabul Et";
168    if (localStorage.getItem('i18nextLng') === 'en') {
169        link = "Detail";
170        href = "/About/Cookie-Policy/16";
171        message = "Cookies are used on this website to provide you with a better service. To learn about our cookie policy.";
172        dismiss = "Got it!";
173        deny = "Decline";
174        allow = "Kabul Et";
175    }
176
177    window.cookieconsent.initialise({
178        palette: {
179            popup: { background: "#f4ca59" },
180            button: { background: "#0a1014" },
181        },
182        content: {
183            message: message,
184            dismiss: dismiss,
185            allow: allow,
186            deny: deny,
187            link: link,
188            href: href,
189            policy: 'MKE Cookie Policy',
190            target: '_blank',
191        }
192    });
193
194
195
196
197}
198function ControlLanguageFromInPage() {
199    $(".preloader").show();
200    var modulStr = window.location.pathname.split('/')[1].toLowerCase();
201    if (modulStr == "urunsatis" || modulStr =="hurdaurunler") {
202        setLanguage(false, 'tr');
203    }
204    else if (modulStr == '') {
205        setLanguage(false, 'tr');
206    }
207    else if ((modulStr == "home" ||
208        modulStr == "about" ||
209        modulStr == "products" ||
210        modulStr == "career" ||
211        modulStr == "plants" ||
212        modulStr == "references" ||
213        modulStr == "announcements" ||
214        modulStr == "contact" ||
215        modulStr == "catalog" ||
216        modulStr == "news" ||
217        modulStr == "articles" ||
218        modulStr == "seniormanagement" ||
219        modulStr == "quality" ||
220        modulStr == "board-of-directors") && (localStorage.getItem('i18nextLng') === 'tr' || $('html').attr('lang') == 'tr')) {
221        setLanguage(true, 'en');
222    }
223    else if ((modulStr == "anasayfa" ||
224        modulStr == "hakkimizda" ||
225        modulStr == "urunler" ||
226        modulStr == "insankaynaklari" ||
227        modulStr == "fabrikalar" ||
228        modulStr == "referanslar" ||
229        modulStr == "duyurular" ||
230        modulStr == "iletisim" ||
231        modulStr == "kataloglar" ||
232        modulStr == "haberler" ||
233        modulStr == "makaleler" ||
234        modulStr == "ustyonetim" ||
235        modulStr == "kalite" ||
236        modulStr == "yonetim-kurulu") && (localStorage.getItem('i18nextLng') === 'en' || $('html').attr('lang') == 'en')) {
237        setLanguage(true, 'tr');
238    }
239}
240
241
242//ToDo: Pdf indirme
243function pdfIndirmeMobile(element,DosyaYolu) {
244    //if (event.handleObj.type == "click") {
245    //    return;
246    //}
247    var link2 = document.createElement('a');
248    link2.target = "_blank";
249    link2.href = DosyaYolu;
250    link2.className = "ds btn btn-secondary";
251    link2.text = "İNDİR";
252    link2.style = "width:100%";
253    //link2.click();
254    element.parent().append(link2);
255
256    element.remove();
257    return;
258}
259
260
261function isMobileDevice() {
262var check = false;
263(function (a) { if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4))) check 
263= true; })(navigator.userAgent || navigator.vendor || window.opera);
264return check;
265};

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.