Skip to content

Instantly share code, notes, and snippets.

@reg0l
Created April 4, 2023 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reg0l/cfeb2ff8a66c3a2369e18bc0c259586b to your computer and use it in GitHub Desktop.
Save reg0l/cfeb2ff8a66c3a2369e18bc0c259586b to your computer and use it in GitHub Desktop.
<html>
<head>
<meta charset="UTF-8">
<meta content="origin" name="referrer">
<link rel="stylesheet" href="style.css">
</head>
<body>
<script>
/*
function test(){
fetch("https://world.openfoodfacts.org/category/pastas/1.json")
.then(response => {
// indicates whether the response is successful (status code 200-299) or not
if (!response.ok) {
throw new Error(`Request failed with status ${reponse.status}`)
}
return response.json()
})
.then(data => {
console.log(data.count)
console.log(data.products)
})
.catch(error => console.log(error))
}
*/
var ledger =
{
'uid' : '1680624143446-4444-1680624143446-4446-16806241',
'uupn_list' : [
[{'uupn':'1680624143446-4444-1680624143446-4446-1680624143446', 'old_number_support':'33701241822', 'trust_level':'medium', 'last_seen':'1680624143446'}],
[{'uupn':'1680624143446-4444-717298719-4446-1680624143448', 'old_number_support': '17628612', 'trust_level':'medium','last_seen':'1680624143446'}],
[{'uupn':'1680624143446-4444-781792-4446-1680624143448', 'old_number_support':'33701241889', 'trust_level':'medium','last_seen':'1680624143446'}],
[{'uupn':'1680624143446-4444-892189821-4446-1680624143448', 'old_number_support':'33701241821', 'trust_level':'medium','last_seen':'1680624143446'}],
],
'version_ledger': 'v1.1234567',
'published_date': '1680624143446',
'declared_switch':'1680624143446-4444-1680624143446-4446-1680624143446',
'age_of_ledger': '10min'
}
/*const videos = [
{ 'name' : 'crystal' },
{ 'name' : 'elf' },
{ 'name' : 'frog' },
{ 'name' : 'monster' },
{ 'name' : 'pig' },
{ 'name' : 'rabbit' }
];
for (let i = 0; i < videos.length; i++) {
console.log(videos[i].name);
}
videos.forEach((video) => {
console.log( video.name);
});
*/
//for(var key in videos){
//console.log(key.valueOf());
//}
</script>
<div class="container">
<div class="middle">
<div class="header"></div>
<h1>John Buttler</h1>
<div class="details">
<p>I'm interested by running naked in the wood loudy saying name</p>
</div>
<div class="div-button">UPLOAD</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment