telegram-crawler/data/web_tr/translations.telegram.org/en/tdesktop.html

407 lines
24 KiB
HTML
Raw Normal View History

2022-06-18 17:39:27 +02:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Translations</title>
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png">
<link rel="alternate icon" href="/img/favicon.ico" type="image/x-icon" />
<script>document.cookie="stel_dt="+encodeURIComponent((new Date).getTimezoneOffset())+";path=/;max-age=31536000;samesite=None;secure"</script>
2022-10-21 13:54:39 +02:00
<link href="//telegram.org/css/font-roboto.css?1" rel="stylesheet" type="text/css">
<link href="//telegram.org/css/bootstrap.min.css?3" rel="stylesheet">
<link href="//telegram.org/css/bootstrap-extra.css?2" rel="stylesheet">
2023-03-11 18:58:29 +01:00
<link href="/css/telegram.css?235" rel="stylesheet">
2023-02-09 15:15:23 +01:00
<link href="/css/translations.css?125" rel="stylesheet">
2022-06-18 17:39:27 +02:00
<link href="/css/jquery-ui.min.css?1" rel="stylesheet">
<link href="/css/health.css?136" rel="stylesheet">
<link href="/css/contest-zoo.css?7" rel="stylesheet">
<link href="/css/tchart.min.css?10" rel="stylesheet">
<link href="/css/billboard.css?17" rel="stylesheet">
</head>
<body class="emoji_image no-transition">
<div id="aj_progress" class="progress-bar"></div>
<div id="aj_content"><div class="tr-container">
<header class=" has-search">
<div class="container">
<section class="tr-search">
<div class="tr-search-field-wrap">
<div class="tr-search-filters">
<span class="tr-search-filters-label">Search in:</span><!--
--><span class="tr-search-filter-wrap tr-search-filter-where"><span class="tr-search-filter dropdown-toggle" data-toggle="dropdown">All</span><span class="dropdown-menu"><ul class="dropdown-menu"><li class="selected"><a class="tr-search-filter-item" data-value="">All</a></li><li><a class="tr-search-filter-item" data-value="key">Key</a></li><li><a class="tr-search-filter-item" data-value="text">Text</a></li></ul></span></span><!--
--><span class="tr-search-filter-wrap tr-search-filter-lang"><span class="tr-search-filter dropdown-toggle" data-toggle="dropdown">English</span><span class="dropdown-menu"><ul class="dropdown-menu"><li class="selected"><a class="tr-search-filter-item" data-value="en">English</a></li><li><a class="tr-search-filter-item" data-value="af">Afrikaans</a></li><li><a class="tr-search-filter-item" data-value="sq">Albanian</a></li><li><a class="tr-search-filter-item" data-value="am">Amharic</a></li><li><a class="tr-search-filter-item" data-value="ar">Arabic</a></li><li><a class="tr-search-filter-item" data-value="az">Azerbaijani</a></li><li><a class="tr-search-filter-item" data-value="eu">Basque</a></li><li><a class="tr-search-filter-item" data-value="be">Belarusian</a></li><li><a class="tr-search-filter-item" data-value="bn">Bengali</a></li><li><a class="tr-search-filter-item" data-value="bg">Bulgarian</a></li><li><a class="tr-search-filter-item" data-value="my">Burmese</a></li><li><a class="tr-search-filter-item" data-value="ca">Catalan</a></li><li><a class="tr-search-filter-item" data-value="zh-hans">Chinese (Simplified)</a></li><li><a class="tr-search-filter-item" data-value="zh-hant">Chinese (Traditional)</a></li><li><a class="tr-search-filter-item" data-value="hr">Croatian</a></li><li><a class="tr-search-filter-item" data-value="cs">Czech</a></li><li><a class="tr-search-filter-item" data-value="da">Danish</a></li><li><a class="tr-search-filter-item" data-value="nl">Dutch</a></li><li><a class="tr-search-filter-item" data-value="eo">Esperanto</a></li><li><a class="tr-search-filter-item" data-value="et">Estonian</a></li><li><a class="tr-search-filter-item" data-value="fi">Finnish</a></li><li><a class="tr-search-filter-item" data-value="fr">French</a></li><li><a class="tr-search-filter-item" data-value="gl">Galician</a></li><li><a class="tr-search-filter-item" data-value="de">German</a></li><li><a class="tr-search-filter-item" data-value="el">Greek</a></li><li><a class="tr-search-filter-item" data-value="gu">Gujarati</a></li><li><a class="tr-search-filter-item" data-value="he">Hebrew</a></li><li><a class="tr-search-filter-item" data-value="hi">Hindi</a></li><li><a class="tr-search-filter-item" data-value="hu">Hungarian</a></li><li><a class="tr-search-filter-item" data-value="id">Indonesian</a></li><li><a class="tr-search-filter-item" data-value="ga">Irish</a></li><li><a class="tr-search-filter-item" data-value="it">Italian</a></li><li><a class="tr-search-filter-item" data-value="ja">Japanese</a></li><li><a class="tr-search-filter-item" data-value="kn">Kannada</a></li><li><a class="tr-search-filter-item" data-value="kk">Kazakh</a></li><li><a class="tr-search-filter-item" data-value="km">Khmer</a></li><li><a class="tr-search-filter-item" data-value="ko">Korean</a></li><li><a class="tr-search-filter-item" data-value="lv">Latvian</a></li><li><a class="tr-search-filter-item" data-value="lt">Lithuanian</a></li><li><a class="tr-search-filter-item" data-value="ms">Malay</a></li><li><a class="tr-search-filter-item" data-value="ml">Malayalam</a></li><li><a class="tr-search-filter-item" data-value="mt">Maltese</a></li><li><a class="tr-search-filter-item" data-value="mr">Marathi</a></li><li><a class="tr-search-filter-item" data-value="nb">Norwegian (Bokmål)</a></li><li><a class="tr-search-filter-item" data-value="or">Odia</a></li><li><a class="tr-search-filter-item" data-value="fa">Persian</a></li><li><a class="tr-search-filter-item" data-value="pl">Polish</a></li><li><a class="tr-search-filter-item" data-value="pt-br">Portuguese (Brazil)</a></li><li><a class="tr-search-filter-item" data-value="pt-pt">Portuguese (Portugal)</a></li><li><a class="tr-search-filter-item" data-value="ro">Romanian</a></li><li><a class="tr-search-filter-item" data-value="ru">Russian</a></li><li><a class="tr-search-filter-item" data-value="sr">Serbian</a></li><li><a class="tr-search-filter-item" data-value="sk">Slovak</a></li><li><a class="tr-search-filter-item" data-value="sl">Slovene</a></li><li><a class="tr-search-filter-item" data-value="es">Spanish</a></
2022-12-13 15:48:35 +01:00
--><span class="tr-search-filter-wrap tr-search-filter-langpack"><span class="tr-search-filter dropdown-toggle" data-toggle="dropdown">TDesktop</span><span class="dropdown-menu"><ul class="dropdown-menu"><li><a class="tr-search-filter-item" data-value="">All Apps</a></li><li><a class="tr-search-filter-item" data-value="android">Android</a></li><li><a class="tr-search-filter-item" data-value="ios">iOS</a></li><li class="selected"><a class="tr-search-filter-item" data-value="tdesktop">TDesktop</a></li><li><a class="tr-search-filter-item" data-value="macos">macOS</a></li><li><a class="tr-search-filter-item" data-value="android_x">Android X</a></li><li><a class="tr-search-filter-item" data-value="webk">WebK</a></li><li><a class="tr-search-filter-item" data-value="webz">WebZ</a></li></ul></span></span>
2022-06-18 17:39:27 +02:00
</div>
<div class="tr-search-binding binding"></div>
<div class="tr-search-enter arrow-right"></div>
<div class="tr-search-reset close"></div>
<form class="tr-search-form">
<input class="form-control tr-search-field" placeholder="Search translations and keys" autocomplete="off" value="" />
</form>
</div>
<div class="tr-search-results collapsed"></div>
</section>
<div class="header-wrap">
<div id="header-panel" class="header-panel">
<div class="header-auth">
<div class="header-auth-item"><a class="header-search-btn"></a></div><div class="header-auth-item"><a class="header-auth-link login-link" href="/auth">Login</a></div>
</div>
<div class="header-breadcrumb header-breadcrumb-simple">
<ol id="breadcrumb" class="header-nav breadcrumb"><li><a href="/">Translations</a></li><li><a href="/en/">English</a></li><li class="active">TDesktop</li></ol>
</div>
</div>
</div>
</div>
</header>
<main class="container">
<nav class="tr-menu"><div class="tr-menu-section tr-menu-has-selected" data-menu-section-id="0">
<div class="tr-menu-header">
<span class="tr-menu-header-collapse"></span>
<div class="tr-menu-header-label">Languages</div>
<div class="tr-menu-selected">
<div class="tr-menu-item tr-menu-item-default">
<span class="nav-label">English</span>
</div>
</div>
</div>
<ul class="tr-menu-items" id="tr-menu-language-items"><li class="active">
<a class="tr-menu-item" href="/en/">
<span class="nav-label">English</span>
</a>
</li><li class="languages-link">
<a class="tr-menu-item">
<span class="nav-label">Other languages...</span>
</a>
</li></ul>
</div><div class="tr-menu-section tr-menu-has-selected" data-menu-section-id="1">
<div class="tr-menu-header">
<span class="tr-menu-header-collapse"></span>
<div class="tr-menu-header-label">Apps</div>
<div class="tr-menu-selected">
<div class="tr-menu-item">
<span class="nav-label">TDesktop</span>
</div>
</div>
</div>
<ul class="tr-menu-items"><li>
<a class="tr-menu-item" href="/en/android/">
<span class="nav-label">Android</span>
</a>
</li><li>
<a class="tr-menu-item" href="/en/ios/">
<span class="nav-label">iOS</span>
</a>
</li><li class="active">
<a class="tr-menu-item" href="/en/tdesktop/">
<span class="nav-label">TDesktop</span>
</a>
</li><li>
<a class="tr-menu-item" href="/en/macos/">
<span class="nav-label">macOS</span>
</a>
</li><li>
<a class="tr-menu-item" href="/en/android_x/">
<span class="nav-label">Android X</span>
</a>
2022-12-13 15:48:35 +01:00
</li><li>
<a class="tr-menu-item" href="/en/webk/">
<span class="nav-label">WebK</span>
</a>
</li><li>
<a class="tr-menu-item" href="/en/webz/">
<span class="nav-label">WebZ</span>
</a>
2022-06-18 17:39:27 +02:00
</li><li>
<a class="tr-menu-item" href="/en/emoji">
<span class="nav-label">Emoji</span>
</a>
</li></ul>
</div><div class="tr-menu-section tr-menu-has-selected" data-menu-section-id="2">
<div class="tr-menu-header">
<span class="tr-menu-header-collapse"></span>
<div class="tr-menu-header-label">Sections</div>
<div class="tr-menu-selected">
<div class="tr-menu-item">
<span class="nav-label">All Sections</span>
</div>
</div>
</div>
<ul class="tr-menu-items"><li class="active">
<a class="tr-menu-item" href="/en/tdesktop/">
<span class="nav-label">All Sections</span>
</a>
2022-07-26 16:26:15 +02:00
</li><li>
<a class="tr-menu-item" href="/en/tdesktop/unused/">
<span class="nav-label">Unused</span>
</a>
2022-06-18 17:39:27 +02:00
</li><li>
<a class="tr-menu-item" href="/en/tdesktop/login/">
<span class="nav-label">Log In</span>
</a>
</li><li>
<a class="tr-menu-item" href="/en/tdesktop/chat_list/">
<span class="nav-label">Chat List</span>
</a>
</li><li>
<a class="tr-menu-item" href="/en/tdesktop/private_chats/">
<span class="nav-label">Private chats</span>
</a>
</li><li>
<a class="tr-menu-item" href="/en/tdesktop/groups_and_channels/">
<span class="nav-label">Groups And Channels</span>
</a>
</li><li>
<a class="tr-menu-item" href="/en/tdesktop/profile/">
<span class="nav-label">Profile</span>
</a>
</li><li>
<a class="tr-menu-item" href="/en/tdesktop/settings/">
<span class="nav-label">Settings</span>
</a>
</li><li>
<a class="tr-menu-item" href="/en/tdesktop/camera_and_media/">
<span class="nav-label">Camera And Media</span>
</a>
</li><li>
<a class="tr-menu-item" href="/en/tdesktop/bots_and_payments/">
<span class="nav-label">Bots And Payments</span>
</a>
</li><li>
<a class="tr-menu-item" href="/en/tdesktop/passport/">
<span class="nav-label">Passport</span>
</a>
</li><li>
<a class="tr-menu-item" href="/en/tdesktop/general/">
<span class="nav-label">General</span>
</a>
</li><li>
<a class="tr-menu-item" href="/en/tdesktop/unsorted/">
<span class="nav-label">Unsorted</span>
</a>
</li></ul>
</div></nav>
<section class="content clearfix">
<section class="tr-content"><h3 class="tr-header">
2023-03-16 13:45:33 +01:00
<a href="/en/" class="tr-back"></a>TDesktop<span class="tr-header-counter">3754</span>
2022-06-18 17:39:27 +02:00
<div class="tr-header-tabs"><span class="tr-header-tab"><a href="/en/tdesktop/recent/translations">Translations</a></span><span class="tr-header-tab"><a href="/en/tdesktop/recent/suggestions">Suggestions</a></span><span class="tr-header-tab"><a href="/en/tdesktop/recent/comments">Comments</a></span></div>
</h3>
<section class="tr-sections clearfix">
<div class="tr-section-col col-lg-4 col-xs-6">
<div class="tr-section-wrap"><a href="/en/tdesktop/login/" class="tr-section">
<div class="tr-section-cover cover2"></div>
2022-12-29 19:45:07 +01:00
<div class="tr-section-caption">Log In (91)</div>
2022-06-18 17:39:27 +02:00
</a></div>
</div><div class="tr-section-col col-lg-4 col-xs-6">
<div class="tr-section-wrap"><a href="/en/tdesktop/chat_list/" class="tr-section">
<div class="tr-section-cover cover3"></div>
2023-01-01 22:50:14 +01:00
<div class="tr-section-caption">Chat List (93)</div>
2022-06-18 17:39:27 +02:00
</a></div>
</div><div class="tr-section-col col-lg-4 col-xs-6">
<div class="tr-section-wrap"><a href="/en/tdesktop/private_chats/" class="tr-section">
<div class="tr-section-cover cover4"></div>
2023-02-04 00:30:49 +01:00
<div class="tr-section-caption">Private chats (489)</div>
2022-06-18 17:39:27 +02:00
</a></div>
</div><div class="tr-section-col col-lg-4 col-xs-6">
<div class="tr-section-wrap"><a href="/en/tdesktop/groups_and_channels/" class="tr-section">
<div class="tr-section-cover cover8"></div>
2023-02-16 11:35:07 +01:00
<div class="tr-section-caption">Groups And Channels (787)</div>
2022-06-18 17:39:27 +02:00
</a></div>
</div><div class="tr-section-col col-lg-4 col-xs-6">
<div class="tr-section-wrap"><a href="/en/tdesktop/profile/" class="tr-section">
<div class="tr-section-cover cover5"></div>
2023-02-04 01:36:02 +01:00
<div class="tr-section-caption">Profile (52)</div>
2022-06-18 17:39:27 +02:00
</a></div>
</div><div class="tr-section-col col-lg-4 col-xs-6">
<div class="tr-section-wrap"><a href="/en/tdesktop/settings/" class="tr-section">
<div class="tr-section-cover cover7"></div>
2023-03-11 22:38:29 +01:00
<div class="tr-section-caption">Settings (905)</div>
2022-06-18 17:39:27 +02:00
</a></div>
</div><div class="tr-section-col col-lg-4 col-xs-6">
<div class="tr-section-wrap"><a href="/en/tdesktop/camera_and_media/" class="tr-section">
<div class="tr-section-cover cover6"></div>
2022-07-15 14:04:14 +02:00
<div class="tr-section-caption">Camera And Media (89)</div>
2022-06-18 17:39:27 +02:00
</a></div>
</div><div class="tr-section-col col-lg-4 col-xs-6">
<div class="tr-section-wrap"><a href="/en/tdesktop/bots_and_payments/" class="tr-section">
<div class="tr-section-cover cover9"></div>
2023-02-03 23:23:50 +01:00
<div class="tr-section-caption">Bots And Payments (128)</div>
2022-06-18 17:39:27 +02:00
</a></div>
</div><div class="tr-section-col col-lg-4 col-xs-6">
<div class="tr-section-wrap"><a href="/en/tdesktop/passport/" class="tr-section">
<div class="tr-section-cover cover10"></div>
<div class="tr-section-caption">Passport (160)</div>
</a></div>
</div><div class="tr-section-col col-lg-4 col-xs-6">
<div class="tr-section-wrap"><a href="/en/tdesktop/general/" class="tr-section">
<div class="tr-section-cover cover1"></div>
2022-07-31 19:01:23 +02:00
<div class="tr-section-caption">General (577)</div>
2022-06-18 17:39:27 +02:00
</a></div>
</div><div class="tr-section-col col-lg-4 col-xs-6">
<div class="tr-section-wrap"><a href="/en/tdesktop/unsorted/" class="tr-section">
<div class="tr-section-cover cover0"></div>
2023-03-16 13:45:33 +01:00
<div class="tr-section-caption">Unsorted (670)</div>
2022-06-18 17:39:27 +02:00
</a></div>
</div>
</section></section>
</section>
</main>
</div><div class="popup-container login-popup-container hide" id="login-popup-container">
<div class="popup">
<div class="popup-body">
<section>
<h2>Log In</h2>
<p>Log in here to translate Telegram apps. Please enter your <b>phone number</b> in the <a target="_blank" rel="noopener" href="https://telegram.org/faq#login-and-sms">international format</a> and we will send a confirmation message to your account via Telegram.</p>
<form id="send-form" class="login-form">
<div class="form-group">
<input type="tel" class="form-control tr-form-control input-lg" id="phone-number" placeholder="+12223334455" autocomplete="off"/>
</div>
<div class="popup-buttons">
<a class="btn btn-link btn-lg login-cancel-btn">Cancel</a><button type="submit" class="btn btn-link btn-lg">Next</button>
</div>
</form>
<div id="login-form" class="hide">
<div class="form-group">
<span class="form-control tr-form-control input input-lg input-disabled"><strong id="phone-number-field"></strong> (<a class="login-back" href="/auth">Incorrect?</a>)</span>
<p class="help-block dots-animated">We&#39;ve just sent you a message.<br/>Please confirm access via Telegram</p>
</div>
<div class="popup-buttons">
<a class="btn btn-link btn-lg login-cancel-btn">Cancel</a><a class="btn btn-link btn-lg login-back">Back</a>
</div>
</div>
</section>
</div>
</div>
</div><div class="popup-container languages-popup-container hide" id="languages-popup-container">
<div class="popup">
<div class="popup-body popup-has-footer">
<h4>Languages</h4>
<form class="tr-popup-search-form tr-languages-search-form">
<input class="form-control tr-popup-search-field tr-languages-search-field" placeholder="Search languages" autocomplete="off" value="">
</form>
<div class="tr-popup-search-results-wrap tr-languages-results-wrap">
<div class="tr-popup-search-results tr-languages-results"></div>
</div>
<div class="tr-languages-add"><a href="/lang/new" data-layer class="need-auth">Add a new language</a></div>
</div>
</div>
</div></div>
2022-10-21 13:54:39 +02:00
<script src="//telegram.org/js/jquery.min.js?1"></script>
<script src="//telegram.org/js/bootstrap.min.js"></script>
2022-12-03 12:18:55 +01:00
<script src="//telegram.org/js/main-aj.js?67"></script>
2022-07-26 16:26:15 +02:00
<script src="/js/translations.js?113"></script>
2022-06-18 17:39:27 +02:00
<script src="/js/jquery-ui.min.js?1"></script>
2022-10-30 10:14:05 +01:00
<script src="/js/jquery-ex.js?14"></script>
2022-06-18 17:39:27 +02:00
<script src="/js/tesseract.js?1"></script>
2022-12-11 00:10:13 +01:00
<script src="/js/main.js?47"></script>
2022-06-18 17:39:27 +02:00
<script src="/js/tchart.min.js?18"></script>
<script src="/js/billboard.min.js?1"></script>
<script src="/js/stats.js?18"></script>
2023-03-11 18:58:29 +01:00
<script>ajInit({"version":1052,"apiUrl":"\/api?hash=telegram-crawler","unauth":true,"state":{"searchWhere":"","searchLang":"en","searchLangpack":"tdesktop","searchQuery":"","whereNames":{"":"All","key":"Key","text":"Text"},"langNames":{"en":"English","af":"Afrikaans","sq":"Albanian","am":"Amharic","ar":"Arabic","az":"Azerbaijani","eu":"Basque","be":"Belarusian","bn":"Bengali","bg":"Bulgarian","my":"Burmese","ca":"Catalan","zh-hans":"Chinese (Simplified)","zh-hant":"Chinese (Traditional)","hr":"Croatian","cs":"Czech","da":"Danish","nl":"Dutch","eo":"Esperanto","et":"Estonian","fi":"Finnish","fr":"French","gl":"Galician","de":"German","el":"Greek","gu":"Gujarati","he":"Hebrew","hi":"Hindi","hu":"Hungarian","id":"Indonesian","ga":"Irish","it":"Italian","ja":"Japanese","kn":"Kannada","kk":"Kazakh","km":"Khmer","ko":"Korean","lv":"Latvian","lt":"Lithuanian","ms":"Malay","ml":"Malayalam","mt":"Maltese","mr":"Marathi","nb":"Norwegian (Bokmål)","or":"Odia","fa":"Persian","pl":"Polish","pt-br":"Portuguese (Brazil)","pt-pt":"Portuguese (Portugal)","ro":"Romanian","ru":"Russian","sr":"Serbian","sk":"Slovak","sl":"Slovene","es":"Spanish","sw":"Swahili","sv":"Swedish","ta":"Tamil","te":"Telugu","th":"Thai","tr":"Turkish","tk":"Turkmen","uk":"Ukrainian","ur":"Urdu","uz":"Uzbek","vi":"Vietnamese"},"langpackList":[],"langpackNames":{"":"All Apps","android":"Android","ios":"iOS","tdesktop":"TDesktop","macos":"macOS","android_x":"Android X","webk":"WebK","webz":"WebZ"},"langList":["en","af","sq","am","ar","az","eu","be","bn","bg","my","ca","zh-hans","zh-hant","hr","cs","da","nl","eo","et","fi","fr","gl","de","el","gu","he","hi","hu","id","ga","it","ja","kn","kk","km","ko","lv","lt","ms","ml","mt","mr","nb","or","fa","pl","pt-br","pt-pt","ro","ru","sr","sk","sl","es","sw","sv","ta","te","th","tr","tk","uk","ur","uz","vi"],"curLang":"en","curLangpack":"tdesktop"}});</script>
2022-06-18 17:39:27 +02:00
<script id="aj_script">l.add({"WEB_PLURALIZED_LABEL_0":"Zero","WEB_PLURALIZED_LABEL_1":"One","WEB_PLURALIZED_LABEL_2":"Two","WEB_PLURALIZED_LABEL_3":"Few","WEB_PLURALIZED_LABEL_4":"Many","WEB_PLURALIZED_LABEL_5":"Other","WEB_NO_TRANSLATIONS_FOUND":"No translations found","WEB_TRANSLATIONS_LOADING":"Loading","WEB_ACTIVATE_LANGPACK_CONFIRM_TEXT":"Do you want to begin translating <b>{lang_pack}<\/b> to <b>{lang}<\/b>?","WEB_ACTIVATE_LANGPACK_CONFIRM_BUTTON":"Start Translating","WEB_LOADING":"Loading","WEB_NO_LANGUAGES_FOUND":"No languages found"});
Search.init();
Header.init();
Nav.init();
Aj.onLoad(function(state) {
function requestConfirmation(event) {
event && event.preventDefault();
var phone = $('#phone-number').val();
$.ajax({
type: 'POST',
url: '/auth/request',
data: {
phone: phone
},
success: function(result) {
$('#phone-number-field').text(phone);
$('#send-form').addClass('hide');
$('#login-form').removeClass('hide');
checkAuth(result.temp_session);
},
error: function(xhr) {
showAlert(xhr.responseText || 'Server error');
},
dataType: 'json'
});
return false;
}
function cancelConfirmation(event) {
event && event.preventDefault();
$('#phone-number-field').text('');
$('#send-form').removeClass('hide');
$('#login-form').addClass('hide');
$('#phone-number').focus();
clearTimeout(window.authTimeout);
return false;
}
function checkAuth(temp_session) {
clearTimeout(window.authTimeout);
window.authTimeout = setTimeout(function doCheckAuth() {
$.ajax({
type: 'POST',
url: '/auth/login',
data: {
temp_session: temp_session
},
success: function(result) {
if (result) {
location.reload();
} else {
checkAuth(temp_session);
}
},
error: function (xhr) {
showAlert(xhr.responseText || 'Server error');
},
dataType: 'json'
});
}, 700);
}
$('#login-popup-container').on('popup:open', function() {
$('#phone-number').focus();
});
$('#login-popup-container').on('popup:close', function() {
cancelConfirmation();
if (location.pathname == '/auth') {
window.history && history.replaceState(null, null, '/');
}
});
$('#login-popup-container #send-form').on('submit', requestConfirmation);
$('#login-popup-container .login-cancel-btn').on('click', function(e) {
e.preventDefault();
closePopup('#login-popup-container');
});
$('#login-popup-container .login-back').on('click', cancelConfirmation);
$('.login-link').on('click', function(e) {
e.stopImmediatePropagation();
e.preventDefault();
openPopup('#login-popup-container');
});
});
Aj.onUnload(function(state) {
$('#login-popup-container').off('popup:open');
$('#login-popup-container').off('popup:close');
$('#login-popup-container #send-form').off('submit');
$('#login-popup-container .login-cancel-btn').off('click');
$('#login-popup-container .login-back').off('click');
$('.login-link').off('click');
});
</script>
<script>Aj.pageLoaded();</script>
</body>
</html>