Skip to content

Commit

Permalink
fix safari
Browse files Browse the repository at this point in the history
okwme committed Sep 11, 2024
1 parent 89188b5 commit e07cbd3
Showing 6 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion contractData/84532-ExternalMetadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"address":"0xA3D12Cf8DCDC5dd4bB0d6C58AF7133244D2B3ac2","chain":{"chainId":84532,"name":"unknown"}}
{"address":"0xCD82Fb023E45efcDa0c983055A923F574a84056d","chain":{"chainId":84532,"name":"unknown"}}
2 changes: 1 addition & 1 deletion contracts/ExternalMetadata.sol
Original file line number Diff line number Diff line change
@@ -111,7 +111,7 @@ contract ExternalMetadata is Ownable {
'<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Selection, 2024 - Jan Robert Leegte</title><style>html,body{width:100vw;height:100vh}body{overflow:hidden}svg{width:100vw;height:100vh;position:absolute;inset:0}</style><meta http-equiv="X-UA-Compatible" content="IE=9">';

string htmlClose =
'</head><body> <svg color="#000" style="background-color:#0000"><defs><pattern id="diagonalHatch" width="8" height="8" patternUnits="userSpaceOnUse"><rect width="8" height="8" fill="#fff"/><path d="m-2 2 4-4M0 8l8-8M6 10l4-4" style="stroke:#000;stroke-width:3px"/><animateTransform type="translate" from="0 0" to="8 8" begin="0" dur="2s" attributeType="xml" attributeName="patternTransform" repeatCount="indefinite"/></pattern></defs><path id="selectionPath" d="" stroke="url(#diagonalHatch)" fill="none"/></svg> </body></html>';
'</head><body> <svg color="#000" style="background-color:#0000"><defs><pattern patternTransform="translate(0)" id="diagonalHatch" width="8" height="8" patternUnits="userSpaceOnUse"><rect width="8" height="8" fill="#fff"/><path d="m-2 2 4-4M0 8l8-8M6 10l4-4" style="stroke:#000;stroke-width:3px"/><animateTransform type="translate" from="0 0" to="8 8" begin="0" dur="2s" attributeType="xml" attributeName="patternTransform" repeatCount="indefinite"/></pattern></defs><path id="selectionPath" d="" stroke="url(#diagonalHatch)" fill="none"/></svg> </body></html>';

function getHTML(uint256 tokenId) public view returns (string memory) {
IFileStore fileStore = IFileStore(
6 changes: 6 additions & 0 deletions docs/index.1eb17a07.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/index.1eb17a07.js.map

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions docs/index.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@
</style>
<meta http-equiv="X-UA-Compatible" content="IE=9">
<script type="module">
import './selection.js'
// import './selection.js'
</script>
<script>
// setTimeout(() => {
@@ -42,6 +42,7 @@
</script>
</head>
<body>
<script type="module" src="./selection.js"></script>
<svg xmlns="http://www.w3.org/2000/svg" color="#000000" style="background-color:transparent;">
<defs>
<pattern id="diagonalHatch" patternUnits="userSpaceOnUse" patternTransform="translate(0)" width="8" height="8">
@@ -53,7 +54,7 @@
dur="2s" repeatCount="indefinite"/>
</pattern>
</defs>
<path id="selectionPath" d="M-2,2 l4,-4 M0,8 l8,-8 M6,10 l4,-4" stroke="url(#diagonalHatch)" fill="none" ></path>
<path id="selectionPath" d="M-2,2 l4,-4 M0,8 l8,-8 M6,10 l4,-4" stroke="url(#diagonalHatch)" fill="none" ></path>
</svg>
</body>
</html>

0 comments on commit e07cbd3

Please sign in to comment.