From cd983cdb26f7c459b68cb9f93b2eda4bd8af794c Mon Sep 17 00:00:00 2001 From: Jeena Paradies Date: Thu, 28 Feb 2013 18:23:37 +0100 Subject: [PATCH] fixed problems with youtube video inline --- Mac/English.lproj/MainMenu.xib | 12 ++++----- WebKit/css/default.css | 17 +++++++++++++ WebKit/img/play.png | Bin 0 -> 1541 bytes WebKit/scripts/controller/Profile.js | 1 - WebKit/scripts/helper/Core.js | 35 ++++++++++++++++++--------- 5 files changed, 47 insertions(+), 18 deletions(-) create mode 100644 WebKit/img/play.png 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 0000000000000000000000000000000000000000..85e255a95c152ed9593bcd8ecbe22b1bb67a4f05 GIT binary patch literal 1541 zcmeAS@N?(olHy`uVBq!ia0vp^sz5Bk!3HF2t4s=jlw^r(L`iUdT1k0gQ7VIDN`6wR zf@f}GdTLN=VoGJ<$y6H#24P=Ep@plwAdX;wilZcw{`JX@uVl9B=|ef{$C za=mh6z5JqdeM3u2OOP2xM!G;1y2X`wC5aWfdBw^w6I@b@lZ!G7N;32F6hI~>Cgqow z*eU^C3h_d20o>TUVrVb{15Cdnu|VHY&j92lm_lD){7Q3k;i`*Ef>IIg#cFVINM%8) zeo$(0erZuMFyhjbK~@!5ITxiSmgE4`>yn>bnwy$e0@Is<&})oSFDNPG765H_NiE7OOHFYr%Fk5*d)X=zw_6Nwng`XJ zg4->IIQ8lS9itD5Sfq%C2?0|NhzU=&Kn^_Nr{)1udl4{MA8B@Z#=yW->FMGaQgQ3Z zbl>c#K!LXS$J?JdI|hntNd+yb-u!CSSALdTz24$);|n4;eP@qw2`CH|;^fG?6dIec zKtQoci6gROL7qs@kBN8YSytp~WbSp>f7Z(AI=AxOoSBx&AKcT=)EQMLsJ*=)H?8oz ziYL>|G|nj{7Bcf~<@o#h`ZjFe-X8n%}SDL`KG!uJ4;mg`}Q zFDh*CkNRdM&%tuXZLwg{uWORFvYs!$Po3qr+LW5QDYafI<#VM+>EnnrZ;&?YU1zaZ4a2WQX@YOOkmWr;wqTVZ*5d)#{UH?LLiOFN%UGtM)yd-Ty_ z-TL){oh}!0%nYS^w>4cl8L&uc!E-A+yJJ6pS{{06P_$F#)mN(+J@GG9dpG3I3chsm zWaowcsI_9-|7*_lQJUy+Aa8qdu+@Z<`t4k7%}xPt%Vwu1&CLi}9;BIKBxy1CT&VGy z&u9DdH%8>t*66={^@{6d$*lA8QaxUeb7F!ozx*RSdTFgUzJK#rT@OzV(V7~dBUU+$kDtGC zdM?*yQ<2zHEFpT+6OCpn1^h;q~_P%SKwO4rZqlJ&F&-XoQ4_jUPwRFa&bFV%%|FQFX+;Y%U zhuhk`%ll(z^Q@;k{a&Uel_#OOPBxv literal 0 HcmV?d00001 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 = $('