Vinny Fonseca VinnyFonseca
-
Codem Digital Ltd.
- London
- Sign in to view email
- http://www.vinnyfonseca.com/
View Facebook Implementation
<div id="fb-root"></div> | |
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script> | |
<script type="text/javascript"> | |
window.fbAsyncInit = function() { | |
FB.init({ | |
appId : "XXXXXXXXX", | |
status : false, | |
cookie : true, | |
xfbml : true | |
}); |
View Twitter Implementation
<script type="text/javascript"> | |
window.twttr = (function (d, s, id) { | |
var t, js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) return; | |
js = d.createElement(s); | |
js.id = id; | |
js.src = "//platform.twitter.com/widgets.js"; | |
fjs.parentNode.insertBefore(js, fjs); | |
return window.twttr || (t = { | |
_e: [], |
View Facebook Canvas Auto Height
<div id="fb-root"></div> | |
<script src="https://connect.facebook.net/en_US/all.js"></script> | |
<script type="text/javascript"> | |
var appId = 'XXXXXXXXXXXXX'; | |
window.fbAsyncInit = function() { | |
FB.init({ | |
appId: appId, | |
status: true, | |
cookie: true, |
View Facebook Create Page Tab URL
https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID&next=YOUR_URL |
View popup.js
const popup = function (url, title, w = 640, h = 320) { | |
let l = (screen.width / 2) - (w / 2); | |
let t = (screen.height / 2) - (h / 2); | |
return window.open(url, title, `toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=${w}, height=${h}, top=${t}, left=${l}`); | |
} |
View pretty-log.txt
git log --pretty=format:"%h - %an, %ar : %s" --author="Vinny Fonseca" |
View fb-canvas-click-scroll.js
function scrollFBTo(y){ | |
FB.Canvas.getPageInfo(function(pageInfo) { | |
$({y: pageInfo.scrollTop}).animate({ | |
y: y | |
}, { | |
duration: 500, | |
step: function(offset) { | |
FB.Canvas.scrollTo(0, offset); | |
} | |
}); |
View email-hide-images.css
table[class="mob-show"], | |
tr[class="mob-show"], | |
td[class="mob-show"], | |
span[class="mob-show"], | |
a[class="mob-show"], | |
img[class="mob-show"] { | |
display: none !important; | |
font-size: 0 !important; | |
width: 0 !important; | |
height: 0 !important; |
View meat-viewport.html
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> |
OlderNewer