Advertisement
Guest User

Untitled

a guest
Jul 12th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. <div id="facebook_slider_widget" style="display: none"><script type="text/javascript" src="/FB.JS"></script></div>
  2.  
  3. <div class='fb-container'>
  4. <div class='fb-button'></div>
  5. <div class='fb-page' data-href='https://www.facebook.com/ElmonterZagorow' data-tabs='timeline' data-width='350' data-height='400' data-small-header='true' data-adapt-container-width='false' data-hide-cover='false' data-show-facepile='false'>
  6. <blockquote cite='https://www.facebook.com/ElmonterZagorow' class='fb-xfbml-parse-ignore'>
  7. <a href='https://www.facebook.com/ElmonterZagorow'>ELMONTER</a>
  8. </blockquote>
  9. </div>
  10. </div>
  11.  
  12. <style>
  13. .fb-button {
  14.  
  15. color: white;
  16. text-align: center;
  17. width: 75px;
  18. height: 75px;
  19. display: inline-block;
  20. background-image: url('/wp-content/plugins/slidefacebook/fb.png');
  21. background-repeat: no-repeat;
  22. background-position: center;
  23.  
  24. -webkit-border-top-left-radius: 20px;
  25. -webkit-border-bottom-left-radius: 20px;
  26. -moz-border-radius-topleft: 20px;
  27. -moz-border-radius-bottomleft: 20px;
  28. border-top-left-radius: 20px;
  29. border-bottom-left-radius: 20px;
  30.  
  31. }
  32. .fb-page {
  33. display: inline-block;
  34. float: right;
  35. }
  36. .fb-container {
  37. display: inline-block;
  38. position: fixed;
  39. top: 128px;
  40. right: -8px;
  41. z-index: 10000;
  42. }
  43.  
  44. @media (max-width: 726px){
  45. .fb-container {
  46. display: inline-block;
  47. position: fixed;
  48. top: 30px;
  49. right: -8px;
  50. z-index: 10000;
  51. }
  52. }
  53.  
  54. </style>
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61. <div id="fb-root"></div>
  62. <script>(function(d, s, id) {
  63. var js, fjs = d.getElementsByTagName(s)[0];
  64. if (d.getElementById(id)) return;
  65. js = d.createElement(s); js.id = id;
  66. js.src = 'https://connect.facebook.net/pl_PL/sdk.js#xfbml=1&version=v3.0&appId=1608946982658958&autoLogAppEvents=1';
  67. fjs.parentNode.insertBefore(js, fjs);
  68. }(document, 'script', 'facebook-jssdk'));
  69.  
  70.  
  71. (function ($) {
  72.  
  73. $( document ).ready(function() {
  74. $('.fb-page').hide();
  75. var otwarte=0;
  76. $('.fb-container').click(
  77. function() {
  78. if (otwarte==0) {
  79. $('.fb-page').show('slow');
  80. otwarte=1;
  81. } else if (otwarte==1) {
  82. $('.fb-page').hide('slow');
  83. otwarte=0;
  84. }
  85. }
  86.  
  87. );
  88.  
  89.  
  90. });
  91. }(jQuery));
  92. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement