From 4308ae8faafa1548b12604531695f5f453a7f2c6 Mon Sep 17 00:00:00 2001 From: Leonardo Merlin Date: Fri, 10 Jul 2015 11:08:40 -0300 Subject: [PATCH] Add target _blank for social links and log response of facebook --- index.html | 6 +++--- js/main.js | 40 ++++++++++++++++++++++++++++++++++++++-- 2 files changed, 41 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 314d75a..31e1e00 100644 --- a/index.html +++ b/index.html @@ -474,9 +474,9 @@ diff --git a/js/main.js b/js/main.js index fe89e53..c06da55 100644 --- a/js/main.js +++ b/js/main.js @@ -830,6 +830,40 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun .done(function( data ) { data.host = host; data.private_token = Main.private_token; + + // check youtube iframe + function forceWmodeIframe(article){ + var abstract = article.abstract; + // console.log('article.abstract', article.abstract); + + var patternIframe = '