first commit
This commit is contained in:
16
templates/instytut_dendrologii_/js/linkshorthome.js
Normal file
16
templates/instytut_dendrologii_/js/linkshorthome.js
Normal file
@@ -0,0 +1,16 @@
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
shortlink1();
|
||||
})
|
||||
|
||||
function shortlink1(){
|
||||
console.log('dejdfff');
|
||||
|
||||
document.querySelectorAll('.green-buttons .readmore a').forEach(links => {
|
||||
|
||||
links.href=links.href.replace(links.href.substring(0,links.href.indexOf('?')),'viewart');
|
||||
})
|
||||
document.querySelectorAll('.green-buttons1 .readmore a').forEach(links => {
|
||||
|
||||
links.href=links.href.replace(links.href.substring(0,links.href.indexOf('?')),'viewart');
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user