Javascript does not work on the site! Everything works on the tablet, but not on the computer and the smartphone.


This is the shift script:

 <script> function next_banner() { $("#div_s1").fadeToggle(400, "linear"); $("#div_s2").fadeToggle(400, "linear"); setTimeout(next_banner, 4000); } var change_form_flag = 0; function test_change_form() { if(!change_form_flag) { _tmr.push({ id: '2683702', type: 'reachGoal', goal: 'howmuch_start' }); change_form_flag = 1; } } </script> 

Please tell me what the problem is and how to fix it?

Closed due to the fact that off-topic participants D-side , pavel , aleksandr barakin , cheops , rjhdby 17 Oct '16 at 7:55 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • “Questions asking for help with debugging (“ why does this code not work? ”) Should include the desired behavior, a specific problem or error, and a minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, self-sufficient and reproducible example . " - D-side, pavel, aleksandr barakin, cheops, rjhdby
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • How should it work, what does “not work” mean, what does it write to the console? - andreymal
  • Your functions are not called. It works for me in the console (after a small file, of course). The problem may be in your browsers. JS is on? Only this code does not work, or in general any? - user207618

0