26 lines
982 B
Plaintext
26 lines
982 B
Plaintext
.external-login
|
|
if facebook_auth
|
|
div#fb-root
|
|
script.
|
|
window.fbAsyncInit = function() {
|
|
FB.init({
|
|
appId : '#{facebook_auth}',
|
|
cookie : true,
|
|
xfbml : true,
|
|
version : 'v2.8'
|
|
});
|
|
FB.AppEvents.logPageView();
|
|
};
|
|
|
|
(function(d, s, id) {
|
|
var js, fjs = d.getElementsByTagName(s)[0];
|
|
if (d.getElementById(id)) return;
|
|
js = d.createElement(s); js.id = id;
|
|
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.10&appId=1124948240960869";
|
|
fjs.parentNode.insertBefore(js, fjs);
|
|
}(document, 'script', 'facebook-jssdk'));
|
|
fb:login-button(scope="public_profile,email", onlogin="checkLoginState();" data-max-rows="1", data-size="large", data-button-type="login_with", data-show-faces="false", data-auto-logout-link="false", data-use-continue-as="false")
|
|
if twitter_auth
|
|
a.twitterLogin(href="/api/external/twitter/login")
|
|
img(src="/static/image/sign-in-with-twitter-link.png")
|