Skip to content

Commit

Permalink
Support SVG images, emoji to clipboard, use datalist, fixes #46, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fulldecent committed Sep 12, 2024
1 parent 52d238a commit d465cd3
Show file tree
Hide file tree
Showing 30,010 changed files with 20,053 additions and 20,035 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ header > * {
color: #ffd700;
padding: 10px;
text-decoration: none;
cursor: pointer;
}

.btn:hover {
Expand Down
2 changes: 1 addition & 1 deletion build/loadedTo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18765029
20732262
2 changes: 1 addition & 1 deletion build/squareExtra.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/squarePersonalizations.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion build/underlayIsVisible.json

This file was deleted.

2 changes: 1 addition & 1 deletion build/underlayPersonalizations.json

Large diffs are not rendered by default.

Binary file modified build/wholeSquare.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 17 additions & 1 deletion buy.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,23 @@ <h2>Which Square would you like?</h2>
// Load personalizations ///////////////////////////////////////////////////////////////////////////////////////////
fetch("build/squarePersonalizations.json")
.then(response => response.json())
.then(data => { squarePersonalizations = data; });
.then(data => { squarePersonalizations = data; })
.then(data => {
// Setup datalist for square number input
const datalist = document.createElement("datalist");
datalist.id = "square-numbers";
for (let i = 1; i <= 10000; i++) {
if (squarePersonalizations && squarePersonalizations[i-1]) {
continue;
}
const option = document.createElement("option");
option.value = i;
datalist.appendChild(option);
}
squareNumberInput.setAttribute("list", "square-numbers");
squareNumberInput.parentNode.appendChild(datalist);
console.log(datalist);
})

// Validate Square number //////////////////////////////////////////////////////////////////////////////////////////
squareNumberInput.addEventListener("input", ()=>{
Expand Down
2 changes: 1 addition & 1 deletion erc721/00001.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"Square #1","description":"","image":"https://tenthousandsu.com/erc721/00001.png","external_url":"https://tenthousandsu.com/square#00001","attributes":[{"trait_type":"Row","value":1},{"trait_type":"Column","value":1},{"trait_type":"Manhattan distance to center","value":98},{"trait_type":"Prime divisors","value":0},{"trait_type":"Palindrome","value":"ALL SAME DIGIT"}]}
{"name":"Square #1","description":"","image":"https://tenthousandsu.com/erc721/00001.svg","external_url":"https://tenthousandsu.com/square#00001","attributes":[{"trait_type":"Row","value":1},{"trait_type":"Column","value":1},{"trait_type":"Manhattan distance to center","value":98},{"trait_type":"Prime divisors","value":0},{"trait_type":"Palindrome","value":"ALL SAME DIGIT"}]}
Binary file removed erc721/00001.png
Binary file not shown.
2 changes: 1 addition & 1 deletion erc721/00001.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion erc721/00002.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"Square #2","description":"","image":"https://tenthousandsu.com/erc721/00002.png","external_url":"https://tenthousandsu.com/square#00002","attributes":[{"trait_type":"Row","value":1},{"trait_type":"Column","value":2},{"trait_type":"Manhattan distance to center","value":97},{"trait_type":"Prime divisors","value":1},{"trait_type":"Palindrome","value":"ALL SAME DIGIT"}]}
{"name":"Square #2","description":"","image":"https://tenthousandsu.com/erc721/00002.svg","external_url":"https://tenthousandsu.com/square#00002","attributes":[{"trait_type":"Row","value":1},{"trait_type":"Column","value":2},{"trait_type":"Manhattan distance to center","value":97},{"trait_type":"Prime divisors","value":1},{"trait_type":"Palindrome","value":"ALL SAME DIGIT"}]}
Binary file removed erc721/00002.png
Binary file not shown.
2 changes: 1 addition & 1 deletion erc721/00002.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion erc721/00003.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"Square #3","description":"","image":"https://tenthousandsu.com/erc721/00003.png","external_url":"https://tenthousandsu.com/square#00003","attributes":[{"trait_type":"Row","value":1},{"trait_type":"Column","value":3},{"trait_type":"Manhattan distance to center","value":96},{"trait_type":"Prime divisors","value":1},{"trait_type":"Palindrome","value":"ALL SAME DIGIT"}]}
{"name":"Square #3","description":"","image":"https://tenthousandsu.com/erc721/00003.svg","external_url":"https://tenthousandsu.com/square#00003","attributes":[{"trait_type":"Row","value":1},{"trait_type":"Column","value":3},{"trait_type":"Manhattan distance to center","value":96},{"trait_type":"Prime divisors","value":1},{"trait_type":"Palindrome","value":"ALL SAME DIGIT"}]}
Binary file removed erc721/00003.png
Binary file not shown.
2 changes: 1 addition & 1 deletion erc721/00003.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion erc721/00004.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"Square #4","description":"","image":"https://tenthousandsu.com/erc721/00004.png","external_url":"https://tenthousandsu.com/square#00004","attributes":[{"trait_type":"Row","value":1},{"trait_type":"Column","value":4},{"trait_type":"Manhattan distance to center","value":95},{"trait_type":"Prime divisors","value":2},{"trait_type":"Palindrome","value":"ALL SAME DIGIT"}]}
{"name":"Square #4","description":"","image":"https://tenthousandsu.com/erc721/00004.svg","external_url":"https://tenthousandsu.com/square#00004","attributes":[{"trait_type":"Row","value":1},{"trait_type":"Column","value":4},{"trait_type":"Manhattan distance to center","value":95},{"trait_type":"Prime divisors","value":2},{"trait_type":"Palindrome","value":"ALL SAME DIGIT"}]}
Binary file removed erc721/00004.png
Binary file not shown.
2 changes: 1 addition & 1 deletion erc721/00004.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion erc721/00005.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"Square #5","description":"","image":"https://tenthousandsu.com/erc721/00005.png","external_url":"https://tenthousandsu.com/square#00005","attributes":[{"trait_type":"Row","value":1},{"trait_type":"Column","value":5},{"trait_type":"Manhattan distance to center","value":94},{"trait_type":"Prime divisors","value":1},{"trait_type":"Palindrome","value":"ALL SAME DIGIT"}]}
{"name":"Square #5","description":"","image":"https://tenthousandsu.com/erc721/00005.svg","external_url":"https://tenthousandsu.com/square#00005","attributes":[{"trait_type":"Row","value":1},{"trait_type":"Column","value":5},{"trait_type":"Manhattan distance to center","value":94},{"trait_type":"Prime divisors","value":1},{"trait_type":"Palindrome","value":"ALL SAME DIGIT"}]}
Binary file removed erc721/00005.png
Binary file not shown.
Loading

0 comments on commit d465cd3

Please sign in to comment.