Commit 80af0383 authored by PhoeniX's avatar PhoeniX

Online app show

parent 6a4970be
Thumbs.db
img/.DS_Store
......@@ -40,7 +40,19 @@ Blocks.page = (function(){
online.style.lineHeight = '17px';
online.style.color = '#aaa';
online.style.fontSize = '14px';
online.innerHTML = user.online ? (user.online_mobile ? ("📱online") : "online") : ("заходил " + (new Date(user.last_seen.time*1000)).toVKDateString());
online.innerHTML =
user.online ? (
(
user.online_mobile ? (
user.online_app == 3140623 ? "<img src=\"/img/online/apple.png\" style=\"vertical-align:middle\">" :
user.online_app == 3682744 ? "<img src=\"/img/online/android.png\" style=\"vertical-align:middle\">" :
user.online_app == 4374753 ? "<img src=\"/img/online/firefox.png\" style=\"vertical-align:middle\">" :
"<img src=\"/img/online/mobile.png\" style=\"vertical-align:middle\">"
) : ""
) + "online"
) : (
"заходил " + (new Date(user.last_seen.time*1000)).toVKDateString()
);
var agecity = userinfo.appendChild(document.createElement('div'));
agecity.style.cssFloat = 'left';
agecity.style.width = '-moz-calc(100% - 112px)';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment