Guest User

Untitled

a guest
Oct 17th, 2017
2,636
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. function checkAnswer(a,b)
  2. {
  3. $('#learning_page').hide();
  4. $('#loading').show();
  5. updateParams(a,hackedbypsychox,true);
  6. } var hackedbypsychox=' ';
  7.  
  8. function learningPageShow(a,b,c,d,e,f,g,h,j)
  9. {
  10. hackedbypsychox=e;$('.speaker').hide();
  11. $('#question_speaker').hide();
  12. $('#question_speaker').off('click');
  13. $('#answer').off('keyup');
  14. $('body').off('keyup');
  15. $('#answer').off('enterKey');
  16. $('.speaker').off('click');
  17. $('#check').off('click');
  18. $('#show').off('click');
  19. $("#new_word_form .big_button").off("click");
  20. $('.translations').html(d);
  21. $('.usage_example').html(c);
  22. $('.speech_part').html(b);
  23. $('#loading').hide();
  24. $('.back').show();$('#learning_page').show();
  25.  
  26. top.document.title='Insta.Ling bot by PatrykCzyliPsychoX, edit by Szymixo';
  27. if(h||j){$("#learning_form").hide();
  28. $("#new_word_form").show();
  29. $("#know_new").click(function()
  30. {
  31. if(j){possibleWordPageShow(d);
  32. $('#answer').attr('value',e);
  33. }
  34. else
  35. {
  36. show_learning_form(a);
  37. }
  38. });
  39.  
  40. $("#dont_know_new").click(function()
  41. {
  42. if(j)
  43. {
  44. possibleWordPageShow(d);
  45. $('#answer').style('value',e);
  46. }
  47. else ask_for_answer(a);
  48.  
  49. });
  50.  
  51. $('body').off('keyup');
  52. $("body").keyup(function(e)
  53. {
  54. if(e.keyCode==13)
  55. {
  56. $('#know_new').trigger('click');
  57. }
  58. });
  59.  
  60. }
  61. else
  62. {
  63. show_learning_form(a);
  64. }
  65.  
  66. if(f)
  67. {
  68. setAudio(g);
  69. }
  70.  
  71. if(currentLanguageId==ORT_LANG_ID&&f)
  72. {
  73. playAudio();$("#question_speaker").show();
  74. $("#question_speaker").click(function()
  75. {
  76. playAudio();
  77. });
  78. }
  79. };
  80.  
  81. console.log('--- Automat Instaling.pl by PatrykCzyliPsychoX, edit by Szymixo ---');
Advertisement
Add Comment
Please, Sign In to add comment