PageSourceSearch

https://www.eshot.gov.tr/Scripts/OnyuzSayfaScriptleri/anasayfa.js

js eshot.gov.tr collected 2026-10-02 18:02:39 UTC 4,940 bytes, 133 lines download raw bytes

1$(document).ready(function () {
2    var isTouch = Modernizr.touch;
3    if (isTouch) {
4        var tag = document.createElement("script");
5        tag.src = "/Scripts/default/jmobile-tr-lowercase-ext.js";
6        document.getElementsByTagName("head")[0].appendChild(tag);
7
8        var tag2 = document.createElement("script");
9        tag2.src = "/Scripts/default/jquery.mobile-1.4.5.min.js";
10        document.getElementsByTagName("head")[0].appendChild(tag2);
11
12        $('a').attr("target", "_self");
13
14        $('#webinput-group').hide();
15        $('#mobileinput-group').show();
16        $('#webinput-group-otobusumnerede').hide();
17        $('#mobileinput-group-otobusumnerede').show();
18
19    } else {
20
21        $('#webinput-group').show();
22        $('#mobileinput-group').hide();
23        $('#webinput-group-otobusumnerede').show();
24        $('#mobileinput-group-otobusumnerede').hide();
25    }
26});
27
28$(document).mouseup(function (e) {
29    var container = $("#mobileinput-group");
30    if (!container.is(e.target) // if the target of the click isn't the container...
31        &&
32        container.has(e.target).length === 0) // ... nor a descendant of the container
33    {
34        $("#mobileinput-group .selector").hide();
35        $("#mobileinput-group input").removeClass("active");
36    }
37    else {
38        $("#mobileinput-group .selector").show();
39        $("#mobileinput-group input").addClass("active");
40    }
41
42    container = $("#mobileinput-group-otobusumnerede");
43    if (!container.is(e.target) // if the target of the click isn't the container...
44        &&
45        container.has(e.target).length === 0) // ... nor a descendant of the container
46    {
47        $("#mobileinput-group-otobusumnerede .selector").hide();
48        $("#mobileinput-group-otobusumnerede input").removeClass("active");
49    }
50    else {
51        $("#mobileinput-group-otobusumnerede .selector").show();
52        $("#mobileinput-group-otobusumnerede input").addClass("active");
53    }
54});
55
56
57function hattinDuraklariniGetir() {
58    $("#drpOtobusumNeredeDuraklar").empty();
59    $("#drpOtobusumNeredeDuraklar").append($("<option></option>"));
60    var hatId = $("#drpOtobusumNeredeHatlar option:selected").val();
61    var hatYon = $("#chkHatYon").prop('checked') ? 1 : 2;
62    var lnk = "/tr/UlasimSaatleri/HattinDuraklariniGetir/";
63    $.ajax({
64        url: lnk,
65        type: 'GET',
66        data: {
67            hatId: hatId, hatYon: hatYon
68        },
69        success: function (result) {
70            $.each(result, function (key, value) {
71                $("#drpOtobusumNeredeDuraklar").append($("<option></option>").val(value.DurakId).html(value.DurakId + ' - ' + value.Adi));
72            });
73            $("#drpOtobusumNeredeDuraklar").trigger("chosen:updated");
74        },
75        error: function (jqxhr, status, errorThrown) {
76            alert(jqxhr.responseText);
77        }
78    });
79}
80
81function hattinDuraklariniGetirMobil(hatId, hatNo) {
82    $("#drpOtobusumNeredeDuraklar").empty();
83    $("#drpOtobusumNeredeDuraklar").append($("<option></option>"));
84    
85    $("#webinput-group-otobusumnerede #drpOtobusumNeredeHatlar").removeAttr("onchange");
86    $("#webinput-group-otobusumnerede #drpOtobusumNeredeHatlar").val(hatId);
87
88    var hatYon = $("#chkHatYon").prop('checked') ? 1 : 2;
89    var lnk = "/tr/UlasimSaatleri/HattinDuraklariniGetir/";
90    $.ajax({
91        url: lnk,
92        type: 'GET',
93        data: {
94            hatId: hatId, hatYon: hatYon
95        },
96        success: function (result) {
97            $.each(result, function (key, value) {
98                $("#drpOtobusumNeredeDuraklar").append($("<option></option>").val(value.DurakId).html(value.DurakId + ' - ' + value.Adi));
99            });
100            $("#drpOtobusumNeredeDuraklar").trigger("chosen:updated");
101
102            $("#mobileinput-group-otobusumnerede .selector").hide();
103            $("#mobileinput-group-otobusumnerede input").removeClass("active");
104            $("#mobileinput-group-otobusumnerede div.ui-input-search input").val("No: " + hatNo);
105        },
106        error: function (jqxhr, status, errorThrown) {
107            alert(jqxhr.responseText);
108        }
109    });
110}
111
112$(function () {
113    $("#durakAdi").autocomplete({
114        source: function (request, response) {
115            $.ajax({
116                url: "/tr/DuraktanGecenHatlar/KritereGoreDurakGetir",
117                type: 'GET',
118                data: {
119                    durak: request.term
120                },
121                success: function (data) {
122                    response($.map(data, function (item) {
123                        return { label: item.Adi, value: item.Adi, id: item.DurakId };
124                    }))
125                }
126            });
127        },
128        minLength: 3,
129        select: function (event, ui) {
130            $("#durakId").val(ui.item.id);
131        }
132    });
133});

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.