Spaces:
Runtime error
Runtime error
<html lang="en"> | |
<head> | |
<script src="/static/tailwind.js"></script> | |
<script src="/static/flowbite.js" charset="utf-8"></script> | |
<link rel="stylesheet" href="/static/style.css" data-precedence="high" /> | |
<title>PicxAI</title> | |
<meta name="theme-color" content="#27272a" media="(prefers-color-scheme: light)" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> | |
<link rel="icon" href="/static/logo.png" sizes="any" type="image/png"> | |
<meta property="og:site_name" content="PicxAI" /> | |
<meta property="og:image" content="/static/logo.svg" /> | |
<meta property="og:image:type" content="image/png" /> | |
<meta property="og:image:alt" content="PicxAI" /> | |
<meta property="og:title" content="PicxAI" /> | |
<meta property="og:url" content="https://PicxAI.art" /> | |
<meta property="og:description" content="The Stable Diffusion search engine" /> | |
<meta name="description" content="The Stable Diffusion search engine" /> | |
<meta property="twitter:card" content="summary_large_image" /> | |
<meta property="twitter:url" content="https://PicxAI.art" /> | |
<meta property="twitter:title" content="PicxAI" /> | |
<meta property="twitter:description" content="The Stable Diffusion search engine" /> | |
<meta property="twitter:image" content="/static/logo.svg" /> | |
</head> | |
<body> | |
<div class="fixed bottom-0 sm:top-0 z-50 flex flex-row items-center justify-between bg-slate-900 backdrop-blur bg-opacity-80 border-t border-t-slate-700 sm:border-t-0 sm:border-b border-opacity-50 sm:border-b-slate-700 text-sm select-none" style="height:56px;width:100vw"> | |
<div class="hidden sm:flex items-center cursor-pointer px-4 pl-6 left-0 h-full w-32 "> | |
<svg width="320" height="157.30338319782783" viewBox="0 0 204.042 100.315"> | |
<defs id="SvgjsDefs4055"> | |
<linearGradient> | |
<stop stop-color="#ffffff" offset="0"/> | |
<stop stop-color="#ffffff" offset="1"/> | |
</linearGradient> | |
<linearGradient id="SvgjsLinearGradient4063"> | |
<stop stop-color="#ffffff" offset="0"/> | |
<stop stop-color="#ffffff" offset="1"/> | |
</linearGradient> | |
</defs> | |
<g featurekey="nameFeature-0" transform="matrix(3.211992, 0, 0, 3.211992, 2.876412, -37.487316)" fill="url(#SvgjsLinearGradient4063)"> | |
<path d="M8.32 28.8 c0.13332 0.98668 0.27344 2.0268 0.42012 3.1202 s0.27336 2.1466 0.38004 3.16 s0.17336 1.9333 0.20004 2.76 s0 1.46 -0.08 1.9 s-0.24 0.62668 -0.48 0.56 s-0.58668 -0.48668 -1.04 -1.26 c0 -1.84 -0.08668 -3.58 -0.26 -5.22 s-0.39332 -3.2867 -0.66 -4.94 c-0.61332 0 -1.2133 -0.1 -1.8 -0.3 s-1.12 -0.42668 -1.6 -0.68 s-0.86 -0.52 -1.14 -0.8 s-0.42 -0.51332 -0.42 -0.7 c0.18668 0.05332 0.48 0.12 0.88 0.2 s0.82 0.15332 1.26 0.22 s0.88 0.12 1.32 0.16 s0.79332 0.06 1.06 0.06 c-0.16 -1.2 -0.31332 -2.28 -0.46 -3.24 s-0.29336 -1.8933 -0.44004 -2.8 s-0.29336 -1.8334 -0.44004 -2.78 s-0.28668 -2.0067 -0.42 -3.18 c-0.82668 -0.34668 -1.66 -0.66668 -2.5 -0.96 s-1.6467 -0.62664 -2.42 -0.99996 c-0.05332 -0.16 -0.09332 -0.27332 -0.12 -0.34 s-0.033359 -0.12668 -0.020039 -0.18 s0.05332 -0.11332 0.12 -0.18 s0.18 -0.16668 0.34 -0.3 c0.21332 -0.05332 0.71332 0.033359 1.5 0.26004 s1.72 0.54668 2.8 0.96 s2.24 0.90664 3.48 1.48 s2.44 1.16 3.6 1.76 s2.2 1.2 3.12 1.8 s1.5933 1.1533 2.02 1.66 c0.4 0.32 0.67332 0.69332 0.82 1.12 s0.18668 0.86668 0.12 1.32 s-0.23336 0.90664 -0.50004 1.36 s-0.6 0.88 -1 1.28 c-0.4 0.37332 -0.87332 0.76664 -1.42 1.18 s-1.14 0.8 -1.78 1.16 s-1.3333 0.66668 -2.08 0.92 s-1.5334 0.40664 -2.36 0.45996 z M7.8 26.96 c1.2533 0 2.3668 -0.13336 3.3401 -0.40004 s1.7933 -0.64 2.46 -1.12 s1.1534 -1.04 1.46 -1.68 s0.40668 -1.3067 0.3 -2 c-0.05332 -0.53332 -0.41332 -1.0733 -1.08 -1.62 s-1.4734 -1.08 -2.42 -1.6 s-1.9467 -1.0267 -3 -1.52 s-1.9933 -0.96664 -2.82 -1.42 c0.05332 0.56 0.12664 1.1667 0.21996 1.82 s0.20664 1.4133 0.33996 2.28 s0.3 1.8867 0.5 3.06 s0.43332 2.5733 0.7 4.2 z M19.759999999999998 22.4 c0.26668 -0.05332 0.42664 0.10672 0.47996 0.48004 s0 0.65332 -0.16 0.84 c-0.29332 0.24 -0.48 0.44668 -0.56 0.62 s-0.26668 0.28664 -0.56 0.33996 c-0.16 -0.02668 -0.3 -0.033359 -0.42 -0.020039 s-0.22 -0.20668 -0.3 -0.66 c0.10668 -0.29332 0.27336 -0.58664 0.50004 -0.87996 s0.56668 -0.53332 1.02 -0.72 z M19.88 27.6 c0.13332 1.28 0.22676 2.6867 0.28008 4.22 s0.14664 3.14 0.27996 4.82 c0.10668 0.85332 0.21336 1.52 0.32004 2 s0.18668 0.93332 0.24 1.36 c-0.42668 0.08 -0.76 0.07332 -1 -0.02 s-0.46668 -0.20664 -0.68 -0.33996 c-0.05332 -0.42668 -0.11332 -1.1334 -0.18 -2.12 s-0.13336 -2.06 -0.20004 -3.22 s-0.13336 -2.2867 -0.20004 -3.38 s-0.12668 -1.96 -0.18 -2.6 c0.10668 -0.05332 0.19336 -0.13332 0.26004 -0.24 s0.14 -0.2 0.22 -0.28 s0.18668 -0.14668 0.32 -0.2 s0.30664 -0.05332 0.51996 0 z M29.2 28.28 c0.02668 0.16 -0.099924 0.31992 -0.37992 0.47992 s-0.63332 0.39332 -1.06 0.7 s-0.89336 0.71336 -1.4 1.22 s-0.96 1.1734 -1.36 2 c-0.42668 0.90668 -0.73336 1.6934 -0.92004 2.36 s-0.14668 1.4534 0.12 2.36 c0.08 0.18668 0.19332 0.35336 0.34 0.50004 s0.36668 0.23336 0.66 0.26004 c0.58668 -0.10668 1.1067 -0.25336 1.56 -0.44004 s0.88 -0.41336 1.28 -0.68004 s0.78668 -0.55336 1.16 -0.86004 s0.76 -0.62 1.16 -0.94 c0.58668 -0.56 1.0734 -1.0467 1.46 -1.46 s0.7 -0.76 0.94 -1.04 s0.44668 -0.48668 0.62 -0.62 s0.35332 -0.17332 0.54 -0.12 c-0.10668 0.24 -0.40668 0.74668 -0.9 1.52 s-1.1333 1.5933 -1.92 2.46 s-1.7 1.68 -2.74 2.44 s-2.16 1.2333 -3.36 1.42 c-0.48 -0.02668 -0.87332 -0.08 -1.18 -0.16 s-0.59336 -0.4 -0.86004 -0.96 c-0.32 -0.66668 -0.44 -1.4734 -0.36 -2.42 s0.28 -1.8867 0.6 -2.82 s0.72 -1.8 1.2 -2.6 s0.94668 -1.3867 1.4 -1.76 c0.64 -0.45332 1.2333 -0.73332 1.78 -0.84 s1.0867 -0.10668 1.62 0 z M32.199999999999996 25.759999999999998 c0.34668 0.45332 0.67324 0.89316 0.97992 1.3198 s0.61336 0.86668 0.92004 1.32 s0.63336 0.95332 0.98004 1.5 s0.74668 1.18 1.2 1.9 c0.29332 -0.77332 0.54664 -1.4933 0.75996 -2.16 s0.37332 -1.4267 0.48 -2.28 c0.05332 -0.21332 0.20664 -0.26664 0.45996 -0.15996 s0.46 0.2 0.62 0.28 c0.08 0.18668 0.09332 0.45336 0.04 0.80004 s-0.14 0.70668 -0.26 1.08 s-0.24668 0.72664 -0.38 1.06 s-0.22664 0.59332 -0.27996 0.78 c-0.05332 0.13332 -0.11332 0.28664 -0.18 0.45996 s-0.12668 0.35332 -0.18 0.54 l-0.24 0.64 c0.61332 1.4933 1.2 2.7933 1.76 3.9 s0.93332 1.94 1.12 2.5 c0 0.18668 -0.15332 0.22 -0.46 0.1 s-0.58 -0.28668 -0.82 -0.5 c-0.32 -0.66668 -0.66668 -1.3067 -1.04 -1.92 s-0.76 -1.3066 -1.16 -2.08 c-0.13332 0.37332 -0.3 0.80664 -0.5 1.3 s-0.40668 1 -0.62 1.52 s-0.42664 1.0333 -0.63996 1.54 s-0.4 0.97336 -0.56 1.4 c-0.21332 0.26668 -0.39332 0.43336 -0.54 0.50004 s-0.40668 0.033359 -0.78 -0.09996 c0.48 -1.1733 0.86 -2.1133 1.14 -2.82 s0.51332 -1.3067 0.7 -1.8 s0.34668 -0.96664 0.48 -1.42 s0.29332 -1.0266 0.48 -1.72 c-0.29332 -0.4 -0.62 -0.9 -0.98 -1.5 l-1.08 -1.8 l-1.04 -1.7 l-0.86 -1.16 c-0.18668 -0.26668 -0.24668 -0.57336 -0.18 -0.92004 s0.28668 -0.48 0.66 -0.4 z M45.08 32.4 c-0.37332 0 -0.79356 0.019609 -1.2602 0.059608 s-0.91336 0.06 -1.34 0.06 s-0.80668 -0.03332 -1.14 -0.1 s-0.54 -0.20668 -0.62 -0.42 c-0.16 -0.13332 -0.16 -0.28664 0 -0.45996 s0.30668 -0.32664 0.44 -0.45996 c0.50668 -0.05332 0.94668 -0.09332 1.32 -0.12 s0.72 -0.06 1.04 -0.1 s0.62668 -0.08 0.92 -0.12 s0.6 -0.08668 0.92 -0.14 c0.4 -1.4933 0.77332 -2.92 1.12 -4.28 s0.68 -2.7067 1 -4.04 s0.63332 -2.68 0.94 -4.04 s0.63336 -2.7867 0.98004 -4.28 c0.24 -0.34668 0.44 -0.52668 0.6 -0.54 s0.42668 -0.0067688 0.8 0.020039 c0.16 0.85332 0.28 1.5733 0.36 2.16 s0.15332 1.18 0.22 1.78 s0.14668 1.2667 0.24 2 s0.22 1.66 0.38 2.78 c0.10668 1.1467 0.25336 2.2734 0.44004 3.38 s0.34668 2.2467 0.48 3.42 c0.69332 -0.10668 1.36 -0.22 2 -0.34 s1.2067 -0.22668 1.7 -0.32 s0.89332 -0.16664 1.2 -0.21996 s0.46 -0.06664 0.46 -0.039961 c0.08 0.24 -0.04668 0.47332 -0.38 0.7 s-0.76664 0.45336 -1.3 0.68004 s-1.1066 0.44 -1.72 0.64 s-1.16 0.38 -1.64 0.54 c0.05332 0.50668 0.14664 1.14 0.27996 1.9 s0.27332 1.5667 0.42 2.42 s0.3 1.7133 0.46 2.58 s0.3 1.6534 0.42 2.36 s0.20668 1.2934 0.26 1.76 s0.05332 0.72668 0 0.78 c-0.45332 0.05332 -0.78 0.0067688 -0.98 -0.14004 s-0.44668 -0.27336 -0.74 -0.38004 c-0.21332 -1.76 -0.48 -3.5533 -0.8 -5.38 s-0.57332 -3.6467 -0.76 -5.46 c-0.61332 0.13332 -1.3933 0.31332 -2.34 0.54 s-1.9267 0.42 -2.94 0.58 c-0.16 0.58668 -0.30668 1.24 -0.44 1.96 s-0.26664 1.4067 -0.39996 2.06 s-0.24664 1.24 -0.33996 1.76 s-0.18 0.86 -0.26 1.02 c-0.13332 0.13332 -0.36664 0.22 -0.69996 0.26 s-0.60664 -0.04668 -0.81996 -0.26 c0 -0.16 0.06 -0.52668 0.18 -1.1 s0.26 -1.2066 0.42 -1.9 s0.32668 -1.3666 0.5 -2.02 s0.31332 -1.1666 0.42 -1.54 z M46.9996 30.4396 c0.4 -0.08 0.84004 -0.16641 1.32 -0.25973 s0.92668 -0.19332 1.34 -0.3 s0.77332 -0.19336 1.08 -0.26004 s0.48668 -0.11336 0.54 -0.14004 c-0.05332 -0.58668 -0.1 -1.0734 -0.14 -1.46 s-0.08 -0.79336 -0.12 -1.22 s-0.08668 -0.92668 -0.14 -1.5 s-0.13332 -1.3533 -0.24 -2.34 c-0.21332 -1.68 -0.36664 -2.9333 -0.45996 -3.76 s-0.18 -1.0934 -0.26 -0.80004 c-0.37332 1.44 -0.7 2.6867 -0.98 3.74 s-0.53332 2.0266 -0.76 2.92 s-0.43336 1.7666 -0.62004 2.62 s-0.37336 1.7733 -0.56004 2.76 z M60.56 22.4 c0.26668 -0.05332 0.42664 0.10672 0.47996 0.48004 s0 0.65332 -0.16 0.84 c-0.29332 0.24 -0.48 0.44668 -0.56 0.62 s-0.26668 0.28664 -0.56 0.33996 c-0.16 -0.02668 -0.3 -0.033359 -0.42 -0.020039 s-0.22 -0.20668 -0.3 -0.66 c0.10668 -0.29332 0.27336 -0.58664 0.50004 -0.87996 s0.56668 -0.53332 1.02 -0.72 z M60.68 27.6 c0.13332 1.28 0.22676 2.6867 0.28008 4.22 s0.14664 3.14 0.27996 4.82 c0.10668 0.85332 0.21336 1.52 0.32004 2 s0.18668 0.93332 0.24 1.36 c-0.42668 0.08 -0.76 0.07332 -1 -0.02 s-0.46668 -0.20664 -0.68 -0.33996 c-0.05332 -0.42668 -0.11332 -1.1334 -0.18 -2.12 s-0.13336 -2.06 -0.20004 -3.22 s-0.13336 -2.2867 -0.20004 -3.38 s-0.12668 -1.96 -0.18 -2.6 c0.10668 -0.05332 0.19336 -0.13332 0.26004 -0.24 s0.14 -0.2 0.22 -0.28 s0.18668 -0.14668 0.32 -0.2 s0.30664 -0.05332 0.51996 0 z"/> | |
</g> | |
</svg> | |
</div> | |
<div class="flex relative items-center h-full -mt-1 w-full sm:w-auto"> | |
<div style="height:32px;top:15px;display:absolute" class="absolute bg-slate-700 rounded"></div> | |
<div class="flex flex-row items-center cursor-pointer h-full py-1.5 pb-0 px-2 justify-center transition-all flex-1" style="width:80px;z-index:2;opacity:1"> | |
<div class="relative sm:flex justify-center hidden w-full"> | |
<div class="absolute w-full" style="border-bottom:2.5px solid #6366f1;bottom:-17px"></div> | |
Home | |
</div> | |
<div class="relative flex items-center justify-center text-xl sm:hidden w-full"> | |
<div class="absolute w-full" style="border-bottom:2.5px solid #6366f1;bottom:-17px"></div> | |
<svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"> | |
<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path> | |
<polyline points="9 22 9 12 15 12 15 22"></polyline> | |
</svg> | |
</div> | |
</div> | |
<div onclick="javascript:window.location.href = '/diffuser'" class="flex flex-row items-center cursor-pointer h-full py-1.5 pb-0 px-2 justify-center transition-all flex-1" style="width:80px;z-index:2;opacity:0.5"> | |
<div class="relative sm:flex justify-center hidden w-full"> | |
<div class="absolute w-full" style="border-bottom:2.5px solid transparent;bottom:-17px"></div> | |
Generate | |
</div> | |
<div class="relative flex items-center justify-center text-xl sm:hidden w-full"> | |
<div class="absolute w-full" style="border-bottom:2.5px solid transparent;bottom:-17px"></div> | |
<svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"> | |
<circle cx="12" cy="12" r="10"></circle> | |
<line x1="14.31" y1="8" x2="20.05" y2="17.94"></line> | |
<line x1="9.69" y1="8" x2="21.17" y2="8"></line> | |
<line x1="7.38" y1="12" x2="13.12" y2="2.06"></line> | |
<line x1="9.69" y1="16" x2="3.95" y2="6.06"></line> | |
<line x1="14.31" y1="16" x2="2.83" y2="16"></line> | |
<line x1="16.62" y1="12" x2="10.88" y2="21.94"></line> | |
</svg> | |
</div> | |
</div> | |
<div class="flex flex-row items-center cursor-pointer h-full py-1.5 pb-0 px-2 justify-center transition-all flex-1" style="width:80px;z-index:2;opacity:0.5"> | |
<div class="relative sm:flex justify-center hidden w-full"> | |
<div class="absolute w-full" style="border-bottom:2.5px solid transparent;bottom:-17px"></div> | |
History | |
</div> | |
<div class="relative flex items-center justify-center text-xl sm:hidden w-full"> | |
<div class="absolute w-full" style="border-bottom:2.5px solid transparent;bottom:-17px"></div> | |
<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"> | |
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.507 12.324a7 7 0 0 0 .065-8.56A7 7 0 0 0 2 4.393V2H1v3.5l.5.5H5V5H2.811a6.008 6.008 0 1 1-.135 5.77l-.887.462a7 7 0 0 0 11.718 1.092zm-3.361-.97l.708-.707L8 7.792V4H7v4l.146.354 3 3z"></path> | |
</svg> | |
</div> | |
</div> | |
<div class="flex flex-row items-center cursor-pointer h-full py-1.5 pb-0 px-2 justify-center transition-all flex-1" style="width:80px;z-index:2;opacity:0.5"> | |
<div class="relative sm:flex justify-center hidden w-full"> | |
<div class="absolute w-full" style="border-bottom:2.5px solid transparent;bottom:-17px"></div> | |
Likes | |
</div> | |
<div class="relative flex items-center justify-center text-xl sm:hidden w-full"> | |
<div class="absolute w-full" style="border-bottom:2.5px solid transparent;bottom:-17px"></div> | |
<svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"> | |
<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path> | |
</svg> | |
</div> | |
</div> | |
</div> | |
<div class="hidden w-32 h-full sm:flex items-center justify-end mr-4"></div> | |
</div> | |
<div class="sm:mb-0 sm:mt-5"> | |
<div class="w-screen h-fit overflow-x-hidden flex flex-col bg-slate-800 text-gray-100 text-sm"> | |
<div class="flex flex-col items-center py-4 mt-5 sm:mt-14"> | |
<a href="/"> | |
<svg width="320" height="157.30338319782783" viewBox="0 0 204.042 100.315"> | |
<g featurekey="nameFeature-0" transform="matrix(3.211992, 0, 0, 3.211992, 2.876412, -37.487316)" fill="white"> | |
<path d="M8.32 28.8 c0.13332 0.98668 0.27344 2.0268 0.42012 3.1202 s0.27336 2.1466 0.38004 3.16 s0.17336 1.9333 0.20004 2.76 s0 1.46 -0.08 1.9 s-0.24 0.62668 -0.48 0.56 s-0.58668 -0.48668 -1.04 -1.26 c0 -1.84 -0.08668 -3.58 -0.26 -5.22 s-0.39332 -3.2867 -0.66 -4.94 c-0.61332 0 -1.2133 -0.1 -1.8 -0.3 s-1.12 -0.42668 -1.6 -0.68 s-0.86 -0.52 -1.14 -0.8 s-0.42 -0.51332 -0.42 -0.7 c0.18668 0.05332 0.48 0.12 0.88 0.2 s0.82 0.15332 1.26 0.22 s0.88 0.12 1.32 0.16 s0.79332 0.06 1.06 0.06 c-0.16 -1.2 -0.31332 -2.28 -0.46 -3.24 s-0.29336 -1.8933 -0.44004 -2.8 s-0.29336 -1.8334 -0.44004 -2.78 s-0.28668 -2.0067 -0.42 -3.18 c-0.82668 -0.34668 -1.66 -0.66668 -2.5 -0.96 s-1.6467 -0.62664 -2.42 -0.99996 c-0.05332 -0.16 -0.09332 -0.27332 -0.12 -0.34 s-0.033359 -0.12668 -0.020039 -0.18 s0.05332 -0.11332 0.12 -0.18 s0.18 -0.16668 0.34 -0.3 c0.21332 -0.05332 0.71332 0.033359 1.5 0.26004 s1.72 0.54668 2.8 0.96 s2.24 0.90664 3.48 1.48 s2.44 1.16 3.6 1.76 s2.2 1.2 3.12 1.8 s1.5933 1.1533 2.02 1.66 c0.4 0.32 0.67332 0.69332 0.82 1.12 s0.18668 0.86668 0.12 1.32 s-0.23336 0.90664 -0.50004 1.36 s-0.6 0.88 -1 1.28 c-0.4 0.37332 -0.87332 0.76664 -1.42 1.18 s-1.14 0.8 -1.78 1.16 s-1.3333 0.66668 -2.08 0.92 s-1.5334 0.40664 -2.36 0.45996 z M7.8 26.96 c1.2533 0 2.3668 -0.13336 3.3401 -0.40004 s1.7933 -0.64 2.46 -1.12 s1.1534 -1.04 1.46 -1.68 s0.40668 -1.3067 0.3 -2 c-0.05332 -0.53332 -0.41332 -1.0733 -1.08 -1.62 s-1.4734 -1.08 -2.42 -1.6 s-1.9467 -1.0267 -3 -1.52 s-1.9933 -0.96664 -2.82 -1.42 c0.05332 0.56 0.12664 1.1667 0.21996 1.82 s0.20664 1.4133 0.33996 2.28 s0.3 1.8867 0.5 3.06 s0.43332 2.5733 0.7 4.2 z M19.759999999999998 22.4 c0.26668 -0.05332 0.42664 0.10672 0.47996 0.48004 s0 0.65332 -0.16 0.84 c-0.29332 0.24 -0.48 0.44668 -0.56 0.62 s-0.26668 0.28664 -0.56 0.33996 c-0.16 -0.02668 -0.3 -0.033359 -0.42 -0.020039 s-0.22 -0.20668 -0.3 -0.66 c0.10668 -0.29332 0.27336 -0.58664 0.50004 -0.87996 s0.56668 -0.53332 1.02 -0.72 z M19.88 27.6 c0.13332 1.28 0.22676 2.6867 0.28008 4.22 s0.14664 3.14 0.27996 4.82 c0.10668 0.85332 0.21336 1.52 0.32004 2 s0.18668 0.93332 0.24 1.36 c-0.42668 0.08 -0.76 0.07332 -1 -0.02 s-0.46668 -0.20664 -0.68 -0.33996 c-0.05332 -0.42668 -0.11332 -1.1334 -0.18 -2.12 s-0.13336 -2.06 -0.20004 -3.22 s-0.13336 -2.2867 -0.20004 -3.38 s-0.12668 -1.96 -0.18 -2.6 c0.10668 -0.05332 0.19336 -0.13332 0.26004 -0.24 s0.14 -0.2 0.22 -0.28 s0.18668 -0.14668 0.32 -0.2 s0.30664 -0.05332 0.51996 0 z M29.2 28.28 c0.02668 0.16 -0.099924 0.31992 -0.37992 0.47992 s-0.63332 0.39332 -1.06 0.7 s-0.89336 0.71336 -1.4 1.22 s-0.96 1.1734 -1.36 2 c-0.42668 0.90668 -0.73336 1.6934 -0.92004 2.36 s-0.14668 1.4534 0.12 2.36 c0.08 0.18668 0.19332 0.35336 0.34 0.50004 s0.36668 0.23336 0.66 0.26004 c0.58668 -0.10668 1.1067 -0.25336 1.56 -0.44004 s0.88 -0.41336 1.28 -0.68004 s0.78668 -0.55336 1.16 -0.86004 s0.76 -0.62 1.16 -0.94 c0.58668 -0.56 1.0734 -1.0467 1.46 -1.46 s0.7 -0.76 0.94 -1.04 s0.44668 -0.48668 0.62 -0.62 s0.35332 -0.17332 0.54 -0.12 c-0.10668 0.24 -0.40668 0.74668 -0.9 1.52 s-1.1333 1.5933 -1.92 2.46 s-1.7 1.68 -2.74 2.44 s-2.16 1.2333 -3.36 1.42 c-0.48 -0.02668 -0.87332 -0.08 -1.18 -0.16 s-0.59336 -0.4 -0.86004 -0.96 c-0.32 -0.66668 -0.44 -1.4734 -0.36 -2.42 s0.28 -1.8867 0.6 -2.82 s0.72 -1.8 1.2 -2.6 s0.94668 -1.3867 1.4 -1.76 c0.64 -0.45332 1.2333 -0.73332 1.78 -0.84 s1.0867 -0.10668 1.62 0 z M32.199999999999996 25.759999999999998 c0.34668 0.45332 0.67324 0.89316 0.97992 1.3198 s0.61336 0.86668 0.92004 1.32 s0.63336 0.95332 0.98004 1.5 s0.74668 1.18 1.2 1.9 c0.29332 -0.77332 0.54664 -1.4933 0.75996 -2.16 s0.37332 -1.4267 0.48 -2.28 c0.05332 -0.21332 0.20664 -0.26664 0.45996 -0.15996 s0.46 0.2 0.62 0.28 c0.08 0.18668 0.09332 0.45336 0.04 0.80004 s-0.14 0.70668 -0.26 1.08 s-0.24668 0.72664 -0.38 1.06 s-0.22664 0.59332 -0.27996 0.78 c-0.05332 0.13332 -0.11332 0.28664 -0.18 0.45996 s-0.12668 0.35332 -0.18 0.54 l-0.24 0.64 c0.61332 1.4933 1.2 2.7933 1.76 3.9 s0.93332 1.94 1.12 2.5 c0 0.18668 -0.15332 0.22 -0.46 0.1 s-0.58 -0.28668 -0.82 -0.5 c-0.32 -0.66668 -0.66668 -1.3067 -1.04 -1.92 s-0.76 -1.3066 -1.16 -2.08 c-0.13332 0.37332 -0.3 0.80664 -0.5 1.3 s-0.40668 1 -0.62 1.52 s-0.42664 1.0333 -0.63996 1.54 s-0.4 0.97336 -0.56 1.4 c-0.21332 0.26668 -0.39332 0.43336 -0.54 0.50004 s-0.40668 0.033359 -0.78 -0.09996 c0.48 -1.1733 0.86 -2.1133 1.14 -2.82 s0.51332 -1.3067 0.7 -1.8 s0.34668 -0.96664 0.48 -1.42 s0.29332 -1.0266 0.48 -1.72 c-0.29332 -0.4 -0.62 -0.9 -0.98 -1.5 l-1.08 -1.8 l-1.04 -1.7 l-0.86 -1.16 c-0.18668 -0.26668 -0.24668 -0.57336 -0.18 -0.92004 s0.28668 -0.48 0.66 -0.4 z M45.08 32.4 c-0.37332 0 -0.79356 0.019609 -1.2602 0.059608 s-0.91336 0.06 -1.34 0.06 s-0.80668 -0.03332 -1.14 -0.1 s-0.54 -0.20668 -0.62 -0.42 c-0.16 -0.13332 -0.16 -0.28664 0 -0.45996 s0.30668 -0.32664 0.44 -0.45996 c0.50668 -0.05332 0.94668 -0.09332 1.32 -0.12 s0.72 -0.06 1.04 -0.1 s0.62668 -0.08 0.92 -0.12 s0.6 -0.08668 0.92 -0.14 c0.4 -1.4933 0.77332 -2.92 1.12 -4.28 s0.68 -2.7067 1 -4.04 s0.63332 -2.68 0.94 -4.04 s0.63336 -2.7867 0.98004 -4.28 c0.24 -0.34668 0.44 -0.52668 0.6 -0.54 s0.42668 -0.0067688 0.8 0.020039 c0.16 0.85332 0.28 1.5733 0.36 2.16 s0.15332 1.18 0.22 1.78 s0.14668 1.2667 0.24 2 s0.22 1.66 0.38 2.78 c0.10668 1.1467 0.25336 2.2734 0.44004 3.38 s0.34668 2.2467 0.48 3.42 c0.69332 -0.10668 1.36 -0.22 2 -0.34 s1.2067 -0.22668 1.7 -0.32 s0.89332 -0.16664 1.2 -0.21996 s0.46 -0.06664 0.46 -0.039961 c0.08 0.24 -0.04668 0.47332 -0.38 0.7 s-0.76664 0.45336 -1.3 0.68004 s-1.1066 0.44 -1.72 0.64 s-1.16 0.38 -1.64 0.54 c0.05332 0.50668 0.14664 1.14 0.27996 1.9 s0.27332 1.5667 0.42 2.42 s0.3 1.7133 0.46 2.58 s0.3 1.6534 0.42 2.36 s0.20668 1.2934 0.26 1.76 s0.05332 0.72668 0 0.78 c-0.45332 0.05332 -0.78 0.0067688 -0.98 -0.14004 s-0.44668 -0.27336 -0.74 -0.38004 c-0.21332 -1.76 -0.48 -3.5533 -0.8 -5.38 s-0.57332 -3.6467 -0.76 -5.46 c-0.61332 0.13332 -1.3933 0.31332 -2.34 0.54 s-1.9267 0.42 -2.94 0.58 c-0.16 0.58668 -0.30668 1.24 -0.44 1.96 s-0.26664 1.4067 -0.39996 2.06 s-0.24664 1.24 -0.33996 1.76 s-0.18 0.86 -0.26 1.02 c-0.13332 0.13332 -0.36664 0.22 -0.69996 0.26 s-0.60664 -0.04668 -0.81996 -0.26 c0 -0.16 0.06 -0.52668 0.18 -1.1 s0.26 -1.2066 0.42 -1.9 s0.32668 -1.3666 0.5 -2.02 s0.31332 -1.1666 0.42 -1.54 z M46.9996 30.4396 c0.4 -0.08 0.84004 -0.16641 1.32 -0.25973 s0.92668 -0.19332 1.34 -0.3 s0.77332 -0.19336 1.08 -0.26004 s0.48668 -0.11336 0.54 -0.14004 c-0.05332 -0.58668 -0.1 -1.0734 -0.14 -1.46 s-0.08 -0.79336 -0.12 -1.22 s-0.08668 -0.92668 -0.14 -1.5 s-0.13332 -1.3533 -0.24 -2.34 c-0.21332 -1.68 -0.36664 -2.9333 -0.45996 -3.76 s-0.18 -1.0934 -0.26 -0.80004 c-0.37332 1.44 -0.7 2.6867 -0.98 3.74 s-0.53332 2.0266 -0.76 2.92 s-0.43336 1.7666 -0.62004 2.62 s-0.37336 1.7733 -0.56004 2.76 z M60.56 22.4 c0.26668 -0.05332 0.42664 0.10672 0.47996 0.48004 s0 0.65332 -0.16 0.84 c-0.29332 0.24 -0.48 0.44668 -0.56 0.62 s-0.26668 0.28664 -0.56 0.33996 c-0.16 -0.02668 -0.3 -0.033359 -0.42 -0.020039 s-0.22 -0.20668 -0.3 -0.66 c0.10668 -0.29332 0.27336 -0.58664 0.50004 -0.87996 s0.56668 -0.53332 1.02 -0.72 z M60.68 27.6 c0.13332 1.28 0.22676 2.6867 0.28008 4.22 s0.14664 3.14 0.27996 4.82 c0.10668 0.85332 0.21336 1.52 0.32004 2 s0.18668 0.93332 0.24 1.36 c-0.42668 0.08 -0.76 0.07332 -1 -0.02 s-0.46668 -0.20664 -0.68 -0.33996 c-0.05332 -0.42668 -0.11332 -1.1334 -0.18 -2.12 s-0.13336 -2.06 -0.20004 -3.22 s-0.13336 -2.2867 -0.20004 -3.38 s-0.12668 -1.96 -0.18 -2.6 c0.10668 -0.05332 0.19336 -0.13332 0.26004 -0.24 s0.14 -0.2 0.22 -0.28 s0.18668 -0.14668 0.32 -0.2 s0.30664 -0.05332 0.51996 0 z"/> | |
</g> | |
</svg> | |
</a> | |
<p class="mt-1 text-sm text-slate-400 px-2 text-center">The Stable Diffusion search engine</p> | |
<a href="https://discord.gg/vTKYW6Hc" rel="noopener noreferrer" target="_blank"> | |
<button class="h-8 px-3 mt-3 flex text-xs rounded-lg select-none items-center justify-center opacity-50 hover:opacity-90 hover:bg-slate-600 border border-slate-700"> | |
<svg stroke="currentColor" fill="currentColor" stroke-width="0" role="img" viewBox="0 0 24 24" class="text-base mr-2" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"> | |
<title></title> | |
<path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"></path> | |
</svg> | |
Join the Discord | |
</button> | |
</a> | |
<div class="flex items-center w-full max-w-[600px] md:ml-[48px] mt-8 px-4 pl-5 md:px-5"> | |
<div class="w-full"> | |
<div class="w-full flex items-center relative"> | |
<svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="absolute left-4 pointer-events-none" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"> | |
<circle cx="11" cy="11" r="8"></circle> | |
<line x1="21" y1="21" x2="16.65" y2="16.65"></line> | |
</svg> | |
<input id="main-search" autoComplete="off" class="bg-slate-700 flex-1 pl-12 pr-12 rounded-full text-sm px-4 py-2.5 focus:outline-none focus:ring-1 focus:ring-indigo-700" placeholder="Search for an image" value="" /> | |
<button data-tooltip-target="tooltip-default" class="text-base absolute right-2 hover:bg-slate-800 h-8 w-8 flex items-center justify-center rounded-full" data-state="closed"> | |
<svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"> | |
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect> | |
<circle cx="8.5" cy="8.5" r="1.5"></circle> | |
<polyline points="21 15 16 10 5 21"></polyline> | |
</svg> | |
</button> | |
</div> | |
</div> | |
<div class="flex justify-center"> | |
<button onclick="jabascript:document.getElementById('advanceSearchMenu').classList.toggle('scale-y-0');document.getElementById('advanceSearchMenu').classList.toggle('h-0')" class="ml-2 h-10 w-10 rounded-full cursor-pointer flex items-center justify-center bg-transparent hover:bg-slate-900"> | |
<svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"> | |
<line x1="4" y1="21" x2="4" y2="14"></line> | |
<line x1="4" y1="10" x2="4" y2="3"></line> | |
<line x1="12" y1="21" x2="12" y2="12"></line> | |
<line x1="12" y1="8" x2="12" y2="3"></line> | |
<line x1="20" y1="21" x2="20" y2="16"></line> | |
<line x1="20" y1="12" x2="20" y2="3"></line> | |
<line x1="1" y1="14" x2="7" y2="14"></line> | |
<line x1="9" y1="8" x2="15" y2="8"></line> | |
<line x1="17" y1="16" x2="23" y2="16"></line> | |
</svg> | |
</button> | |
</div> | |
</div> | |
<div id="advanceSearchMenu" class="flex w-full max-w-[600px] md:ml-[48px] px-4 pl-5 md:px-5 h-fit scale-y-0 h-0 transition-all duration-300 origin-top" style="position: relative;"> | |
<div class="w-full flex flex-col items-center"> | |
<div class="w-full px-3 pt-3 flex space-x-1 items-center justify-center pr-12"> | |
<select onchange="filterChanged(this)" id="searchMode" class="bg-transparent text-gray-200 w-fit text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5"> | |
<option selected value="images" class="text-white bg-slate-800 font-bold hover:text-slate-800 hover:bg-white">Search by Image relevancy</option> | |
<option value="prompts" class="text-white bg-slate-800 font-bold hover:text-slate-800 hover:bg-white">Search by Prompt text</option> | |
</select> | |
<select onchange="filterChanged(this)" id="model" class="bg-transparent text-gray-200 w-fit text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5"> | |
<option selected value="picxai-diffuser" class="text-white bg-slate-800 font-bold hover:text-slate-800 hover:bg-white">PicxAI Diffuser</option> | |
<option value="sd-1.5" class="text-white bg-slate-800 font-bold hover:text-slate-800 hover:bg-white">Stable Diffusion 1.5</option> | |
</select> | |
</div> | |
</div> | |
</div> | |
<div class=" mb-8 flex flex-col items-center"> | |
<div class="flex space-x-2"> | |
<button onclick="search()" class="w-32 sm:w-36 flex items-center text-xs justify-center text-center h-9 rounded-full hover:brightness-110 bg-opacity-0 shadow-sm mt-4 bg-gradient-to-t from-indigo-900 via-indigo-900 to-indigo-800">Search</button> | |
</div> | |
</div> | |
<div class="mt-2 hover:opacity-100 opacity-50 transition-all"> | |
<div id="columnDataDisplay" class="text-center text-sm opacity-50">Columns : 2</div> | |
<input onchange="photoGalleryUpdater(this)" type="range" min="1" max="4" value="3" class="w-64 mt-2 block md:hidden columnData" id="myRange"> | |
<input onchange="photoGalleryUpdater(this)" type="range" min="1" max="12" value="5" class="w-64 mt-2 hidden md:block columnData" id="myRange"> | |
</div> | |
<div class="mt-2"> </div> | |
</div> | |
</div> | |
</div> | |
<div id="tooltip-default" role="tooltip" class="absolute z-10 invisible inline-block px-3 py-2 text-sm font-medium text-white transition-opacity duration-300 bg-gray-900 rounded-lg shadow-sm opacity-0 tooltip dark:bg-gray-700"> | |
Upload an image for reverse<br> image search. | |
<div class="tooltip-arrow" data-popper-arrow></div> | |
</div> | |
<div class="mt-4 mb-64 w-full h-auto"> | |
<div id="photoGallery" class="relative h-screen w-full transition-all duration-300" tabindex="0"> | |
</div> | |
</div> | |
<script> | |
function heartAnimation(element) | |
{ | |
let frame = 1; | |
heartAnim = setInterval(()=>{ | |
element.getElementsByTagName("img")[0].src = "/static/heartAnim/"+frame+".png" ; | |
if(frame == 29) | |
{ | |
clearInterval(heartAnim) | |
frame = 0 | |
} | |
frame += 1} | |
,50) | |
} | |
let imageData = `<div class="imageCustom absolute w-[$$width$$%] left-[$$left$$] top-[$$top$$]" data-height="$$height$$" data-width="$$width$$"> | |
<div class="group relative m-0.5 block select-none overflow-hidden rounded-lg z-10" style="transition: opacity 500ms ease 0s;"> | |
<div class="line-clamp pointer-events-none absolute inset-0 z-10 block px-2 px-2 pb-2 text-sm text-slate-100 opacity-0 transition-opacity group-hover:opacity-100" style="background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.1) 100%);"> | |
<div class="flex h-full flex-shrink items-end shadow-md"> | |
<div class="flex flex-col"> | |
<p class="text-sm leading-snug leading-snug text-white opacity-100" style="overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">$$prompt1$$</p> | |
<p class="opacity-60 leading-snug text-sm" style="overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;">$$prompt2$$</p> | |
</div> | |
</div> | |
</div> | |
<div class="absolute top-2 left-0 z-20 mb-1 flex w-full justify-between px-2 text-xs text-slate-100 opacity-0 transition-opacity group-hover:opacity-100"> | |
<button class="flex h-8 w-8 cursor-pointer items-center justify-center rounded bg-slate-900 bg-opacity-50 text-lg transition-opacity hover:bg-opacity-100"> | |
<svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"> | |
<circle cx="11" cy="11" r="8"></circle> | |
<line x1="21" y1="21" x2="16.65" y2="16.65"></line> | |
</svg> | |
</button> | |
<div class="flex flex-col space-y-2"> | |
<button onclick="heartAnimation(this)" class="text-md z-30 flex h-8 w-8 cursor-pointer items-center justify-center rounded bg-slate-900 bg-opacity-70 transition-all hover:bg-opacity-100 active:scale-90"> | |
<div class="scale-x-[200%] scale-y-[70%] py-3"> | |
<img class="heart" src="/static/heartAnim/1.png" alt=""> | |
</div> | |
</button> | |
<button class="flex h-8 w-8 cursor-pointer items-center justify-center rounded bg-slate-900 bg-opacity-50 text-lg transition-opacity hover:bg-opacity-100"> | |
<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 512 512" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M224 96l16-32 32-16-32-16-16-32-16 32-32 16 32 16 16 32zM80 160l26.66-53.33L160 80l-53.34-26.67L80 0 53.34 53.33 0 80l53.34 26.67L80 160zm352 128l-26.66 53.33L352 368l53.34 26.67L432 448l26.66-53.33L512 368l-53.34-26.67L432 288zm70.62-193.77L417.77 9.38C411.53 3.12 403.34 0 395.15 0c-8.19 0-16.38 3.12-22.63 9.38L9.38 372.52c-12.5 12.5-12.5 32.76 0 45.25l84.85 84.85c6.25 6.25 14.44 9.37 22.62 9.37 8.19 0 16.38-3.12 22.63-9.37l363.14-363.15c12.5-12.48 12.5-32.75 0-45.24zM359.45 203.46l-50.91-50.91 86.6-86.6 50.91 50.91-86.6 86.6z"></path></svg> | |
</button> | |
</div> | |
</div> | |
<picture onclick="javascript:window.location.href = '/prompt/$$promptId$$'"> | |
<source media="(min-width:1024px)" srcset="https://lexica-serve-encoded-images2.sharif.workers.dev/$$size1$$/$$imgId$$"> | |
<source media="(min-width:650px)" srcset="https://lexica-serve-encoded-images2.sharif.workers.dev/$$size2$$/$$imgId$$"> | |
<source media="(min-width:465px)" srcset="https://lexica-serve-encoded-images2.sharif.workers.dev/$$size3$$/$$imgId$$"> | |
<img class="object-cover w-full h-full" src="https://lexica-serve-encoded-images2.sharif.workers.dev/$$size4$$/$$imgId$$"/> | |
</picture> | |
</div> | |
</div>` | |
if (window.innerWidth > 768) | |
{ | |
window.colValue = 5 | |
} | |
else | |
{ | |
window.colValue = 3 | |
} | |
flag = 0 | |
if (localStorage.getItem("nextCursor") === null) | |
{ | |
nextCursor = 0 | |
} | |
else | |
{ | |
nextCursor = localStorage.getItem("nextCursor") | |
} | |
let topCols = []; | |
for(let i=0;i<window.colValue;i++) | |
{ | |
topCols[i] = 0 | |
} | |
function photoGalleryUpdater(element) | |
{ | |
document.getElementById("columnDataDisplay").innerHTML="Columns : " + element.value | |
window.colValue = element.value | |
rowNum = 0 | |
let topCols = []; | |
for(let i=0;i<window.colValue;i++) | |
{ | |
topCols[i] = 0 | |
} | |
let width = screen.width; | |
let height = screen.height; | |
allImages = document.getElementsByClassName("imageCustom") | |
for(let i in allImages) | |
{ | |
try | |
{ | |
allImages[i].className = "imageCustom absolute w-["+((100/window.colValue)-1).toString()+"%] left-["+((100*rowNum)/window.colValue).toString()+"%] top-["+topCols[rowNum].toString()+"vw]" | |
topCols[rowNum] += parseInt((((width*(100/window.colValue)-1)/100)*(parseInt(allImages[i].getAttribute("data-height"))/parseInt(allImages[i].getAttribute("data-width")))/window.colValue)*100/height) | |
small = 6 | |
mid = 0 | |
if(window.colValue == 12) | |
{ | |
topCols[rowNum] += 11 | |
small = 5 | |
mid= -3 | |
} | |
if(window.colValue == 11) | |
{ | |
topCols[rowNum] += 11 | |
small = 7 | |
mid= -4 | |
} | |
if(window.colValue == 10) | |
{ | |
topCols[rowNum] += 13 | |
small = 7 | |
mid= -4 | |
} | |
if(window.colValue == 9) | |
{ | |
topCols[rowNum] += 13 | |
small = 7 | |
mid= -4 | |
} | |
if(window.colValue == 8) | |
{ | |
topCols[rowNum] += 14 | |
small = 7 | |
mid= -4 | |
} | |
if(window.colValue == 7) | |
{ | |
topCols[rowNum] += 16 | |
small = 8.5 | |
mid= -5 | |
} | |
if(window.colValue == 6) | |
{ | |
topCols[rowNum] += 17 | |
small = 10 | |
mid = -5 | |
} | |
if(window.colValue == 5) | |
{ | |
topCols[rowNum] += 19 | |
small = 10 | |
mid= -5 | |
} | |
if(window.colValue == 4) | |
{ | |
topCols[rowNum] += 20 | |
small = 11 | |
mid = -5 | |
} | |
if(window.colValue == 3) | |
{ | |
topCols[rowNum] += 19 | |
small = 10 | |
mid = -2 | |
} | |
if(window.colValue == 2) | |
{ | |
topCols[rowNum] += 6 | |
} | |
if(window.colValue == 1) | |
{ | |
topCols[rowNum] -= 120 | |
} | |
if(parseInt(allImages[i].getAttribute("data-height"))/parseInt(allImages[i].getAttribute("data-width")) == 1) | |
{ | |
topCols[rowNum] += mid | |
} | |
if(parseInt(allImages[i].getAttribute("data-height"))/parseInt(allImages[i].getAttribute("data-width")) < 1) | |
{ | |
topCols[rowNum] -= small | |
} | |
if(rowNum == window.colValue-1) | |
{ | |
rowNum = 0 | |
} | |
else | |
{ | |
rowNum +=1 | |
} | |
} | |
catch(e) | |
{ | |
allImages[i].className = "hidden" | |
} | |
} | |
} | |
let paramString = window.location.href.split('?')[1]; | |
try{ | |
if(paramString.split("q=")[1].split("&")[0] != "") | |
{ | |
nextCursor = 0 | |
localStorage.setItem("nextCursor", 0) | |
} | |
} | |
catch(e){} | |
try{ | |
if(paramString.split("q=")[1].split("&")[0] != "") | |
{ | |
document.getElementById("main-search").value = decodeURIComponent(paramString.split('q=')[1].split('&')[0]); | |
} | |
} | |
catch(e){} | |
function infinitePrompts() { | |
const element = document.getElementsByTagName("body")[0]; | |
let x = element.scrollHeight; | |
if(flag == 0) | |
{ | |
flag = 1 | |
let formData = new FormData(); | |
formData.append('cursor', nextCursor); | |
let paramString = window.location.href.split('?')[1]; | |
try{ | |
if(paramString.split("q=")[1].split("&")[0] != "") | |
{ | |
formData.append('query', paramString.split('q=')[1].split('&')[0]); | |
} | |
} | |
catch(e){} | |
formData.append('searchMode',document.getElementById("searchMode").value) | |
formData.append('model',document.getElementById("model").value) | |
let fetchRes = fetch( | |
"/infinite-prompts",{ | |
method: "POST", | |
body: formData | |
}) | |
fetchRes.then(res =>res.json()) | |
.then(d => { | |
nextCursor = d['nextCursor'] | |
localStorage.setItem("nextCursor", d['nextCursor']); | |
rowNum = 0 | |
let width = screen.width; | |
let height = screen.height; | |
for(let i in d["images"]) | |
{ | |
tempHtml = imageData.replace("$$promptId$$",d["images"][i]["promptid"]) | |
if(document.getElementById("model").value != "sd-1.5") | |
{ | |
tempHtml = tempHtml.replace("$$size1$$","full_jpg") | |
tempHtml = tempHtml.replace("$$size2$$","md2") | |
tempHtml = tempHtml.replace("$$size3$$","sm2") | |
tempHtml = tempHtml.replace("$$size4$$","sm2") | |
} | |
else | |
{ | |
tempHtml = tempHtml.replace("$$size1$$","md") | |
tempHtml = tempHtml.replace("$$size2$$","md") | |
tempHtml = tempHtml.replace("$$size3$$","sm") | |
tempHtml = tempHtml.replace("$$size4$$","sm") | |
} | |
tempHtml = tempHtml.replace("$$imgId$$",d["images"][i]["id"]) | |
tempHtml = tempHtml.replace("$$imgId$$",d["images"][i]["id"]) | |
tempHtml = tempHtml.replace("$$imgId$$",d["images"][i]["id"]) | |
tempHtml = tempHtml.replace("$$imgId$$",d["images"][i]["id"]) | |
promptid = d["images"][i]["promptid"] | |
for(let j in d["prompts"]) | |
{ | |
if(d["prompts"][j]["id"] == promptid) | |
{ | |
tempHtml = tempHtml.replace("$$prompt1$$",d["prompts"][j]["prompt"].split(",")[0]) | |
tempHtml = tempHtml.replace("$$prompt2$$",d["prompts"][j]["prompt"].split(",").slice(1).toString()) | |
break; | |
} | |
} | |
tempHtml = tempHtml.replace("$$left$$",((100*rowNum)/window.colValue).toString()+"%") | |
tempHtml = tempHtml.replace("$$top$$",topCols[rowNum]+"vw") | |
tempHtml = tempHtml.replace("$$width$$",((100/window.colValue)-1).toString()) | |
tempHtml = tempHtml.replace("$$height$$",d["images"][i]["height"]) | |
tempHtml = tempHtml.replace("$$width$$",d["images"][i]["width"]) | |
document.getElementById("photoGallery").innerHTML += tempHtml | |
//console.log(topCols,(width*(100/window.colValue)-1)/100,d["images"][i]["height"]/d["images"][i]["width"],parseInt(((width*(100/window.colValue)-1)/100)*(d["images"][i]["height"]/d["images"][i]["width"]))) | |
topCols[rowNum] += parseInt((((width*(100/window.colValue)-1)/100)*(d["images"][i]["height"]/d["images"][i]["width"])/window.colValue)*100/height) | |
small = 6 | |
mid = 0 | |
if(window.colValue == 12) | |
{ | |
topCols[rowNum] += 11 | |
small = 5 | |
mid= -3 | |
} | |
if(window.colValue == 11) | |
{ | |
topCols[rowNum] += 11 | |
small = 7 | |
mid= -4 | |
} | |
if(window.colValue == 10) | |
{ | |
topCols[rowNum] += 13 | |
small = 7 | |
mid= -4 | |
} | |
if(window.colValue == 9) | |
{ | |
topCols[rowNum] += 13 | |
small = 7 | |
mid= -4 | |
} | |
if(window.colValue == 8) | |
{ | |
topCols[rowNum] += 14 | |
small = 7 | |
mid= -4 | |
} | |
if(window.colValue == 7) | |
{ | |
topCols[rowNum] += 16 | |
small = 8.5 | |
mid= -5 | |
} | |
if(window.colValue == 6) | |
{ | |
topCols[rowNum] += 17 | |
small = 10 | |
mid = -5 | |
} | |
if(window.colValue == 5) | |
{ | |
topCols[rowNum] += 19 | |
small = 10 | |
mid= -5 | |
} | |
if(window.colValue == 4) | |
{ | |
topCols[rowNum] += 20 | |
small = 11 | |
mid = -5 | |
} | |
if(window.colValue == 3) | |
{ | |
topCols[rowNum] += 19 | |
small = 10 | |
mid = -2 | |
} | |
if(window.colValue == 2) | |
{ | |
topCols[rowNum] += 6 | |
} | |
if(window.colValue == 1) | |
{ | |
topCols[rowNum] -= 120 | |
} | |
if(parseInt(allImages[i].getAttribute("data-height"))/parseInt(allImages[i].getAttribute("data-width")) == 1) | |
{ | |
topCols[rowNum] += mid | |
} | |
if(parseInt(allImages[i].getAttribute("data-height"))/parseInt(allImages[i].getAttribute("data-width")) < 1) | |
{ | |
topCols[rowNum] -= small | |
} | |
if(rowNum == window.colValue-1) | |
{ | |
rowNum = 0 | |
} | |
else | |
{ | |
rowNum +=1 | |
} | |
} | |
flag = 0 | |
if(window.innerWidth < 768) | |
{ | |
photoGalleryUpdater(document.getElementsByClassName("columnData")[0]) | |
} | |
else | |
{ | |
photoGalleryUpdater(document.getElementsByClassName("columnData")[1]) | |
} | |
}) | |
} | |
}; | |
if(window.innerWidth < 768) | |
{ | |
photoGalleryUpdater(document.getElementsByClassName("columnData")[0]) | |
} | |
else | |
{ | |
photoGalleryUpdater(document.getElementsByClassName("columnData")[1]) | |
} | |
infinitePrompts() | |
window.onscroll = function(event){ | |
const element = document.getElementsByTagName("body")[0]; | |
let x = element.scrollHeight; | |
if(pageYOffset > (x-5000) && flag == 0) | |
{ | |
infinitePrompts() | |
} | |
} | |
function search() | |
{ | |
window.location = "/?q="+document.getElementById("main-search").value | |
} | |
function filterChanged(element) | |
{ | |
var op = document.getElementById("model").getElementsByTagName("option"); | |
if(element.value == "prompts") | |
{ | |
op[0].disabled = true | |
op[1].selected = true | |
} | |
else | |
{ | |
op[0].disabled = false | |
op[1].selected = true | |
} | |
document.getElementById("photoGallery").innerHTML = "" | |
nextCursor = 0 | |
localStorage.setItem("nextCursor", 0); | |
let topCols = []; | |
for(let i=0;i<window.colValue;i++) | |
{ | |
topCols[i] = 0 | |
} | |
infinitePrompts() | |
} | |
</script> | |
</body> | |
</html> | |
<!-- | |
<div> | |
<a href="/prompt/" class="group relative m-0.5 block select-none overflow-hidden rounded-lg" style="transition: opacity 500ms ease 0s;"> | |
<div class="absolute top-2 left-0 z-10 mb-1 flex w-full justify-between px-2 text-xs text-slate-100 opacity-0 transition-opacity group-hover:opacity-100"> | |
<button class="flex h-8 w-8 cursor-pointer items-center justify-center rounded bg-slate-900 bg-opacity-50 text-lg transition-opacity hover:bg-opacity-100"> | |
<svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"> | |
<circle cx="11" cy="11" r="8"></circle> | |
<line x1="21" y1="21" x2="16.65" y2="16.65"></line> | |
</svg> | |
</button> | |
<div class="flex flex-col space-y-2"> | |
<button class="text-md flex h-8 w-8 cursor-pointer items-center justify-center rounded bg-slate-900 bg-opacity-70 transition-all hover:bg-opacity-100 active:scale-90"> | |
<div class="scale-50"> | |
<div class="heart brightness-110"></div> | |
</div> | |
</button> | |
<button class="flex h-8 w-8 cursor-pointer items-center justify-center rounded bg-slate-900 bg-opacity-50 text-lg transition-opacity hover:bg-opacity-100"> | |
<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 512 512" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M224 96l16-32 32-16-32-16-16-32-16 32-32 16 32 16 16 32zM80 160l26.66-53.33L160 80l-53.34-26.67L80 0 53.34 53.33 0 80l53.34 26.67L80 160zm352 128l-26.66 53.33L352 368l53.34 26.67L432 448l26.66-53.33L512 368l-53.34-26.67L432 288zm70.62-193.77L417.77 9.38C411.53 3.12 403.34 0 395.15 0c-8.19 0-16.38 3.12-22.63 9.38L9.38 372.52c-12.5 12.5-12.5 32.76 0 45.25l84.85 84.85c6.25 6.25 14.44 9.37 22.62 9.37 8.19 0 16.38-3.12 22.63-9.37l363.14-363.15c12.5-12.48 12.5-32.75 0-45.24zM359.45 203.46l-50.91-50.91 86.6-86.6 50.91 50.91-86.6 86.6z"></path></svg> | |
</button> | |
</div> | |
</div> | |
<img width="1536" height="1024" class="object-cover" src="https://lexica-serve-encoded-images2.sharif.workers.dev/full_jpg/"/> | |
</a> | |
</div> | |
// | |
--> |