fork download
  1. importPackage(java.io);
  2. importPackage(java.lang);
  3.  
  4. // your code goes here
  5. $.each($("#module-callback-form-mortgage,#module-callback-form-registration,#module-callback-form-help"), function(){
  6.  
  7. if($("#module-callback-form-mortgage")) {
  8. $("#module-callback-form-mortgage").submit(yaMetrikaForm('mortgage'));
  9. } else if($("#module-callback-form-registration")) {
  10. $("#module-callback-form-registration").submit(yaMetrikaForm('registration'));
  11. } else if($("#module-callback-form-help")) {
  12. $("#module-callback-form-help").submit(yaMetrikaForm('help'));
  13. }
  14.  
  15. function yaMetrikaForm(goal) {
  16. yaCounter22459081.reachGoal('goal-' + goal);
  17. }
  18.  
  19. });
Runtime error #stdin #stdout #stderr 0.21s 2576384KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
js: uncaught JavaScript runtime exception: ReferenceError: "$" is not defined.