前端
This commit is contained in:
parent
18f65da830
commit
7d308d6446
@ -310,7 +310,20 @@ if ($act == 'newevent') {
|
||||
</div>
|
||||
<!-- 筛选: -->
|
||||
<!-- <a href="./?app=edit" class='btn btn-minier btn-pink'>编辑游戏</a>-->
|
||||
<div class='xsqb' id="xsqb" onclick='gamesbtndis()'>展开</div>
|
||||
<div class='xsqb-box' id="left_box">
|
||||
<button value='' onclick='onlyShowGame(this)' class='btn btn-minier btn-info left'>显示全部</button>
|
||||
<div class="left_box">
|
||||
<button class='btn btn-minier left' value='风暴奇兵' onclick='onlyShowGame(this)'>风暴奇兵</button>
|
||||
<button class='btn btn-minier left' value='歌手cocos' onclick='onlyShowGame(this)'>歌手cocos</button>
|
||||
<button class='btn btn-minier left' value='中古战锤' onclick='onlyShowGame(this)'>中古战锤</button>
|
||||
<button class='btn btn-minier left' value='妖灵战姬' onclick='onlyShowGame(this)'>妖灵战姬</button>
|
||||
<button class='btn btn-minier left' value='生化纪元' onclick='onlyShowGame(this)'>生化纪元</button>
|
||||
<button class='btn btn-minier left' value='诙谐三国' onclick='onlyShowGame(this)'>诙谐三国</button>
|
||||
<button class='btn btn-minier left' value='像素项目' onclick='onlyShowGame(this)'>像素项目</button>
|
||||
<div class='xsqb' id="xsqb" onclick='gamesbtndis()'>展开</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="gamesbtn" style="padding:0 11px 15px 11px;">
|
||||
<?php if ($canEdit) { ?><a href="./?app=edit" class='btn btn-minier btn-pink'>编辑游戏</a><? } ?>
|
||||
<button value='' onclick='onlyShowGame(this)' class='btn btn-minier btn-info'>显示全部</button>
|
||||
@ -318,7 +331,7 @@ if ($act == 'newevent') {
|
||||
foreach ($GAMES as $g) {
|
||||
echo "<button value='{$g}' onclick='onlyShowGame(this)' class='btn btn-minier'>{$g}</button> ";
|
||||
} ?>
|
||||
|
||||
<button class='btn btn-minier shouhui' id="xsqbsh" onclick='gamesbtndis()'>收回</button>
|
||||
<div class="space-6"></div>
|
||||
|
||||
</div>
|
||||
@ -328,6 +341,24 @@ if ($act == 'newevent') {
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
}
|
||||
.shouhui {
|
||||
background-color:#0078f7 !important;
|
||||
color:#fff !important;
|
||||
}
|
||||
.xsqb-box {
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
align-items: center;
|
||||
}
|
||||
.left {
|
||||
margin-left: 5px;
|
||||
margin-top: 0px !important;
|
||||
}
|
||||
.left_box {
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
align-items: center;
|
||||
}
|
||||
.xsqb {
|
||||
width: 60px;
|
||||
background-color:#0078f7 !important;
|
||||
@ -951,13 +982,15 @@ if ($act == 'newevent') {
|
||||
|
||||
function gamesbtndis(){
|
||||
var type = $("#gamesbtn").css('display');
|
||||
console.log($("#xsqb font font").html());
|
||||
// console.log($("#xsqb font font").html());
|
||||
if(type == 'none'){
|
||||
$("#gamesbtn").show();
|
||||
$("#xsqb font font").html('收回');
|
||||
$("#left_box").hide();
|
||||
}else {
|
||||
$("#gamesbtn").hide();
|
||||
$("#xsqb font font").html('展开');
|
||||
$("#xsqb font font").html('显示全部');
|
||||
$("#left_box").show();
|
||||
}
|
||||
}
|
||||
|
||||
@ -1226,6 +1259,7 @@ if ($act == 'newevent') {
|
||||
}
|
||||
|
||||
function onlyShowGame(o) {
|
||||
console.log(o);
|
||||
if (o.value != '') {
|
||||
$('#datarepair').hide();
|
||||
$('.xian3').css('background-color','#fff');
|
||||
|
Loading…
Reference in New Issue
Block a user