PageSourceSearch

https://kurlarim.com/assets/js/sidebar.js?v=1.0.4

js kurlarim.com collected 2026-09-24 14:46:28 UTC 4,060 bytes, 129 lines download raw bytes

1$(document).on('keyup', '.currencyData', function(e) {
2    f($(this).data('name'));
3});
4function currency_converter() {
5    f($('#lastTicker').val());
6
7    /* let lastTicker = $('#lastTicker').val();
8
9    if(lastTicker == ''){
10        alert('Lütfen Değerleri Boş Bırakmayınız!');
11    }else{
12        f($('#lastTicker').val());
13    } */
14}
15function f(ticker) {
16    let currencyOne   = $('#currencyOne').val();
17    let currencyTwo   = $('#currencyTwo').val();
18    let currencyThree = $('#currencyThree').val();
19    $.ajax({
20        type: "POST",
21        url: '/exchange-ajax',
22        data:{
23            currencyOne: currencyOne, currencyTwo: currencyTwo, currencyThree: currencyThree,
24            currencyOneCode: $('#currencyOneCode').val(), currencyTwoCode: $('#currencyTwoCode').val(), currencyThreeCode: $('#currencyThreeCode').val(),
25            type: $('input[name=currency_converter]:checked').val(), ticker: ticker
26        },
27        success: function (result) {
28            if(result.status === 'success'){
29                let out = result.out;
30
31                if(out.currencyOne){
32                    $('#currencyOne').val(out.currencyOne);
33                }
34
35                if(out.currencyTwo){
36                    $('#currencyTwo').val(out.currencyTwo);
37                }
38
39                if(out.currencyThree){
40                    $('#currencyThree').val(out.currencyThree);
41                }
42            }
43
44            $('#lastTicker').val(ticker);
45        },
46        error: function (xhr, ajaxOptions, thrownError) {
47            console.log(thrownError);
48        }
49    });
50}
51function changeType(type){
52    $('.changeData').hide();
53    $('#'+type).show();
54    $('.currentTab').removeClass('current');
55    $('.currentTab'+type).addClass('current');
56}
57
58$(document).on('keyup', '#goldVal', function(e) {
59    let goldVal = $(this).val();
60    if(goldVal == ''){
61        $('#goldExport').val('');
62    }else{
63        $.ajax({
64            type: "POST",
65            url: '/exchange-ajax-gold',
66            dataType: "json",
67            data:{goldVal:goldVal,gold:$('#gold').val()},
68            success: function (result) {
69                if(result.status == 'success'){
70                    $('#goldExport').val(number_format(result.out,4,'.',',') + ' TRY');
71                }
72            },
73            error: function (xhr, ajaxOptions, thrownError) {
74                console.log(thrownError);
75            }
76        });
77    }
78});
79
80function gold(){
81    let goldVal = $('#goldVal').val();
82    if(goldVal == ''){
83        $('#goldExport').val('');
84    }else{
85        $.ajax({
86            type: "POST",
87            url: '/exchange-ajax-gold',
88            dataType: "json",
89            data:{goldVal:goldVal,gold:$('#gold').val()},
90            success: function (result) {
91                if(result.status == 'success'){
92                    $('#goldExport').val(number_format(result.out,4,'.',',') + ' TRY');
93                }
94            },
95            error: function (xhr, ajaxOptions, thrownError) {
96                console.log(thrownError);
97            }
98        });
99    }
100}
101
102function registerNewsList() {
103    let email = $('#email');
104    let response = $('#registerResponse');
105    if(email.val() === ''){
106        response.empty().append('Lütfen E-posta Adresinizi Giriniz!');
107        response.css('color','#ff4d4c');
108    }else{
109        $.ajax({
110            type: "POST",
111            url: '/register-news-list',
112            dataType: "json",
113            data:{email:email.val()},
114            success: function (result) {
115                if(result.status === 'dublicate'){
116                    response.empty().append('Daha Önce Kayıt Oldunuz!');
117                    response.css('color','#ff4d4c');
118                }else{
119                    response.empty().append('Kayıt Başarılı!');
120                    response.css('color','#32c987');
121                    email.val('')
122                }
123            },
124            error: function (xhr, ajaxOptions, thrownError) {
125                console.log(thrownError);
126            }
127        });
128    }
129}

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.