Hackquest
Hackathon State
Host by
Huang
Hackathon Mode
OFFLINE
Ecosystem
Venue
chen
Participants
3,000 USD
Available in Prizes
Description
deded
name | age | address |
---|---|---|
Bob | 20 | Shanghai |
hello
world
hello world
let isMac: boolean | undefined
interface Navigator {
userAgentData?: {
brands: { brand: string; version: string }[]
mobile: boolean
platform: string
getHighEntropyValues: (hints: string[]) => Promise<{
platform: string
platformVersion: string
uaFullVersion: string
}>
}
}
function getPlatform(): string {
const nav = navigator as Navigator
if (nav.userAgentData) {
if (nav.userAgentData.platform) {
return nav.userAgentData.platform
}
nav.userAgentData
.getHighEntropyValues(['platform'])
.then(highEntropyValues => {
if (highEntropyValues.platform) {
return highEntropyValues.platform
}
})
}
if (typeof navigator.platform === 'string') {
return navigator.platform
}
return ''
}
export function isMacOS() {
if (isMac === undefined) {
isMac = getPlatform().toLowerCase().includes('mac')
}
return isMac
}
function Button() {
return (
<button>hello world</button>
)
}
Web3
3,000 USDT
Web3
Web3
Judging Criteria
dede
Schedule