bendc/uilang

Is there a way to re initialise ui lang?

Closed this issue · 3 comments

I have a page load effect using smooth state js, and this loads the page in with Ajax (I think). This breaks UI Lang, but smooth state has a callback to initialise other script after its done its thing.

bendc commented

Closing as this isn't related to uilang per se.

Erm, actually I just want to know how to initialise ui lang within a callback, so actually it is?

Sorted this myself by just putting the code within its own function.

function uiLang(){
    var codeElements = document.getElementsByTagName("code")
    var i = codeElements.length
    var delimiter = "clicking on"
    ... etc
}

Thanks for your help dude.