mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-12-29 15:59:13 +01:00
366 lines
22 KiB
HTML
366 lines
22 KiB
HTML
<!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>
|
|
|
|
<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">
|
|
<link href="/css/telegram.css?236" rel="stylesheet">
|
|
<link href="/css/translations.css?126" rel="stylesheet">
|
|
<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></li><li><a class="tr-search-filter-item" data-value="sw">Swahili</a></li><li><a class="tr-search-filter-item" data-value="sv">Swedish</a></li><li><a class="tr-search-filter-item" data-value="ta">Tamil</a></li><li><a class="tr-search-filter-item" data-value="te">Telugu</a></li><li><a class="tr-search-filter-item" data-value="th">Thai</a></li><li><a class="tr-search-filter-item" data-value="tr">Turkish</a></li><li><a class="tr-search-filter-item" data-value="tk">Turkmen</a></li><li><a class="tr-search-filter-item" data-value="uk">Ukrainian</a></li><li><a class="tr-search-filter-item" data-value="ur">Urdu</a></li><li><a class="tr-search-filter-item" data-value="uz">Uzbek</a></li><li><a class="tr-search-filter-item" data-value="vi">Vietnamese</a></li></ul></span></span><!--
|
|
--><span class="tr-search-filter-wrap tr-search-filter-langpack"><span class="tr-search-filter dropdown-toggle" data-toggle="dropdown">All Apps</span><span class="dropdown-menu"><ul class="dropdown-menu"><li class="selected"><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><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="weba">WebA</a></li><li><a class="tr-search-filter-item" data-value="unigram">Unigram</a></li></ul></span></span>
|
|
</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 class="active">English</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" 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>
|
|
<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>
|
|
<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>
|
|
</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/weba/">
|
|
<span class="nav-label">WebA</span>
|
|
</a>
|
|
</li><li>
|
|
<a class="tr-menu-item" href="/en/unigram/">
|
|
<span class="nav-label">Unigram</span>
|
|
</a>
|
|
</li><li>
|
|
<a class="tr-menu-item" href="/en/emoji">
|
|
<span class="nav-label">Emoji</span>
|
|
</a>
|
|
</li></ul>
|
|
</div></nav>
|
|
<section class="content clearfix">
|
|
<section class="tr-content"><div class="mobile-view-skip">
|
|
<h3 class="tr-header">
|
|
<a href="/" class="tr-back"></a><span class="tr-label-max-width">English</span> <span class="tr-lang-native-name">(<span dir="auto" class="tr-label-max-width">English</span>)</span>
|
|
<div class="tr-header-tabs"><span class="tr-header-tab"><a href="/en/recent/translations">Translations</a></span><span class="tr-header-tab"><a href="/en/recent/suggestions">Suggestions</a></span><span class="tr-header-tab"><a href="/en/recent/comments">Comments</a></span></div>
|
|
</h3>
|
|
<section class="tr-section-rows clearfix">
|
|
<div class="tr-section-row">
|
|
<div class="tr-section-wrap"><a href="/en/android/" class="tr-section">
|
|
<div class="tr-section-circle circle_android"></div>
|
|
<div class="tr-section-caption">Android</div>
|
|
</a></div>
|
|
</div><div class="tr-section-row">
|
|
<div class="tr-section-wrap"><a href="/en/ios/" class="tr-section">
|
|
<div class="tr-section-circle circle_ios"></div>
|
|
<div class="tr-section-caption">iOS</div>
|
|
</a></div>
|
|
</div><div class="tr-section-row">
|
|
<div class="tr-section-wrap"><a href="/en/tdesktop/" class="tr-section">
|
|
<div class="tr-section-circle circle_tdesktop"></div>
|
|
<div class="tr-section-caption">TDesktop</div>
|
|
</a></div>
|
|
</div><div class="tr-section-row">
|
|
<div class="tr-section-wrap"><a href="/en/macos/" class="tr-section">
|
|
<div class="tr-section-circle circle_macos"></div>
|
|
<div class="tr-section-caption">macOS</div>
|
|
</a></div>
|
|
</div><div class="tr-section-row">
|
|
<div class="tr-section-wrap"><a href="/en/android_x/" class="tr-section">
|
|
<div class="tr-section-circle circle_android_x"></div>
|
|
<div class="tr-section-caption">Android X</div>
|
|
</a></div>
|
|
</div><div class="tr-section-row">
|
|
<div class="tr-section-wrap"><a href="/en/webk/" class="tr-section">
|
|
<div class="tr-section-circle circle_webk"></div>
|
|
<div class="tr-section-caption">WebK</div>
|
|
</a></div>
|
|
</div><div class="tr-section-row">
|
|
<div class="tr-section-wrap"><a href="/en/weba/" class="tr-section">
|
|
<div class="tr-section-circle circle_weba"></div>
|
|
<div class="tr-section-caption">WebA</div>
|
|
</a></div>
|
|
</div><div class="tr-section-row">
|
|
<div class="tr-section-wrap"><a href="/en/unigram/" class="tr-section">
|
|
<div class="tr-section-circle circle_unigram"></div>
|
|
<div class="tr-section-caption">Unigram</div>
|
|
</a></div>
|
|
</div>
|
|
</section>
|
|
<section class="tr-section-block">
|
|
<h4 class="tr-subheader">Discussions<span class="tr-badge">NEW</span></h4>
|
|
<p>
|
|
<b>Feel free</b> to join the discussion of this language pack.
|
|
<a href="https://t.me/translation_en" target="_blank" class="arrow-link">View Discussion</a>
|
|
</p>
|
|
</section>
|
|
<section class="tr-section-block">
|
|
<h4 class="tr-subheader">Sharing Link<span class="tr-badge">NEW</span></h4>
|
|
<p>
|
|
Anyone can switch their Telegram interface to <b>English</b> by following this link:
|
|
</p>
|
|
<div class="tr-share-link-wrap">
|
|
<a class="tr-share-link-copy">Copy Link</a>
|
|
<span class="tr-share-link-copied ohide">Copied!</span>
|
|
<input type="text" class="form-control tr-form-control tr-share-link" value="https://t.me/setlanguage/en" readonly>
|
|
</div>
|
|
</section>
|
|
<section class="tr-section-block">
|
|
<h4 class="tr-subheader">Actions</h4>
|
|
<div class="tr-actions">
|
|
<div class="tr-action"><a class="tr-action-item action-share" href="https://t.me/setlanguage/en" target="_blank"><span class="tr-action-label">Use Telegram in English</span></a></div>
|
|
|
|
</div>
|
|
</section>
|
|
</div>
|
|
<div class="tr-lang-intro mobile-view-only">
|
|
<img class="tr-lang-intro-banner" src="/img/translations/lang_banner.png?1" />
|
|
<div class="tr-lang-intro-name">English</div>
|
|
<div class="tr-lang-intro-native-name">English</div>
|
|
<div class="tr-lang-intro-text">Please open this link on a desktop to help translate Telegram into <b>English</b>:</div>
|
|
<div class="tr-lang-intro-link"><a href="/en/?start=1">https://translations.telegram.org/en</a></div>
|
|
<div class="tr-lang-intro-button-wrap">
|
|
<a href="https://t.me/translation_en" target="_blank" class="btn btn-primary tr-lang-intro-button">View Discussion</a>
|
|
</div>
|
|
<div class="tr-lang-intro-under-button-text"><b>Feel free</b> to join the discussion of this language pack.</div>
|
|
</div></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'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>
|
|
<script src="//telegram.org/js/jquery.min.js?1"></script>
|
|
<script src="//telegram.org/js/bootstrap.min.js"></script>
|
|
<script src="//telegram.org/js/main-aj.js?67"></script>
|
|
<script src="/js/translations.js?113"></script>
|
|
<script src="/js/jquery-ui.min.js?1"></script>
|
|
<script src="/js/jquery-ex.js?14"></script>
|
|
<script src="/js/tesseract.js?1"></script>
|
|
<script src="/js/main.js?47"></script>
|
|
<script src="/js/tchart.min.js?18"></script>
|
|
<script src="/js/billboard.min.js?1"></script>
|
|
<script src="/js/stats.js?18"></script>
|
|
|
|
<script>ajInit({"version":1055,"apiUrl":"\/api?hash=telegram-crawler","unauth":true,"state":{"searchWhere":"","searchLang":"en","searchLangpack":"","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","weba":"WebA","unigram":"Unigram"},"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"}});</script>
|
|
<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"});
|
|
Share.init();
|
|
Share.initStartLink();
|
|
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>
|
|
|