Advertisement
Guest User

test zowja

a guest
Nov 18th, 2017
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.20 KB | None | 0 0
  1. ta9a lowla
  2. hada bo9 b:skin
  3. .nak1ha .Nak1haText {
  4. margin: auto;
  5. }
  6. a.RcloseNak1ha:hover {
  7. color: #555;
  8. }
  9. a.closeNak1ha {
  10. position: absolute;
  11. top: 0;
  12. right: 0;
  13. font-size: 18px;
  14. margin-right: 7px;
  15. color: #888;
  16. display: block;
  17. }
  18. .Nak1habox {
  19. width: 35%;
  20. margin: auto;
  21. position: relative;
  22. height: 240px;
  23. background: #fff;
  24. box-shadow: 0 0 19px 3px rgba(0, 0, 0, 0.33);
  25. text-align: center;
  26. display: flex;
  27. flex-direction: column;
  28. }
  29. .nak1ha {
  30. display: flex;
  31. position: fixed;
  32. width: 100%;
  33. height: 100%;
  34. background: rgba(255, 255, 255, 0.53);
  35. z-index: 99999999;
  36. visibility:hidden;
  37. opacity:0;
  38. top: 0;
  39. }
  40. a.Nak1halink:hover {
  41. opacity: 0.88;
  42. }
  43. a.Nak1halink {
  44. background: #243750;
  45. display: inline-block;
  46. color: #fff;
  47. padding: 4px 11px;
  48. font-size: 16px;
  49. border-radius: 3px;
  50. margin-top: 16px;
  51. }
  52. .Nak1haText h5 {
  53. font-size: 18px;
  54. font-weight: 500;
  55. }
  56. .nak1ha.show {
  57. visibility:visible;
  58. opacity:1;
  59. margin: 0 -897px 0 0;
  60. }
  61. .nak1ha a, .nak1ha {
  62. transition:0.35s;
  63. }
  64. ====================
  65. hada fo9 /head
  66. <script type='text/javascript'>
  67. //<![CDATA[
  68. $(document).ready(function(){
  69. $(".nak1ha").delay(20000).addClass("show");
  70. $(".closeNak1ha").click(function(){
  71. $(".nak1ha").removeClass("show");
  72. });
  73. });
  74. //]]>
  75. </script>
  76. ===============
  77. Html/javascript
  78. <div class='nak1ha'>
  79. <div class='Nak1habox'>
  80. <a class='closeNak1ha' id="play-button" href='#'><i class='fa fa-close'/></i></a>
  81. <div class='Nak1haText'>
  82. <h5>
  83. انضم الى متابعي المدونة الأوفياء ليصلك جديد مدونتنا !</h5>
  84. <a class='Nak1halink' href='https://goo.gl/fIuSG5' target='_blank'><i class='fa fa-user-plus'/>
  85. إنضم الان</i></a>
  86. </div>
  87. </div>
  88. </div>
  89.  
  90. ==============================================
  91. ==============================================
  92. view jacker
  93. ================================
  94. hada fo9 el /body
  95. <script>
  96. //<![CDATA[
  97. // https://developers.google.com/youtube/iframe_api_reference
  98.  
  99. // global variable for the player
  100. var player;
  101.  
  102. // this function gets called when API is ready to use
  103. function onYouTubePlayerAPIReady() {
  104. // create the global player from the specific iframe (#video)
  105. player = new YT.Player('video', {
  106. events: {
  107. // call this function when player is ready to use
  108. 'onReady': onPlayerReady
  109. }
  110. });
  111. }
  112.  
  113. function onPlayerReady(event) {
  114. event.target.setVolume(0);
  115. // bind events
  116. var playButton = document.getElementById("play-button");
  117. playButton.addEventListener("click", function() {
  118. player.playVideo();
  119. });
  120.  
  121. var pauseButton = document.getElementById("pause-button");
  122. pauseButton.addEventListener("click", function() {
  123. player.pauseVideo();
  124. });
  125.  
  126. }
  127.  
  128. // Inject YouTube API script
  129. var tag = document.createElement('script');
  130. tag.src = "//www.youtube.com/player_api";
  131. var firstScriptTag = document.getElementsByTagName('script')[0];
  132. firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
  133. //]]>
  134. </script>
  135.  
  136.  
  137. =================
  138. Video Link HTML/javascript widget
  139.  
  140. <h1>Pause / Play Buttons for YouTube Videos</h1>
  141.  
  142. <!-- Make sure ?enablejsapi=1 is on URL -->
  143. <iframe id="video" src="//www.youtube.com/embed/FKWwdQu6_ok?enablejsapi=1&html5=1" frameborder="0" allowfullscreen></iframe>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement