Problems with Javascript?

I have been looking at the source code of these two download pages for a while, and I cannot find the problem.

I have two download pages in which javascript runs, where it is not.

working: http://justupload.it/v/lfd7 not: http://justupload.it/v/ljhv

The worker allows me to rotate the image and open the comments window by clicking the comments button. A non-working person does not allow me to do this.

Can someone help me find a problem or recommend a program to help me do this?

+3
source share
3 answers
    Error: syntax error
Source File: http://justupload.it/v/ljhv
Line: 69, Column: 36
Source Code:
    $('#mainImage').rotateLeft( 90, ,  ); 

Firefox JS. , Firebug, , Javascript.

+3

: http://justupload.it/v/ljhv

:

function rotateLeft()
{$('#mainImage').rotateLeft( 90, ,  );}

function rotateRight()
{$('#mainImage').rotateRight( 90, ,  );}

. :

function rotateLeft()
{$('#mainImage').rotateLeft( 90, 254, 190.5 );}

function rotateRight()
{$('#mainImage').rotateRight( 90, 254, 190.5 );}

, http://justupload.it/v/lfd7 http://justupload.it/v/ljhv , .

+1
function rotateLeft()
68  {
69      $('#mainImage').rotateLeft( 90, ,  );
Uncaught SyntaxError: Unexpected token ,
70  }
71  

, Chrome Developer. , , .

+1

Source: https://habr.com/ru/post/1740345/


All Articles