PageSourceSearch

https://meb.gov.tr/assets/js/meb_menu.js

js meb.gov.tr collected 2026-09-24 08:41:06 UTC 10,258 bytes, 284 lines download raw bytes

1function mainMenu(document) {
2  var sayac = 1;
3  var slash='/';
4  $(document)
5    .find("tab")
6    .each(function () {
7      //Browser Menu
8      if (sayac == 7 /*iletişim menüsü*/) {
9        slash='';
10      }
11      $(".nav-list").append(
12        '<li class="list-item dropdown menu-header-' +
13          $(this).find("menu").text() +
14          '">' +
15          '<a class="nav-link dropdown-button" href="#"><span>' +
16          $(this).find("title").text() +
17          "</span>" +
18          '<div class="dropdown-icon"><img src="/assets/img/Vector.png" /> </div>' +
19          "</a>" +
20          '<span class="ps-2 d-none d-lg-block fw-light ">'+slash+'</span>' +
21          '<div class="dropdown-container">' +
22          '<div class="menu-content">' +
23          '	<button type="button" class="return-btn">' +
24          '		<i class="bi bi-chevron-left"></i>' +
25          "		<span>" +
26          $(this).find("title").text() +
27          "</span>" +
28          "	</button>" +
29          "</div>" +
30          "</div>" +
31          "</li>"
32      );
33      //Mobile Menu
34      $("#mobile-menu ul").append(
35        '<li data-menu-id="' +
36          $(this).find("menu").text() +
37          '"><span><a href="">' +
38          $(this).find("title").text() +
39          "</a><span></li>"
40      );
41      //Footer Menu
42      if (sayac == 2 ) {
43        $("#footer-menu").append(
44          '<div class="col-6 col-md-3 order-md-1 col-lg-2 order-1" id="footer-menu' +
45            $(this).find("menu").text() +
46            '"><h2 class="footer-baslik">' +
47            $(this).find("title").text() +
48            "</h2></div>"
49        );
50      }
51      if (sayac == 7) {
52        $("#footer-menu").append(
53          '<div class="col-6 col-md-3 order-md-1 col-lg-2 order-2" id="footer-menu' +
54            $(this).find("menu").text() +
55            '"><h2 class="footer-baslik">' +
56            $(this).find("title").text() +
57            "</h2></div>"
58        );
59      }
60      if (sayac == 3) {
61        $("#footer-menu").append(
62          '<div class="col-6 col-md-3 order-md-1 col-lg-3 order-3" id="footer-menu' +
63            $(this).find("menu").text() +
64            '-0"><h2 class="footer-baslik">' +
65            $(this).find("title").text() +
66            "</h2></div>"
67        );
68        $("#footer-menu").append(
69          '<div class="col-6 col-md-3 order-md-1 col-lg-3 order-4" id="footer-menu' +
70            $(this).find("menu").text() +
71            '-1"><h2 class="footer-baslik"> &nbsp;' +
72            "</h2></div>"
73        );
74      }
75
76      sayac++;
77    });
78
79  $("#footer-menu").append(
80    '<div class="col-md-3 col-6 order-md-1 col-lg-2 order-5">' +
81      '<h2 class="footer-baslik">Mobil Uygulamalar</h2>' +
82      '<div class="app">' +
83      '    <ul class="app-ul">' +
84      '        <li class="app-li"><a href="https://itunes.apple.com/tr/developer/t-c-milli-egitim-bakanlig%C4%B1/id656664734?l=tr"><img src="/assets/img/appstore.png" style="margin-top: 10px" class="img-fluid"></a></li>' +
85      '        <li class="app-li"><a href="https://play.google.com/store/apps/developer?id=T.C.+Milli+E%C4%9Fitim+Bakanl%C4%B1%C4%9F%C4%B1"><img src="/assets/img/googleplay.png" style="margin-top: 10px" class="img-fluid"></a></li>' +
86      '        <li class="app-li"><a href="#"><img src="/assets/img/appgallery.png" style="margin-top: 10px" class="img-fluid"></a></li>' +
87      "    </ul>" +
88      "</div>" +
89      "</div>"
90  );
91  $.ajax({
92    url: "/xml/submenu.xml", // name of file you want to parse
93    dataType: "xml",
94    success: subMenu,
95    error: function () {
96      alert("Error: Alt Menü Yüklenemedi");
97    },
98  }).done(function () {
99    mobilMenuYeni();
100  });
101}
102///sub menu
103function subMenu(document) {
104  var i = 1;
105  $(document)
106    .find("tab")
107    .each(function () {
108      /*header*/
109      if ($(this).attr("id") != "m1") {
110        $(
111          ".menu-header-" +
112            $(this).attr("id") +
113            " .dropdown-container .menu-content"
114        ).append("<ul>");
115        if ($(this).attr("id") == "m5") {
116          $(
117            ".menu-header-" +
118              $(this).attr("id") +
119              " .dropdown-container .menu-content ul"
120          ).append('<div class="birimler-flex">');
121        }
122        // }
123        $(this)
124          .find("menuRow")
125          .each(function () {
126            if ($(this).find("menu").text()) {
127              $(".menu-header-" + $(this).parent().attr("id") + " ul").append(
128                '<li class="sub-dropdown dropdown alt-menu menu-header-' +
129                  $(this).find("menu").text() +
130                  '">' +
131                  '<a class="dropdown-button menu-square" href="#"><span class="mt-lg-1">' +
132                  $(this).find("baslik").text() +
133                  "</span>" +
134                  '<div class="dropdown-icon icon-forward"><i class="bi bi-chevron-right"></i>' +
135                  "</div></a>" +
136                  '<div class="sub-dropdown-container dropdown-container">' +
137                  '<div class="menu-content">' +
138                  '<button type="button" class="return-btn">' +
139                  '<i class="bi bi-chevron-left"></i>' +
140                  "<span>" +
141                  $(this).find("baslik").text() +
142                  "</span>" +
143                  "</button>" +
144                  "</div>" +
145                  "</div>" +
146                  "</li>"
147              );
148            } else {
149              if ($(this).parent().attr("id") == "m5" /*birimler men�s�*/) {
150                if (i == 1 || i == 13) {
151                  $(
152                    ".menu-header-" +
153                      $(this).parent().attr("id") +
154                      " .dropdown-container .menu-content .birimler-flex"
155                  ).append(
156                    '<div class="menu-column"><ul class="line-' +
157                      Math.floor(i / 13) +
158                      '">'
159                  );
160                }
161                $(
162                  ".menu-header-" +
163                    $(this).parent().attr("id") +
164                    " .dropdown-container .menu-content .birimler-flex div ul.line-" +
165                    Math.floor(i / 13)
166                ).append(
167                  '<li class="alt-menu menu-square menu-header-' +
168                    $(this).find("menu").text() +
169                    '">' +
170                    '<a href="' +
171                    $(this).find("url").text() +
172                    '">' +
173                    $(this).find("baslik").text() +
174                    "</a>" +
175                    "</li>"
176                );
177                if (i == 1 || i == 13) {
178                  $(
179                    ".menu-header-" +
180                      $(this).parent().attr("id") +
181                      " .dropdown-container .menu-content .birimler-flex"
182                  ).append("</ul></div>");
183                }
184                i++;
185              } else {
186                if ($(this).find("baslik").text() != "Bakan") {
187                  $(
188                    ".menu-header-" + $(this).parent().attr("id") + " ul "
189                  ).append(
190                    '<li class="alt-menu menu-square menu-header-' +
191                      $(this).find("menu").text() +
192                      '">' +
193                      '<a href="' +
194                      $(this).find("url").text() +
195                      '">' +
196                      $(this).find("baslik").text() +
197                      "</a>" +
198                      "</li>"
199                  );
200                }
201              }
202            }
203          });
204
205        if ($(this).attr("id") != "m999") {
206          $("#menu-header-" + $(this).attr("id")).append("</ul>");
207        }
208        /*header*/
209      }
210      /*footer*/
211      if ($(this).attr("id") == "m5") {
212        $("#footer-menu" + $(this).attr("id") + "-0").append(
213          '<ul class="birim-ul">'
214        );
215        $("#footer-menu" + $(this).attr("id") + "-1").append(
216          '<ul class="birim-ul">'
217        );
218      } else {
219        $("#footer-menu" + $(this).attr("id")).append('<ul class="birim-ul">');
220      }
221      i = 1;
222      $(this)
223        .find("menuRow")
224        .each(function () {
225          if ($(this).parent().attr("id") == "m5") {
226            $(
227              "#footer-menu" +
228                $(this).parent().attr("id") +
229                "-" +
230                Math.floor(i / 13) +
231                " ul"
232            ).append(
233              '<li> <a class="collapsed" href="' +
234                $(this).find("url").text() +
235                '">' +
236                $(this).find("baslik").text() +
237                "</a></li>"
238            );
239            i++;
240          } else {
241            $("#footer-menu" + $(this).parent().attr("id") + " ul").append(
242              '<li> <a class="collapsed" href="' +
243                $(this).find("url").text() +
244                '">' +
245                $(this).find("baslik").text() +
246                "</a></li>"
247            );
248          }
249        });
250      $("#footer-menu" + $(this).attr("id")).append("</ul>");
251      /*footer*/
252    });
253  $(".menu-header-m1 .dropdown-container .menu-content").append(
254    "<ul>" +
255      '<li class="bakan-info">' +
256      '<div class="bakan-photo-wrapper d-flex">' +
257      '<a href="/meb/bakan/ozgecmis.php">' +
258      '<img class="bakan-photo" src="/meb/bakan/bakan2024_thumb.jpg" alt="Yusuf Tekin">' +
259      "</a>" +
260      ' <a href="/meb/bakan/ozgecmis.php" class="bakan_menu">' +
261      '<div class="d-block menu-bakan">' +
262      '<p class="bakan-name">' +
263      "T.C. MİLLÎ EĞİTİM BAKANI" +
264      "</p>" +
265      '<p class="bakanAdi-menu">Yusuf TEKİN</p>' +
266      "</div>" +
267      "</a>" +
268      "</div>" +
269      "</li>" +
270      '<li class="ozgecmis"><a href="/meb/bakan/ozgecmis.php">ÖZGEÇMİŞİ</a> </li>' +
271      "</ul>"
272  );
273}
274$(function () {
275  //#Menü
276  $.ajax({
277    url: "/xml/mainmenu.xml", // name of file you want to parse
278    dataType: "xml",
279    success: mainMenu,
280    error: function () {
281      alert("Error: Ana Menü Yüklenemedi");
282    },
283  });
284});

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.