Update layout.html

pull/342/head
midoks 2 years ago
parent 6b2c21ab47
commit 4ade42380d
  1. 15
      route/templates/default/layout.html

@ -103,6 +103,21 @@ function showAd(){
$('.panel_ad_list_mode').click(function(){
showAd();
});
function getUrlPath(){
var thisUrl = window.location.href;
var pathArr = thisUrl.split('/');
return pathArr[pathArr.length - 1];
}
var thisPath = getUrlPath();
if(thisPath != undefined){
$('#memuA'+thisPath).css('background-color','#2c3138');
} else {
$('#memuA').css('background-color','#f2f2f2');
}
</script>
<script src="/static/codemirror/lib/codemirror.js?v={{config.version}}"></script>

Loading…
Cancel
Save