Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (parent && parent != window && (browser.msie || browser.opera || browser.mozilla || browser.chrome || browser.safari || browser.iphone)) {
- document.getElementsByTagName('body')[0].innerHTML = '';
- } else {
- window.domReady && domReady();
- updateMoney(0);
- initPageLayoutUI();
- if (browser.iphone || browser.ipad || browser.ipod) {
- setStyle(bodyNode, {webkitTextSizeAdjust: 'none'});
- }var qf = ge('quick_login_form'), ql = ge('quick_login'), qe = ge('quick_email'), qp = ge('quick_pass');
- var qlb = ge('quick_login_button'), prgBtn = qlb;
- var qinit = function() {
- setTimeout(function() {
- ql.insertBefore(ce('div', {innerHTML: '<iframe class="upload_frame" id="quick_login_frame" name="quick_login_frame"></iframe>'}), qf);
- qf.target = 'quick_login_frame';
- qe.onclick = loginByCredential;
- qp.onclick = loginByCredential;
- }, 1);
- }
- if (window.top && window.top != window) {
- window.onload = qinit;
- } else {
- setTimeout(qinit, 0);
- }
- qf.onsubmit = function() {
- if (!ge('quick_login_frame')) return false;
- if (!val('quick_login_ul') && !trim(qe.value)) {
- notaBene(qe);
- return false;
- } else if (!trim(qp.value)) {
- notaBene(qp);
- return false;
- }
- lockButton(window.__qfBtn = prgBtn);
- prgBtn = qlb;
- clearTimeout(__qlTimer);
- __qlTimer = setTimeout(loginSubmitError, 30000);
- domFC(domPS(qf)).onload = function() {
- clearTimeout(__qlTimer);
- __qlTimer = setTimeout(loginSubmitError, 2500);
- }
- return true;
- }
- window.loginSubmitError = function() {
- showFastBox('Warning', 'Unable to complete encrypted authorization. This can happen if your date and time settings are not configured correctly on your system. Please check your date & time settings and restart the browser.');
- }
- window.focusLoginInput = function() {
- scrollToTop(0);
- notaBene('quick_email');
- }
- window.changeQuickRegButton = function(noShow) {
- if (noShow) {
- hide('top_reg_link', 'quick_reg_button');
- } else {
- show('top_reg_link', 'quick_reg_button');
- }
- toggle('top_switch_lang', noShow && window.langConfig && window.langConfig.id != 3);
- }
- window.submitQuickLoginForm = function(email, pass, opts) {
- setQuickLoginData(email, pass, opts);
- if (opts && opts.prg) prgBtn = opts.prg;
- if (qf.onsubmit()) qf.submit();
- }
- window.setQuickLoginData = function(email, pass, opts) {
- if (email !== undefined) ge('quick_email').value = email;
- if (pass !== undefined) ge('quick_pass').value = pass;
- var params = opts && opts.params || {};
- each (params, function(i, v) {
- var el = ge('quick_' + i) || ge('quick_login_' + i);;
- if (el) {
- val(el, params[i]);
- } else {
- qf.appendChild(ce('input', {type: 'hidden', name: i, id: 'quick_login_' + i, value: v}));
- }
- });
- }
- window.loginByCredential = function() {
- if (!browserFeatures.cmaEnabled || !window.submitQuickLoginForm || window._loginByCredOffered) return false;
- _loginByCredOffered = true;
- navigator.credentials.get({
- password: true,
- mediation: 'required'
- }).then(function(cred) {
- if (cred) {
- submitQuickLoginForm(cred.id, cred.password);
- return true;
- } else {
- return false;
- }
- });
- }
- if (qlb) {
- qlb.onclick = function() { if (qf.onsubmit()) qf.submit(); };
- }
- if (browser.opera_mobile) show('quick_expire');
- if (1) {
- hide('support_link_td', 'top_support_link');
- }
- var ts_input = ge('ts_input');
- if (ts_input) {
- placeholderSetup(ts_input, {back: false, reload: true, phColor: '#8fadc8'});
- }
- TopSearch.init();;window.shortCurrency && shortCurrency();
- window.zNav && setTimeout(zNav.pbind({}, {queue:1}), 0);
- window.handlePageParams && handlePageParams({"id":0,"loc":"?id=53896572&oid=-179934823","wrap_page":1,"width":960,"width_dec":165,"width_dec_footer":165,"top_home_link_class":"top_home_link fl_l","body_class":"firefox ","counters":"","pvbig":0,"pvdark":1});addEvent(document, 'click', onDocumentClick);
- addLangKeys({"global_apps":"Apps","global_friends":"Friends","global_communities":"Communities","head_search_results":"Search results","global_chats":"Chats","global_show_all_results":"Show all results","global_news_search_results":"Search results by news","global_emoji_cat_recent":"Frequently Used","global_emoji_cat_1":"Faces","global_emoji_cat_2":"Animals & Nature","global_emoji_cat_3":"Hands & People","global_emoji_cat_4":"Food & Drink","global_emoji_cat_5":"Activity","global_emoji_cat_6":"Travel & Transport","global_emoji_cat_7":"Objects","global_emoji_cat_8":"Symbols","global_emoji_cat_9":"Flags","stories_remove_warning":"Are you sure you want to delete this story?<br>This cannot be undone.","stories_narrative_remove_warning":"Are you sure you want to delete this narrative?<br>This cannot be undone.","stories_remove_confirm":"Delete","stories_answer_placeholder":"Your message…","stories_answer_sent":"Message sent","stories_blacklist_title":"Hidden from Stories","stories_settings":"Settings","stories_add_blacklist_title":"Hide from stories","stories_add_blacklist_message":"This user's stories won't appear in your feed, but you'll stay friends.","stories_add_blacklist_button":"Hide from stories","stories_add_blacklist_message_group":"This community's stories won't appear in your feed, but you'll still be a follower.","stories_error_cant_load":"Unable to load the story.","stories_try_again":"Try again","stories_error_expired":"The story could be viewed<br>within 24 hours after publication","stories_error_deleted":"Story deleted","stories_error_private":"Story hidden by author","stories_mask_tooltip":"Try this mask","stories_mask_sent":"Mask sent to phone","stories_followed":"Started following!","stories_unfollowed":"You've unfollowed","stories_is_ad":"Advertisment","stories_private_story":"Private<br>story","stories_deleted_story":"Story<br>deleted","stories_bad_browser":"Stories are not supported by your browser","stories_delete_all_replies_confirm":"Are you sure you want to delete all of {name}'s replies from last 24 hours?<br>This cannot be undone.","stories_hide_reply_button":"Hide reply","stories_reply_hidden":"Story reply hidden.","stories_restore":"Restore","stories_hide_reply_continue":"Return to replies","stories_hide_all_replies":["","Hide all of his replies from the last 24 hours","Hide all of her replies from the last 24 hours"],"stories_reply_add_to_blacklist":"Add to blacklist","stories_hide_reply_warning":"Are you sure you want to hide this reply?<br>This cannot be undone.","stories_replies_more_button":["","Show %s more commenter","Show %s more commenters"],"stories_all_replies_hidden":"All replies hidden","stories_ban_confirm":"Are you sure you want to add {name} to the blacklist?<br>This cannot be undone.","stories_banned":"The user has been blacklisted","stories_share":"Share","stories_follow":"Follow","stories_unfollow":"Unfollow","stories_report":"Report","stories_report_sent":"Report sent","stories_narrative_show":"View narrative","stories_narrative_bookmark_added":"Narrative saved to {link}Bookmarks{\/link}","stories_narrative_bookmark_deleted":"Narrative removed from Bookmarks","stories_narrative_edit_button":"Edit narrative","stories_narrative_add_bookmark_button":"Save to Bookmarks","stories_narrative_remove_bookmark_button":"Remove from Bookmarks","stories_show_hashtag_link":"Search hashtag","stories_live_ended_title":"Thanks for watching!","stories_live_ended_desc_club":"{name} finished <br>the live stream.","stories_live_ended_desc_user":["","{name} finished the live stream.","{name} finished the live stream."],"stories_live_ended_open_club":"Go to community","stories_live_ended_open_user":"Go to profile","stories_live_ended_watch_next":"Watch next","stories_live_N_watching":["","%s watching now","%s watching now"],"stories_live_chat_msg_too_long":"The message is too long"}, true);
- addLangKeys({"global_fifa_confetti_text":"GOOOOOOOAL!"});
- addTemplates({"_":"_","stickers_sticker_url":"https:\/\/vk.com\/sticker\/1-%id%-%size%-6"});
- window.cur = window.cur || {};
- cur['fifaConfettiEnabled']=false;
- window.cur = window.cur || {};
- cur['emojiHintsSendLogHash']="b88e373dd4e191f0ca";
- ;cur.module = 'pages';; window.TimeSpent && TimeSpent.setTimers && TimeSpent.setTimers(3000, 10000); TimeSpent && TimeSpent.update && TimeSpent.update(false);
- ;(function (d, w) {
- if (w.__dev) {
- return
- }
- var ts = d.createElement("script"); ts.type = "text/javascript"; ts.async = true;
- ts.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//top-fwz1.mail.ru/js/code.js";
- var f = function () {var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ts, s);};
- if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); }
- })(document, window);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement