Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 3 commits
  • 4 files changed
  • 0 comments
  • 1 contributor
42 img/avatar.svg
... ... @@ -0,0 +1,42 @@
  1 +<?xml version="1.0" standalone="yes"?>
  2 +<svg version="1.1" xmlns="http://www.w3.org/2000/svg"
  3 + xmlns:xlink="http://www.w3.org/1999/xlink"
  4 + xmlns:ev="http://www.w3.org/2001/xml-events"
  5 + width="230" height="230">
  6 +<path style="fill: rgba(0, 0, 0, 1); stroke: none;"
  7 + d="M10 10L10 80L80 80L80 10L10 10M100 10L100 30L90 30L90 90L100 90L100
  8 + 100L90 100L90 110L100 110L100 120L80 120L80 110L70 110L70 100L80
  9 + 100L80 90L30 90L30 100L40 100L40 130L30 130L30 120L20 120L20
  10 + 90L10 90L10 140L20 140L20 130L30 130L30 140L80 140L80
  11 + 130L100 130L100 140L90 140L90 150L110 150L110
  12 + 160L90 160L90 200L100 200L100 170L120 170L120 190L130 190L130
  13 + 200L120 200L120 210L130 210L130 220L140 220L140 210L160
  14 + 210L160 220L170 220L170 180L180 180L180 170L200 170L200
  15 + 180L190 180L190 190L180 190L180 220L190 220L190 210L200
  16 + 210L200 220L210 220L210 210L200 210L200 180L210 180L210
  17 + 150L220 150L220 130L210 130L210 110L220 110L220 100L200
  18 + 100L200 90L150 90L150 100L130 100L130 90L110 90L110 80L120
  19 + 80L120 70L130 70L130 80L140 80L140 70L130 70L130 60L140
  20 + 60L140 50L130 50L130 60L120 60L120 50L110 50L110 60L120
  21 + 60L120 70L110 70L110 80L100 80L100 30L110 30L110 10L100
  22 + 10M150 10L150 80L220 80L220 10L150 10M70 20L70 70L20
  23 + 70L20 20L70 20M210 20L210 70L160 70L160 20L210 20M30
  24 + 30L30 60L60 60L60 30L30 30M120 30L120 40L140 40L140
  25 + 30L120 30M170 30L170 60L200 60L200 30L170 30M120 100L120
  26 + 110L130 110L130 120L120 120L120 130L130 130L130 150L140
  27 + 150L140 130L160 130L160 120L170 120L170 110L160 110L160
  28 + 100L190 100L190 110L200 110L200 120L190 120L190 110L180
  29 + 110L180 130L200 130L200 140L210 140L210 150L200 150L200
  30 + 160L190 160L190 140L180 140L180 150L170 150L170 160L160
  31 + 160L160 170L170 170L170 180L150 180L150 170L140 170L140
  32 + 180L130 180L130 170L120 170L120 160L130 160L130 150L110
  33 + 150L110 140L120 140L120 130L100 130L100 120L120 120L120
  34 + 110L100 110L100 100L120 100M70 110L70 120L80 120L80 130L60
  35 + 130L60 120L50 120L50 110L70 110M150 110L150 120L140 120L140
  36 + 110L150 110M160 130L160 150L170 150L170 130L160 130M10 150L10
  37 + 220L80 220L80 150L10 150M140 150L140 160L150 160L150 150L140
  38 + 150M70 160L70 210L20 210L20 160L70 160M30 170L30 200L60 200L60
  39 + 170L30 170M150 190L150 200L140 200L140 190L150 190M90 210L90
  40 + 220L100 220L100 210L90 210z"
  41 +/>
  42 +</svg>
4 index.html
@@ -43,7 +43,7 @@
43 43
44 44 <div class="container">
45 45 <header class="jumbotron subhead" id="overview">
46   - <img src="img/avatar.png" alt="avatar">
  46 + <img id="avatar" src="img/avatar.svg" alt="avatar" width="100" height="100">
