morepage and thumb

pull/72/head
qkqpttgf 2020-05-24 18:16:46 +08:00 committed by GitHub
parent d344fa2245
commit ac2012df31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 29 additions and 4 deletions

View File

@ -252,6 +252,25 @@
</li> </li>
<!--FileListEnd--> <!--FileListEnd-->
<!--MorePageStart-->
<form action="" method="POST" id="nextpageform">
<input type="hidden" id="pagenum" name="pagenum" value="">
<li class="mdui-list-item th">
<div class="mdui-col-sm-6 mdui-left mdui-text-left">
<!--PrePageStart-->
<a onclick="nextpage(<!--PrePageNum-->);" class="mdui-btn mdui-btn-raised"><!--constStr@PrePage--></a>
<!--PrePageEnd-->
<!--NextPageStart-->
<a onclick="nextpage(<!--NextPageNum-->);" class="mdui-btn mdui-btn-raised"><!--constStr@NextPage--></a>
<!--NextPageEnd-->
</div>
<div class="mdui-col-sm-6 mdui-right mdui-text-right">
<div class="mdui-right mdui-text-right"><span class="mdui-chip-title">Page: <!--MorePageListStart--><!--MorePageListEnd--><!--MorePageListNowStart--><!--PageNum--><!--MorePageListNowEnd-->/<!--MaxPageNum--></span></div>
</div>
</li>
</form>
<!--MorePageEnd-->
</ul> </ul>
</div> </div>
</div> </div>
@ -274,6 +293,12 @@
<!--IsFolderEnd--> <!--IsFolderEnd-->
<!--ListEnd--> <!--ListEnd-->
<script> <script>
<!--MorePageStart-->
function nextpage(num) {
document.getElementById('pagenum').value=num;
document.getElementById('nextpageform').submit();
}
<!--MorePageEnd-->
$ = mdui.JQ; $ = mdui.JQ;
$.fn.extend({ $.fn.extend({
@ -325,11 +350,11 @@
$('.mdui-fab i').text("apps"); $('.mdui-fab i').text("apps");
$('.nexmoe-item').addClass('thumb'); $('.nexmoe-item').addClass('thumb');
$('.mdui-col-xs-12 i.mdui-icon').each(function(){ $('.mdui-col-xs-12 i.mdui-icon').each(function(){
if($(this).text() == "image" || $(this).text() == "ondemand_video"){ if($(this).text() == "image"){
var href = $(this).parent().parent().attr('href'); var thumbnails = $(this).parent().parent().attr('href');
var thumb =(href.indexOf('?') == -1)?'?t=220':'&t=220'; thumbnails = thumbnails.substr(0, thumbnails.length-8)+'?thumbnails&location';
$(this).hide(); $(this).hide();
$(this).parent().parent().parent().css("background","url("+href+thumb+") no-repeat center top"); $(this).parent().parent().parent().css("background","url("+thumbnails+") no-repeat center top");
} }
}); });
} }