diff --git a/Mac/English.lproj/MainMenu.xib b/Mac/English.lproj/MainMenu.xib
index a64c31f..5a0bacb 100644
--- a/Mac/English.lproj/MainMenu.xib
+++ b/Mac/English.lproj/MainMenu.xib
@@ -891,7 +891,7 @@
- {{0, 0}, {2560, 1418}}
+ {{0, 0}, {1920, 1178}}
{10000000000000, 10000000000000}
bungloo
YES
@@ -970,7 +970,7 @@
- {{0, 0}, {2560, 1418}}
+ {{0, 0}, {1920, 1178}}
{10000000000000, 10000000000000}
mentions
YES
@@ -1029,7 +1029,7 @@
- {{0, 0}, {2560, 1418}}
+ {{0, 0}, {1920, 1178}}
{10000000000000, 10000000000000}
conversation
YES
@@ -1088,7 +1088,7 @@
- {{0, 0}, {2560, 1418}}
+ {{0, 0}, {1920, 1178}}
{10000000000000, 10000000000000}
profile
YES
@@ -1258,7 +1258,7 @@
_NS:20
- {{0, 0}, {2560, 1418}}
+ {{0, 0}, {1920, 1178}}
{10000000000000, 10000000000000}
preferences
YES
@@ -1350,7 +1350,7 @@
_NS:21
- {{0, 0}, {2560, 1418}}
+ {{0, 0}, {1920, 1178}}
{10000000000000, 10000000000000}
NO
diff --git a/WebKit/css/default.css b/WebKit/css/default.css
index aaef22c..ad31028 100644
--- a/WebKit/css/default.css
+++ b/WebKit/css/default.css
@@ -345,4 +345,21 @@ header.profile button {
header.profile button.following {
background: #D84A38;
+}
+
+a.youtube {
+ position: relative;
+ display: inline-block;
+}
+
+a.youtube:before {
+ content: " ";
+ background: url(../img/play.png) no-repeat;
+ width: 37px;
+ height: 24px;
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ margin-left: -19px;
+ margin-top: -12px;
}
\ No newline at end of file
diff --git a/WebKit/img/play.png b/WebKit/img/play.png
new file mode 100644
index 0000000..85e255a
Binary files /dev/null and b/WebKit/img/play.png differ
diff --git a/WebKit/scripts/controller/Profile.js b/WebKit/scripts/controller/Profile.js
index 623c2dc..972c0e9 100644
--- a/WebKit/scripts/controller/Profile.js
+++ b/WebKit/scripts/controller/Profile.js
@@ -246,7 +246,6 @@ function(HostApp, Core, Paths, URI) {
Profile.prototype.showProfile = function(profile) {
var basic = profile["https://tent.io/types/info/basic/v0.1.0"];
- debug(basic)
if (profile && basic) {
diff --git a/WebKit/scripts/helper/Core.js b/WebKit/scripts/helper/Core.js
index 65cd16e..eff5cec 100644
--- a/WebKit/scripts/helper/Core.js
+++ b/WebKit/scripts/helper/Core.js
@@ -934,19 +934,32 @@ function(jQuery, Paths, URI, HostApp, Cache) {
}
Core.prototype.addYouTube = function(id, images) {
- var iframe = $('')
- iframe.appendTo(images);
-
- // This is a workaround without it it in the Mentions view it scrolls
- // down to the first video on load.
- iframe.load(function() {
- iframe.contents().find('*').each(function () {
- $(this).removeAttr("tabindex");
- });
+ var a = $("", {
+ href: "http://youtu.be/" + id,
+ class: "youtube"
});
- // Appending the src
- iframe.attr("src", 'http://www.youtube.com/embed/' + id + '?rel=0&showsearch=0&version=3&modestbranding=1');
+ var img = $("
", {src: "http://img.youtube.com/vi/" + id + "/0.jpg"});
+ var h = 200;
+ img.load(function() {
+ h = img.height();
+ });
+
+ a.click(function() {
+ var iframe = $('', {
+ class: "youtube",
+ type: "text/html",
+ width: "100%",
+ height: h,
+ frameborder: 0,
+ src: 'http://www.youtube.com/embed/' + id + '?rel=0&showsearch=0&version=3&modestbranding=1&autoplay=1'
+ })
+ a.replaceWith(iframe);
+ return false;
+ })
+
+ img.appendTo(a);
+ a.appendTo(images);
}
Core.prototype.addVimeo = function(id, images) {