增加数据量
This commit is contained in:
parent
64c1750c20
commit
7b0ed143d4
|
|
@ -61,7 +61,7 @@
|
|||
</head>
|
||||
|
||||
<body ng-app="bookmarkApp">
|
||||
<div class="ui container" id="js-container" style="position: absolute; left: 86">
|
||||
<div class="ui container" id="js-container" style="position: absolute; left: 86;width: 70%;">
|
||||
<div class="ui error hidden message js-domain" style="margin-bottom: 3px">
|
||||
<div class="header">域名更换提示!</div>
|
||||
<ul class="list">
|
||||
|
|
@ -124,5 +124,10 @@
|
|||
<script src="scripts/externe/md5.js"></script>
|
||||
<script src="scripts/externe/pnglib.js"></script>
|
||||
<script src="scripts/externe/identicon.js"></script>
|
||||
<style>
|
||||
.ui.container {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ app.controller('tagsCtr', ['$scope', '$filter', '$state', '$window', '$statePara
|
|||
$scope.bookmarks = [];
|
||||
$scope.totalPages = 0;
|
||||
$scope.currentPage = 0;
|
||||
$scope.pageSize = 75;
|
||||
$scope.inputPage = '';
|
||||
$scope.currentTagId = ($stateParams && $stateParams.tagId) || (-1);
|
||||
$scope.editMode = false;
|
||||
|
|
@ -47,7 +48,7 @@ app.controller('tagsCtr', ['$scope', '$filter', '$state', '$window', '$statePara
|
|||
showType && ($scope.showType = showType);
|
||||
$scope.loading = true;
|
||||
|
||||
let pageSize = ($scope.showMode == 'item') ? 65 : 20;
|
||||
let pageSize = ($scope.showMode == 'item') ? $scope.pageSize : 20;
|
||||
|
||||
for (let tag of $scope.tags) {
|
||||
tag.bookmarkClicked = (tag.id == $scope.currentTagId);
|
||||
|
|
|
|||
|
|
@ -100,8 +100,8 @@
|
|||
<div class="ui five column grid">
|
||||
<div ng-repeat="bookmark in bookmarks" class="column js-costomTag-item" ng-class="{bookmarkNormalHover:bookmarkNormalHover, bookmark:(!bookmarkNormalHover)}" ng-mouseover="bookmarkNormalHover=true; setHoverBookmark(bookmark)" ng-mouseleave="bookmarkNormalHover=false; setHoverBookmark(null)" ng-click="jumpToUrl(bookmark.url, bookmark.id)" title="{{ bookmark.title }}" id="{{bookmark.id}}">
|
||||
<img class="ui ui middle aligned tiny image bookmarkInfo" ng-src="https://favicon.lucq.fun/?url={{bookmark.url}}" err-src="./images/default.ico" style="width: 16px; height: 16px" ng-click="detailBookmark(bookmark);$event.stopPropagation()" />
|
||||
<span ng-if="(currentPage==0) && ($index==0 || $index==20 || $index==40)" style="font-weight: bold">{{bookmark.title}}</span>
|
||||
<span ng-if="(currentPage!=0) || ($index!=0 && $index!=20 && $index!=40)">{{bookmark.title}}</span>
|
||||
<span ng-if="(currentPage==0) && ($index==0 || $index==pageSize*2/5 || $index==pageSize*4/5)" style="font-weight: bold">{{bookmark.title}}</span>
|
||||
<span ng-if="(currentPage!=0) || ($index!=0 && $index!=pageSize*2/5 && $index!=pageSize*4/5)">{{bookmark.title}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui divider"></div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue