D
D
Dimon3x2019-04-29 17:31:51
uLogin
Dimon3x, 2019-04-29 17:31:51

How to use uLogin in two places, on the same page?

I did not find anything in the dock, I posted this code

<script src="//ulogin.ru/js/ulogin.js"></script>
 <div style="margin: 0 auto; text-align: center;" id="uLogin" data-ulogin="display=panel;theme=classic;fields=first_name,last_name,email;providers=vkontakte,mailru,facebook,google,yandex;redirect_uri={{ urlencode('http://' . $_SERVER['HTTP_HOST']) }}/ulogin;mobilebuttons=0;"></div>

In this case, the URL starts with two strokes // and id = uLogin
In the second case
<script src="/ulogin.ru/js/ulogin.js"></script>
 <div style="margin: 0 auto; text-align: center;" id="uLogin2" data-ulogin="display=panel;theme=classic;fields=first_name,last_name,email;providers=vkontakte,mailru,facebook,google,yandex;redirect_uri={{ urlencode('http://' . $_SERVER['HTTP_HOST']) }}/ulogin;mobilebuttons=0;"></div>

The URL starts with one dash / and id = uLogin2 and only works like this, I tried for the first id uLogin , for the second uLogin2 and with one dash in both cases, it doesn’t work like that, in one place there are icons, and in the other they disappear, with two Hell, everything works.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question