Advertisement
Guest User

Anki

a guest
Aug 24th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. {{FrontSide}}
  2.  
  3. <hr id=answer>
  4.  
  5. {{francuski}}
  6. <hr>
  7. <button id="dalej1" style='display: block; margin: auto' onclick="firstClick()">Dalej</button>
  8. <div id="odmiana1" style='display: none; width: 50%; float: left'>
  9. <p>je {{je}}</p>
  10. <p>tu {{tu}}</p>
  11. <p>il {{il}}</p>
  12. </div>
  13. <button id="dalej1,5" style='display:none; margin: auto' onclick="afterFirstClick()">Dalej</button>
  14. <div id="odmiana2" style='display:none; width: 50%; float: left'>
  15. <p>nous {{nous}}</p>
  16. <p>vous {{vous}}</p>
  17. <p>ils {{ils}}</p>
  18. </div>
  19. <hr>
  20. <button id="dalej2" style='display: none; margin: auto;' onclick="secondClick()">Dalej</button>
  21. <div id="PC" style='display:none; font-family: Arial; font-size: 20px;'>{{passe compose}}</div>
  22.  
  23.  
  24.  
  25.  
  26.  
  27. <script>
  28. const firstButton = document.getElementById('dalej1');
  29. const odmiana1 = document.getElementById('odmiana1');
  30. const afterFirstButton = document.getElementById('dalej1,5');
  31. const odmiana2 = document.getElementById('odmiana2');
  32. const secondButton = document.getElementById('dalej2');
  33.  
  34. function firstClick (){
  35. firstButton.style.display = 'none';
  36. odmiana1.style.display = 'block';
  37. afterFirstButton.style.display = 'block';
  38. }
  39.  
  40. function afterFirstClick (){
  41. afterFirstButton.style.display = 'none';
  42. odmiana2.style.display = 'block';
  43. secondButton.style.display = 'block';
  44. }
  45.  
  46. const PC = document.getElementById('PC');
  47. function secondClick () {
  48. secondButton.style.display = 'none';
  49. PC.style.display = 'block'
  50. }
  51.  
  52. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement