Guest User

Untitled

a guest
Oct 21st, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. <script type="text/javascript">(function() { if (window.pluso)if (typeof window.pluso.start == "function") return; if (window.ifpluso==undefined) { window.ifpluso = 1; var d = document, s = d.createElement('script'), g = 'getElementsByTagName'; s.type = 'text/javascript'; s.charset='UTF-8'; s.async = true; s.src = ('https:' == window.location.protocol ? 'https' : 'http') + '://share.pluso.ru/pluso-like.js'; var h=d[g]('body')[0]; h.appendChild(s); }})();</script><div class="pluso" data-background="transparent" data-options="small,square,line,horizontal,nocounter,theme=08" data-services="vkontakte,odnoklassniki,facebook,twitter,google"></div>'
  2.  
  3. <script type="text/javascript">(function() { if (window.pluso)if (typeof window.pluso.start == "function") return; if (window.ifpluso==undefined) { window.ifpluso = 1; var d = document, s = d.createElement('script'), g = 'getElementsByTagName'; s.type = 'text/javascript'; s.charset='UTF-8'; s.async = true; s.src = ('https:' == window.location.protocol ? 'https' : 'http') + '://share.pluso.ru/pluso-like.js'; var h=d[g]('body')[0]; h.appendChild(s); }})();</script><div class="pluso" data-background="transparent" data-options="small,square,line,horizontal,nocounter,theme=08" data-services="facebook,linkedin,twitter,google"></div>
  4.  
  5. // $(document).ready(function()
  6.  
  7. {
  8. var str = window.location.href;
  9. if (str.indexOf('/ru/') != -1) {
  10.  
  11. var russ = document.querySelector("#rus");
  12. russ.setAttribute('style','visibility: visible');
  13. };
  14.  
  15. if (str.indexOf('/en/') != -1) {
  16.  
  17. var enn = document.querySelector("#en");
  18. enn.setAttribute('style','visibility: visible');
  19. };
  20.  
  21. if (str.indexOf('/es/') != -1) {
  22.  
  23. var ess = document.querySelector("#es");
  24. ess.setAttribute('style','visibility: visible');
  25. };
  26.  
  27. if (str.indexOf('/ru/') != -1) {
  28.  
  29. // $("#rus").css('visibility', 'visible');
  30. // $("#en").css(['visibility', "hidden"]);
  31. // $("#es").css(['visibility', "hidden"]);
  32. // console.log(333);
  33. //
  34. // if (str.indexOf('/en/') != -1) {
  35. //
  36. // $("#rus").css('display', "hidden");
  37. // $("#en").css('display', "visible");
  38. // $("#es").css('display', "hidden");
  39. //
  40. // if (str.indexOf('/es/') != -1) {
  41. //
  42. // $("#rus").css('display', "hidden");
  43. // $("#en").css('display', "hidden");
  44. // $("#es").css('display', "visible");
  45. // };
  46. // }
Add Comment
Please, Sign In to add comment