morepage and thumb
parent
d344fa2245
commit
ac2012df31
|
@ -252,6 +252,25 @@
|
|||
</li>
|
||||
<!--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>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -274,6 +293,12 @@
|
|||
<!--IsFolderEnd-->
|
||||
<!--ListEnd-->
|
||||
<script>
|
||||
<!--MorePageStart-->
|
||||
function nextpage(num) {
|
||||
document.getElementById('pagenum').value=num;
|
||||
document.getElementById('nextpageform').submit();
|
||||
}
|
||||
<!--MorePageEnd-->
|
||||
$ = mdui.JQ;
|
||||
|
||||
$.fn.extend({
|
||||
|
@ -325,11 +350,11 @@
|
|||
$('.mdui-fab i').text("apps");
|
||||
$('.nexmoe-item').addClass('thumb');
|
||||
$('.mdui-col-xs-12 i.mdui-icon').each(function(){
|
||||
if($(this).text() == "image" || $(this).text() == "ondemand_video"){
|
||||
var href = $(this).parent().parent().attr('href');
|
||||
var thumb =(href.indexOf('?') == -1)?'?t=220':'&t=220';
|
||||
if($(this).text() == "image"){
|
||||
var thumbnails = $(this).parent().parent().attr('href');
|
||||
thumbnails = thumbnails.substr(0, thumbnails.length-8)+'?thumbnails&location';
|
||||
$(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");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue