Merge branch 'develop' of http://117.50.13.128:8889/wrm1995/codepedia2 into develop

This commit is contained in:
wrmswindmill 2018-09-04 15:35:36 +08:00
commit 4226511d3b
2 changed files with 80 additions and 10 deletions

View File

@ -411,7 +411,7 @@ a:hover {
}
#right_code {
width: 80%;
width: 84%;
background-color: #313335;
overflow-y: auto;
position: relative;
@ -1604,3 +1604,40 @@ label {
margin-bottom: 8px !important;
}
.tabwidth{
width: 100%;
overflow: hidden;
height: 40px;
margin-left: 30px;
position: relative;
background-color: #2d2f31;
}
.Fontchevronleft{
color: #FFF;
position: absolute;
left: 0;
z-index: 2000;
width: 30px;
height: 40px;
text-align: center;
line-height: 40px;
background-color: #1E2022;
}
.Fontchevronright{
color: #FFF;
position: absolute;
right:0;
z-index: 2000;
width: 30px;
height: 40px;
text-align: center;
line-height: 40px;
background-color: #1E2022;
}
#MoveTAB{
animation: myfirst 10s;
-moz-animation: myfirst 10s; /* Firefox */
-webkit-animation: myfirst 10s; /* Safari 和 Chrome */
-o-animation: myfirst 10s; /* Opera */
}

View File

@ -121,16 +121,28 @@
<!-- <div class="clearfix" style="display: flex;padding-top: 42px;"> -->
<div class="clearfix" style="display: flex;height: 100%;">
<div class="tab_head clearfix" style="position: fixed;z-index: 5;">
<div class="Fontchevronleft">
<i class="fa fa-chevron-left" aria-hidden="true"></i>
</div>
<li class="fr tab_head_more">
<!-- + -->
<ul class="tab_nav_ul">
<div style="position:absolute; z-index: 10; width: 98%;">
<div class="tabwidth">
<div class="tab_head clearfix" id="MoveTAB" style="position: absolute; left:0px;">
</ul>
</li>
<li class="fr tab_head_more">
<!-- + -->
<ul class="tab_nav_ul">
</div>
</ul>
</li>
</div>
</div>
</div>
<div class="Fontchevronright">
<i class="fa fa-chevron-right" aria-hidden="true"></i>
</div>
<div class="fl middle-area">
<div class="code_Area clearfix">
@ -140,16 +152,35 @@
</div>
<div class="fl middle-right" id="right_panel">
</div>
</div>
</div>
</div>
<span id="projectName">{{ project.name }}</span>
<span id="first_tabs_jstree_id">{{ first_tabs_jstree_id }}</span>
</body>
<script>
var tempnum=0;
$(".Fontchevronleft").click(function(){
tempnum-=50;
console.log(tempnum)
var a = $("#MoveTAB").width();
console.log(a)
$("#MoveTAB").css("left",tempnum+"px");
});
$(".Fontchevronright").click(function(){
tempnum+=50;
var b = $("#MoveTAB").width();
console.log(b)
console.log(tempnum)
$("#MoveTAB").css("left",tempnum+"px");
});
$('#dynamicLeft').resizable({
handles:'e',
maxWidth:2000,
@ -163,6 +194,8 @@
$('#filelist-content').width($('#filelist-content').width()*bili);
});
$('body').bind('resize',function(){return false;})
</script>
</html>