Skip to content

Commit

Permalink
Add sort list post
Browse files Browse the repository at this point in the history
  • Loading branch information
xdelamotte committed Feb 3, 2025
1 parent 933d4f1 commit f23e7c9
Show file tree
Hide file tree
Showing 4 changed files with 750 additions and 0 deletions.
58 changes: 58 additions & 0 deletions _posts/2025-02-03/2025-02-03-sort-lists.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
layout: post
title: Sort List
category: Random
---

<textarea id="list" rows="15">Beyoncé
Britney Spears
Céline Dion
Lady Gaga
Madonna
Mariah Carey
Rihanna
Taylor Swift
Whitney Houston
</textarea>

<button id="sort">🔡 Sort</button>
<ol id="output"></ol>

<style>
small {
margin: 10px;
color: grey;
font-size: small;
}

.popup {
font-size: 8rem;
background-color: var(--bg);
position: fixed;
width: 100%;
height: 100%;
}
.popup .content{
height: 80%;
display: flex;
justify-content: center;
align-items: center;
}

.popup .column {
flex: 50%;
text-align: center;
padding: 10px;
}

.closeButton {
cursor: pointer;
float: right;
width:50px;
}

</style>

<script src="lz-string.js"></script>
<script src="sort-lists.js"></script>

13 changes: 13 additions & 0 deletions _posts/2025-02-03/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f23e7c9

Please sign in to comment.