This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <button onclick="demo.showModal()">Push it real good.</button> | |
| <dialog id="demo" class="push-z" closedby="any"> | |
| <section> | |
| <header> | |
| <button title="Close" onclick="demo.close()" class="material-symbols-outlined">close</button> | |
| </header> | |
| </section> | |
| </dialog> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <button onclick="demo.showModal()">Push it real good.</button> | |
| <dialog id="demo" class="push-z" closedby="any"> | |
| <section> | |
| <header> | |
| <button title="Close" onclick="demo.close()" class="material-symbols-outlined">close</button> | |
| </header> | |
| </section> | |
| </dialog> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| utfSpaces = [ | |
| { | |
| name: 'Space', | |
| utf: '\u0020', | |
| html: [' ', ' '], | |
| breaking: true, | |
| width: 'Typically 1/4 em', | |
| unicode_category: 'Separator, Space', | |
| matched_by_s_character_class: true | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| font-family: system-ui,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UIScreen.main.bounds.width | |
| UIScreen.main.bounds.height |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Cleverness by Eirik Backer http://kirie.no/ --> | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width,initial-scale=1.0"> | |
| <title>Mask</title> | |
| </head> | |
| <body style="margin:0;min-height:100vh;background:url(https://placeimg.com/1000/562/any) 50%/cover"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if UIDevice().userInterfaceIdiom == .phone { | |
| switch (UIScreen.main.nativeBounds.height) { | |
| case (1136...2208): | |
| print("iPhone, 9:16 aspect ratio") | |
| case (2436): | |
| print("iPhone X, 375:812 aspect ratio") | |
| default: | |
| print("unknown phone") | |
| } | |
| } else if UIDevice().userInterfaceIdiom == .pad { |