Good afternoon, I tried to add social buttons to the main page of the site www.travianx5.ru/ , here is the code that I added

<div class="share42init"></div> <script type="text/javascript" src="http://www.travianx5.ru/share42/jquery-1.10.2.min.js"></script> <script type="text/javascript" src="http://www.travianx5.ru/share42/share42.js"></script> 

Why, after adding this code, all the other javascript that is on the page stop working?

    2 answers 2

    Your site uses Mootools, which uses the $ variable in its own way. When jQuery is enabled, this variable is overridden.

    Try using jQuery.noConflict ()

      Because jquery overrides the $ function, which was previously defined in mt-core.js. In addition, look at the console, there are a lot of errors.