JSFiddle - React, Tailwind, and code Playground
by babich_ss
JavaScript
var href = "http://vestnik/ru/",
element = document.getElementByClassName("pic")[0];
href = href.replace("http://vestnik/", "").substr(0, 2);
if(href === "ru"){
element.className += "";
}