mirror of
https://gitflic.ru/project/photopea-v2/photopea-v-2.git
synced 2026-05-19 16:20:37 +00:00
Update, and fixed problem where server can only run on port 8887
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -95,6 +95,7 @@
|
||||
function catClicked(nc) {
|
||||
if(nc==ccat) ccat=-1;
|
||||
else ccat=nc;
|
||||
citm=-1;
|
||||
updateView();
|
||||
}
|
||||
function setOrder(ord) {
|
||||
|
||||
@@ -10,15 +10,16 @@
|
||||
.item { position:relative; display:inline-block; margin:0 20px 20px 0; }
|
||||
.item img { height: 100%; width: 100%; object-fit: contain; }
|
||||
.cat { margin-left:30px; margin:16px; padding:2px 0px; cursor:pointer; }
|
||||
.top { margin-left: 7px; }
|
||||
.top { margin-left: 4px; }
|
||||
.clickable: { cursor:pointer; }
|
||||
.blue, .clickable:hover { border-bottom: 3px solid #00eeff; margin-bottom:-3px; }
|
||||
.blue { border-bottom: 3px solid #00eeff; margin-bottom:-3px; }
|
||||
.clickable:hover {color:#00eeff;}
|
||||
.back { display:inline-block; background-color:rgba(0,0,0,0.5); cursor:pointer; padding:6px 1em; margin: 0.2em 0 0.6em 0; font-size:1.5em; }
|
||||
.count { float:right; }
|
||||
.cat_title {font-size:1.6em; display:inline-block; margin:1.2em 0 1.2em 0;}
|
||||
.t1 {font-size:2em; margin-bottom:0.4em; }
|
||||
.t2 {font-size:1.2em;}
|
||||
#cats { padding:10px 24px; min-width:180px; color:white; }
|
||||
#cats { padding:10px 20px; min-width:180px; color:white; }
|
||||
#search { font-size:1.3em; margin-bottom: 30px; }
|
||||
#kwds { font-size:1.0em; background-color: black; border:none; color:white; padding:3px; margin-left:1em; }
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
var cc = Math.floor(rst/num); //console.log(cc);
|
||||
var isz = cc-26; //console.log(isz);
|
||||
|
||||
var tit = tpl[7];
|
||||
var tit = escapeHtml(tpl[7]);
|
||||
var lim = ~~(isz/9); //console.log(tpl);
|
||||
|
||||
if(big) lst.push("<div class=\"item flexrow\" >");
|
||||
@@ -57,11 +57,11 @@
|
||||
var hi = ((isz*0.67)+"px");
|
||||
|
||||
lst.push("<div style=\"width:"+wi+"; min-width:"+wi+"; height:"+hi+"\">"); // ict
|
||||
lst.push("<img src=\""+iurl+"\" "+(big ? "onclick=\"itemClicked("+ind+")\"" : "")+" style=\""+(big?"cursor:pointer":"")+"\" loading=\"lazy\" />");
|
||||
lst.push("<img src=\""+iurl+"\" "+(big ? "onclick=\"itemClicked("+ind+")\" title=\"Open ""+tit+""\"" : "")+" style=\""+(big?"cursor:pointer":"")+"\" loading=\"lazy\" />");
|
||||
lst.push("</div>"); // ict
|
||||
lst.push("<div class=\""+"post"+(big?"_big":"")+"\">"); // cmt
|
||||
|
||||
lst.push("<span class=\"title "+(big?"t1":"t2")+"\">" + escapeHtml(big?tit:shorten(tit,lim)) + "</span>");
|
||||
lst.push("<span class=\"title "+(big?"t1":"t2")+"\">" + (big?tit:shorten(tit,lim)) + "</span>");
|
||||
|
||||
var au = tps.authors[tpl[0]];
|
||||
lst.push("<span>"+"By "+(big?au:shorten(au,~~(lim*0.7))) + " in " + cts["c"+tpl[4]]+"</span>");
|
||||
|
||||
Reference in New Issue
Block a user