589
правок
User (обсуждение | вклад) Нет описания правки |
User (обсуждение | вклад) Нет описания правки |
||
| Строка 48: | Строка 48: | ||
var links = document.querySelectorAll('.custom-top-menu a'); | var links = document.querySelectorAll('.custom-top-menu a'); | ||
links.forEach(function (link) { | links.forEach(function (link) { | ||
var linkhref = ' | var linkhref = location.protocol + '//' + location.host + link.getAttribute('href').trim(); | ||
console.log(currentPageHref + '=' + linkhref); | console.log(currentPageHref + '=' + linkhref); | ||