mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 07:45:41 -04:00
11 lines
643 B
JavaScript
11 lines
643 B
JavaScript
/*
|
|
@app thetvapp grabber
|
|
@author Aetherinox
|
|
@url https://github.com/Aetherinox/thetvapp-docker
|
|
https://hub.docker.com/repository/docker/aetherinox/thetvapp
|
|
|
|
Generate breadcrumbs for header
|
|
*/
|
|
|
|
function CreateBreadcrumbs(){for(var e,a,n,r=window.location.pathname.replace(/\/$/,"").split("/"),t="",c="",o=0;o<r.length;o++)c+=r[o]+"/",t+=(e=0==o?"Home":decodeURIComponent(r[o]),a=c,'<li class="breadcrumb-item'+((n=o==r.length-1)?' active aria-current="page':"")+'">'+(n?"":'<a href="'+a+'">')+e+(n?"":"</a>"));document.getElementById("breadcrumbs").innerHTML=t}
|