2 lines
403 B
JavaScript
2 lines
403 B
JavaScript
|
/^[a-zA-Z0-9\-]+\.[a-zA-Z]+$/.test(location.hostname)&&(location.href="//www."+location.host+location.pathname),location.pathname=="/"?$.ajax({type:"get",url:"/api/disk/home?projectid=12",dataType:"json",success:function(o){o.success?window.location.href="/#":parseInt(o.code)==404&&$(document).ready(function(){$(".main").show(),$("#home").hide()})}}):$(document).ready(function(){$(".main").show()});
|