-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Paul-Louis NECH
committed
Dec 15, 2015
1 parent
f931fa8
commit 47f2734
Showing
9 changed files
with
123 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
canvas { | ||
margin-top: 25px; | ||
margin-left: 70px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
function share_meal(starter, main, desert, picture_url) { | ||
console.log("Sharing meal: ", starter, main, desert, picture_url); | ||
var caption = 'MenuGen me conseille ce repas : ' + starter + ', ' + main + ' et ' + desert + '.'; | ||
var description = 'Et vous, que va-t\'il vous proposer ?'; | ||
FB.ui({ | ||
method: 'feed', | ||
name: 'Mon repas', | ||
picture: picture_url, | ||
description: description, | ||
caption: caption | ||
}, | ||
function (response) { | ||
}); | ||
} | ||
|
||
function share_recipe(name, picture) { | ||
console.log("Sharing recipe: ", name, picture); | ||
var caption = 'MenuGen me conseille cette recette : ' + name + '.'; | ||
var description = 'Et vous, que va-t\'il vous proposer ?'; | ||
FB.ui({ | ||
method: 'feed', | ||
name: 'Mon plat', | ||
description: description, | ||
picture: 'https://plnech.fr/files/menugen_logo.png', | ||
caption: caption | ||
}, | ||
function (response) { | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{% extends '_base.html' %} | ||
{% load staticfiles %} | ||
{% block body %} | ||
<div id="fb-root"></div> | ||
<script> | ||
window.fbAsyncInit = function () { | ||
FB.init({ | ||
appId: '201028526898960', | ||
xfbml: true, | ||
version: 'v2.5' | ||
}); | ||
}; | ||
|
||
(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/all.js"; | ||
fjs.parentNode.insertBefore(js, fjs); | ||
}(document, 'script', 'facebook-jssdk')); | ||
</script> | ||
<script src="{% static 'facebook.js' %}"></script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters