Skip to content

Commit

Permalink
minor changes, added some styles
Browse files Browse the repository at this point in the history
  • Loading branch information
SupaGruen committed Nov 19, 2023
1 parent fb7466f commit 51b9530
Show file tree
Hide file tree
Showing 28 changed files with 9 additions and 7 deletions.
Binary file added img/Akira-Kurosawa.webp
Binary file not shown.
Binary file added img/Bob-Mizer.webp
Binary file not shown.
Binary file added img/Bridget-Riley.webp
Binary file not shown.
Binary file added img/Carel-Willink.webp
Binary file not shown.
Binary file added img/Chaim-Soutine.webp
Binary file not shown.
Binary file added img/Cleon-Peterson.webp
Binary file not shown.
Binary file added img/Dale-Chihuly.webp
Binary file not shown.
Binary file added img/Edwin-Landseer.webp
Binary file not shown.
Binary file added img/Egon-Schiele.webp
Binary file not shown.
Binary file added img/Emory-Douglas.webp
Binary file not shown.
Binary file added img/Graham-Sutherland.webp
Binary file not shown.
Binary file added img/Hans-Hartung.webp
Binary file not shown.
Binary file added img/Henryk-Siemiradzki.webp
Binary file not shown.
Binary file added img/Ivan-Kramskoi.webp
Binary file not shown.
Binary file added img/Iwona-Lifsches.webp
Binary file not shown.
Binary file added img/Karl-Wilhelm-Diefenbach.webp
Binary file not shown.
Binary file added img/Margaret-Olley.webp
Binary file not shown.
Binary file added img/Marius-Borgeaud.webp
Binary file not shown.
Binary file added img/Marsden-Hartley.webp
Binary file not shown.
Binary file added img/Pierre-Bonnard.webp
Binary file not shown.
Binary file added img/Pietro-Annigoni.webp
Binary file not shown.
Binary file added img/Ravi-Zupa.webp
Binary file not shown.
Binary file added img/Victor-Brauner.webp
Binary file not shown.
Binary file added img/Victor-Vasarely.webp
Binary file not shown.
Binary file added img/William-Mortensen.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion src/data-excluded-artists.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data.js

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions src/spaghetticode.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ document.addEventListener('DOMContentLoaded',function(event){

var SearchEngine = 'https://www.google.com/search?q=';

var lateststyles = 202310230000; // Stuff since last official release
var EndOfLastVer120 = 202306072133; // Version 1.2.0
var EndOfLastVer110 = 202305050000; // Version 1.1.0

Expand Down Expand Up @@ -163,12 +164,12 @@ document.addEventListener('DOMContentLoaded',function(event){
},{});

Object.keys(sortedKeys).forEach(key => {
if(sortedKeys[key]>2 && DontShowAnyCountries.includes(key)==false){
if(sortedKeys[key]>4 && DontShowAnyCountries.includes(key)==false){
let filtername = key.replace(/\\/g,'');
FilterOutput = FilterOutput + '<span data-srch="' + filtername + '">' + filtername + ' <span>' + sortedKeys[key] +'</span></span>';
};
});
FilterOutput = FilterOutput + '<span class="specialfilters" data-srch="New Styles 1.2.0">New with 1.2.0</span><span class="specialfilters" data-srch="New Styles 1.1.0">New with 1.1.0</span><span class="specialfilters" data-srch="Opened Styles">Currently Opened Styles</span><span class="specialfilters" data-srch="Liked">Liked <span><img class="svg" src="./src/heart-outline.svg" width="12"></span></span><span class="specialfilters" data-srch="&dagger;">Only Deceased Artists <span>&dagger;</span></span>';
FilterOutput = FilterOutput + '<span class="specialfilters" data-srch="Newest Styles">Newest Styles</span><span class="specialfilters" data-srch="New Styles 1.2.0">New with 1.2.0</span><span class="specialfilters" data-srch="New Styles 1.1.0">New with 1.1.0</span><span class="specialfilters" data-srch="Opened Styles">Currently Opened Styles</span><span class="specialfilters" data-srch="Liked">Liked <span><img class="svg" src="./src/heart-outline.svg" width="12"></span></span><span class="specialfilters" data-srch="&dagger;">Only Deceased Artists <span>&dagger;</span></span>';
catsbox.innerHTML = FilterOutput;

// Copy Prompt to Clipboard
Expand Down Expand Up @@ -358,11 +359,12 @@ document.addEventListener('DOMContentLoaded',function(event){
let search_query = document.getElementById('searchbox').value;
let stylebegindate; let styleenddate;
if(search_query == 'New Styles 1.1.0'){ stylebegindate = EndOfLastVer110; styleenddate = EndOfLastVer120; }
if(search_query == 'New Styles 1.2.0'){ stylebegindate = EndOfLastVer120; styleenddate = 999999999999; }
if(search_query == 'New Styles 1.2.0'){ stylebegindate = EndOfLastVer120; styleenddate = lateststyles; }
if(search_query == 'Newest Styles'){ stylebegindate = lateststyles; styleenddate = 999999999999; }

for(var i = 0; i < pods.length; i++){

if((search_query == 'New Styles 1.1.0')||(search_query == 'New Styles 1.2.0')){
if((search_query == 'New Styles 1.1.0')||(search_query == 'New Styles 1.2.0')||(search_query == 'Newest Styles')){
let currentstyledate = pods[i].dataset.creatime;
if((currentstyledate>stylebegindate)&&(currentstyledate<styleenddate)){
pods[i].classList.remove('is-hidden');
Expand Down Expand Up @@ -685,7 +687,7 @@ document.addEventListener('DOMContentLoaded',function(event){
function extractComfyPrompt(com) {

const noduplicates = [];
let MDOut = '<p><span><strong>UI</strong>ComfyUI</span>';
let MDOut = '<p><span><strong>UI</strong> ComfyUI</span>';

const isObject = (val) => {
if(val === null) { return false; }
Expand Down

0 comments on commit 51b9530

Please sign in to comment.