47 47 <div class="top-header-texts">
48 48 <h1>MSOAP index page</h1>
49 49 <p class="lead">all recent changes.</p>
@@ -90,7 +90,7 @@
90 90 </footer>
91 91
92 92 <script src="js/libs/ecmascript5.compatibility.min.js"></script>
93   - <script src="//yandex.st/jquery/1.7.1/jquery.min.js"></script>
  93 + <script src="//yandex.st/jquery/1.8.2/jquery.min.js"></script>
94 94 <script src="//yandex.st/jquery/tmpl/1.0.0pre/jquery.tmpl.min.js"></script>
95 95 <script src="bootstrap/js/bootstrap.min.js"></script>
96 96 <script src="js/script.min.js"></script>
16 js/script.js
... ... @@ -1,4 +1,3 @@
1   -// ★★★★☆
2 1 "use strict";
3 2
4 3 $(function() {
@@ -20,6 +19,11 @@ var App = {
20 19 App.on_init_render_fotkiyandexru();
21 20 App.on_init_render_twitter();
22 21 App.on_init_render_linkedin();
  22 +
  23 + // svg fallback
  24 + if (! window.SVGSVGElement) {
  25 + $('img#avatar')[0].src = 'img/avatar.png'
  26 + };
23 27 },
24 28
25 29 on_init_set_active: function() {
@@ -43,6 +47,11 @@ var App = {
43 47 "format": "json"
44 48 }, function(github_data) {
45 49
  50 + if (github_data.meta && github_data.meta.status != 200) {
  51 + $("div#github").remove()
  52 + return;
  53 + };
  54 +
46 55 var vars = {
47 56 name: 'Github repositories:',
48 57 link_to_all: 'https://github.com/msoap',
@@ -77,6 +86,11 @@ var App = {
77 86 "format": "json"
78 87 }, function(github_gists_data) {
79 88
  89 + if (github_gists_data.meta && github_gists_data.meta.status != 200) {
  90 + $("div#github").remove()
  91 + return;
  92 + };
  93 +
80 94 var vars = {
81 95 name: 'Github gists:',
82 96 link_to_all: 'https://gist.github.com/msoap',
2  js/script.min.js
... ... @@ -1 +1 @@
1   -"use strict";$(function(){App.init()});var App={init:function(){$("div#navbar ul.nav li a").click(App.on_click_navbar),setTimeout(App.on_init_set_active,10),App.on_init_render_github(),App.on_init_render_delicious(),App.on_init_render_github_gists(),App.on_init_render_lastfm(),App.on_init_render_fotkiyandexru(),App.on_init_render_twitter(),App.on_init_render_linkedin()},on_init_set_active:function(){var e=document.location.hash.replace(/^#/,"");e.length&&$("div#"+e).length&&($("div#navbar ul.nav li").removeClass("active"),$("div#navbar ul.nav li a[href=#"+e+"]").parent("li").addClass("active"))},on_click_navbar:function(){$(this).parents("ul").find("li").removeClass("active"),$(this).parent("li").addClass("active")},on_init_render_github:function(){$.getJSON("https://api.github.com/users/msoap/repos?callback=?",{format:"json"},function(e){var t={name:"Github repositories:",link_to_all:"https://github.com/msoap",items:e.data.map(function(e){var t=[];return e.homepage&&e.homepage.length&&t.push({title:"home",url:e.homepage}),t.push({title:"repository",url:e.html_url}),e.has_wiki&&t.push({title:"wiki",url:e.html_url+"/wiki"}),{title:e.description,description:e.description,urls:t,date:(new Date(e.updated_at)).toLocaleDateString()}})};App.render_any("div#github",t,"script#tmpl_links_block_github")})},on_init_render_github_gists:function(){$.getJSON("https://api.github.com/users/msoap/gists?callback=?",{format:"json"},function(e){var t={name:"Github gists:",link_to_all:"https://gist.github.com/msoap",items:e.data.map(function(e){var t=e.description;for(var n in e.files){t=n+" — "+e.description;break}return{title:t,description:e.description,url:e.html_url,date:(new Date(e.updated_at)).toLocaleDateString()}})};App.render_any("div#github",t)})},on_init_render_delicious:function(){$.getJSON("http://feeds.delicious.com/v2/json/msoap?callback=?",{},function(e){var t={name:"Last delicious links:",link_to_all:"http://delicious.com/msoap",items:e.map(function(e){return{title:e.d,description:e.n,url:e.u,date:(new Date(e.dt)).toLocaleDateString()}})};App.render_any("div#delicious",t)})},on_init_render_lastfm:function(){$.getJSON("http://ws.audioscrobbler.com/2.0/?callback=?",{method:"user.getRecentTracks",format:"json",user:"msoap",api_key:"f013c46eeee32be481c90eb2c79378c5"},function(e){var t={without_url:!0,name:"Recently Listened Tracks:",link_to_all:"http://www.lastfm.ru/user/msoap",items:e.recenttracks.track.map(function(e){return{title:e.name,description:[e.artist["#text"],e.album["#text"]].join(" / "),url:e.url,date:e.date?(new Date(e.date.uts*1e3)).toLocaleDateString():(new Date).toLocaleDateString()}})};App.render_any("div#lastfm",t)})},on_init_render_fotkiyandexru:function(){$.getJSON("http://api-fotki.yandex.ru/api/users/msoap/photos/?callback=?",{limit:10,format:"json"},function(e){var t={without_url:!0,name:"Last photos:",link_to_all:"http://fotki.yandex.ru/users/msoap/",items:e.entries.filter(function(e,t){return t<15?!0:!1}).map(function(e){return{title:e.title,description:e.description,url:e.links.alternate,date:(new Date(e.published)).toLocaleDateString()}})};App.render_any("div#fotkiyandexru",t)})},on_init_render_twitter:function(){$.getJSON("https://api.twitter.com/1/statuses/user_timeline.json?callback=?",{include_entities:"false",include_rts:"false",screen_name:"msoap",count:10},function(e){var t={without_url:!0,name:"Last twits, one twit per year:)",link_to_all:"http://twitter.com/msoap",items:e.map(function(e){return{title:e.text,description:"",url:"http://twitter.com/#!/msoap/status/"+e.id_str,date:(new Date(e.created_at)).toLocaleDateString()}})};App.render_any("div#twitter",t)})},on_init_render_linkedin:function(){$("div#linkedin_div").append('<script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/MemberProfile" data-id="http://www.linkedin.com/in/mudrik" data-format="click" data-related="false"></script>'),$("div#linkedin_div").one("mouseenter mouseleave",function(){$("span.IN-widget a.li-connect-link").append('<span style="color: black; font-size: 70%; text-decoration: none;">Linkedin<span>'),$(this).unbind("mouseenter mouseleave")})},render_any:function(e,t,n){n||(n="script#tmpl_links_block"),$(n).tmpl(t).appendTo(e)}};
  1 +"use strict";$(function(){App.init()});var App={init:function(){$("div#navbar ul.nav li a").click(App.on_click_navbar),setTimeout(App.on_init_set_active,10),App.on_init_render_github(),App.on_init_render_delicious(),App.on_init_render_github_gists(),App.on_init_render_lastfm(),App.on_init_render_fotkiyandexru(),App.on_init_render_twitter(),App.on_init_render_linkedin(),window.SVGSVGElement||($("img#avatar")[0].src="img/avatar.png")},on_init_set_active:function(){var e=document.location.hash.replace(/^#/,"");e.length&&$("div#"+e).length&&($("div#navbar ul.nav li").removeClass("active"),$("div#navbar ul.nav li a[href=#"+e+"]").parent("li").addClass("active"))},on_click_navbar:function(){$(this).parents("ul").find("li").removeClass("active"),$(this).parent("li").addClass("active")},on_init_render_github:function(){$.getJSON("https://api.github.com/users/msoap/repos?callback=?",{format:"json"},function(e){if(e.meta&&e.meta.status!=200){$("div#github").remove();return}var t={name:"Github repositories:",link_to_all:"https://github.com/msoap",items:e.data.map(function(e){var t=[];return e.homepage&&e.homepage.length&&t.push({title:"home",url:e.homepage}),t.push({title:"repository",url:e.html_url}),e.has_wiki&&t.push({title:"wiki",url:e.html_url+"/wiki"}),{title:e.description,description:e.description,urls:t,date:(new Date(e.updated_at)).toLocaleDateString()}})};App.render_any("div#github",t,"script#tmpl_links_block_github")})},on_init_render_github_gists:function(){$.getJSON("https://api.github.com/users/msoap/gists?callback=?",{format:"json"},function(e){if(e.meta&&e.meta.status!=200){$("div#github").remove();return}var t={name:"Github gists:",link_to_all:"https://gist.github.com/msoap",items:e.data.map(function(e){var t=e.description;for(var n in e.files){t=n+" — "+e.description;break}return{title:t,description:e.description,url:e.html_url,date:(new Date(e.updated_at)).toLocaleDateString()}})};App.render_any("div#github",t)})},on_init_render_delicious:function(){$.getJSON("http://feeds.delicious.com/v2/json/msoap?callback=?",{},function(e){var t={name:"Last delicious links:",link_to_all:"http://delicious.com/msoap",items:e.map(function(e){return{title:e.d,description:e.n,url:e.u,date:(new Date(e.dt)).toLocaleDateString()}})};App.render_any("div#delicious",t)})},on_init_render_lastfm:function(){$.getJSON("http://ws.audioscrobbler.com/2.0/?callback=?",{method:"user.getRecentTracks",format:"json",user:"msoap",api_key:"f013c46eeee32be481c90eb2c79378c5"},function(e){var t={without_url:!0,name:"Recently Listened Tracks:",link_to_all:"http://www.lastfm.ru/user/msoap",items:e.recenttracks.track.map(function(e){return{title:e.name,description:[e.artist["#text"],e.album["#text"]].join(" / "),url:e.url,date:e.date?(new Date(e.date.uts*1e3)).toLocaleDateString():(new Date).toLocaleDateString()}})};App.render_any("div#lastfm",t)})},on_init_render_fotkiyandexru:function(){$.getJSON("http://api-fotki.yandex.ru/api/users/msoap/photos/?callback=?",{limit:10,format:"json"},function(e){var t={without_url:!0,name:"Last photos:",link_to_all:"http://fotki.yandex.ru/users/msoap/",items:e.entries.filter(function(e,t){return t<15?!0:!1}).map(function(e){return{title:e.title,description:e.description,url:e.links.alternate,date:(new Date(e.published)).toLocaleDateString()}})};App.render_any("div#fotkiyandexru",t)})},on_init_render_twitter:function(){$.getJSON("https://api.twitter.com/1/statuses/user_timeline.json?callback=?",{include_entities:"false",include_rts:"false",screen_name:"msoap",count:10},function(e){var t={without_url:!0,name:"Last twits, one twit per year:)",link_to_all:"http://twitter.com/msoap",items:e.map(function(e){return{title:e.text,description:"",url:"http://twitter.com/#!/msoap/status/"+e.id_str,date:(new Date(e.created_at)).toLocaleDateString()}})};App.render_any("div#twitter",t)})},on_init_render_linkedin:function(){$("div#linkedin_div").append('<script src="http://platform.linkedin.com/in.js" type="text/javascript"></script><script type="IN/MemberProfile" data-id="http://www.linkedin.com/in/mudrik" data-format="click" data-related="false"></script>'),$("div#linkedin_div").one("mouseenter mouseleave",function(){$("span.IN-widget a.li-connect-link").append('<span style="color: black; font-size: 70%; text-decoration: none;">Linkedin<span>'),$(this).unbind("mouseenter mouseleave")})},render_any:function(e,t,n){n||(n="script#tmpl_links_block"),$(n).tmpl(t).appendTo(e)}};

No commit comments for this range

Something went wrong with that request. Please try again.