Foursquare запустил новое приложение для чекинов Swarm

swarm-app-5374e5197a85c.jpg

По словам Кроули, версия приложения для Android появится в Google Play Store течение нескольких часов.

icon-pencil-12x12.png Материал дополняется…

»); add_comment.find (».file-attach input»).val (»); add_comment.find (».file-attach»).removeClass («loading»); //add_comment.find (».file-attach»).hide (); } else if (is_coub) { pic_url = «http://assets1.akamai.coub.com/assets/meta-logo-96d6a25329c35e556d64d3f4cd448725.png»; container.append (»); add_comment.find (».file-attach input»).val (»); add_comment.find (».file-attach»).removeClass («loading»); } else { pic_url = url; validate_image (pic_url, function (pic_url, result) { if (result) { container.append (»); add_comment.find (».file-attach input»).val (»); add_comment.find (».file-attach»).removeClass («loading»); //add_comment.find (».file-attach»).hide (); } else { add_comment.find (».attach-error span»).text («Это совсем не картинка и не ютуб-видео»); add_comment.find (».attach-error»).show (); add_comment.find (».file-attach»).removeClass («loading»); setTimeout («add_comment.find ('.attach-error').fadeOut ()», 5000); } }); } } else { add_comment.find (».attach-error span»).text («Больше двух прикреплять нельзя»); add_comment.find (».attach-error»).show (); add_comment.find (».file-attach»).removeClass («loading»); setTimeout («add_comment.find ('.attach-error').fadeOut ()», 5000); } return false; }); $(«body»).on («input»,».add-comment .file-attach input», function (){ link = $(this).parent ().find («a»); clearTimeout (si); var si = setTimeout (function (){ link.click (); }, 200); }); function youtube_parser (url){ var regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\? v?=?([^#\&\?]*).*/; var match = url.match (regExp); if (match&&match[7].length==11){ return match[7]; }else{ return false; } } function coub_parser (url){ var regExp = /^.*(coub.com\/view\/).*/; var match = url.match (regExp); if (match){ return url; }else{ return false; } } $(«body»).on («click»,».add-comment .files .file-preview a», function (){ $(this).parents (».file-preview»).remove (); return false; }); $(«body»).on («click»,».reply-button», function (){ if (!$(this).hasClass («disabled»)){ //if ($(».login»).length > 0){ // $(this).addClass («disabled»); // login = $('.login: not (.reply)').clone (); // login.addClass («reply»).insertAfter ($(this).parents (».comment»)); //} else { $('.add-comment.reply').remove (); add_comment = $('.add-comment').clone (); add_comment.find (».in_reply_to_comment_id»).attr («value», $(this).attr («data-comment-id»)); if (add_comment.hasClass («payment»)){ if (add_comment.hasClass («not-logined»)){ add_comment.find (».l a»).each (function (){ $(this).attr («href», $(this).attr («href») + »#reply» + add_comment.find (».in_reply_to_comment_id»).attr («value»)); }); } else { add_comment.find (».btn_darkgreen»).attr («href», add_comment.find (».btn_darkgreen»).attr («href») + »#reply» + add_comment.find (».in_reply_to_comment_id»).attr («value»)); } } add_comment.addClass («reply»).insertAfter ($(this).parents (».comment»)); add_comment.find ('textarea').focus (); //} } return false; }); $(«body»).on («click»,».youtube-preview», function (){ $(this).hide (); $(this).before (''); return false; }); $(«body»).on («click»,».comment .rating.disabled .up, .comment .rating.disabled .down», function (){ comment = $(this).parents (».comment»); $(».comment-vote-login a»).attr («href», function () { return $(this).attr ('data-href') + »%23» + comment.attr ('id'); }); $(».comment-vote-login»).removeClass («invisible»).css («top», comment.find (».rating.disabled»).offset ().top — $(».line-comments»).offset ().top — 12); return false; }); if (window.location.hash) { if (window.location.hash.indexOf (»#reply») != -1){ comment_id = window.location.hash.replace ('#reply', '#comment'); $(comment_id).find (».reply-button»).click (); /* comment = $(comment_id); console.log (comment.offset ()); console.log (comment.position ()); console.log ($(».line-comments»).offset ()); top = comment.position ().top + $(».line-comments»).offset ().top; $('body, html').animate ({ scrollTop: top }, 500); */ } } });

function validate_image (url, callback) { $(», { src: url, error: function () { callback (url, false); }, load: function () { callback (url, true); } }); }

Нашли опечатку? Выделите фрагмент и отправьте нажатием Ctrl+Enter.

©  TJournal