Skip to content

Commit

Permalink
fix: format demo html
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Jun 2, 2023
1 parent 7d88f37 commit c3b4920
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 45 deletions.
2 changes: 1 addition & 1 deletion demo/getUserProfile.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<title>Instagram</title>

Expand Down
83 changes: 39 additions & 44 deletions demo/index.html
Original file line number Diff line number Diff line change
@@ -1,49 +1,44 @@
<!DOCTYPE html>
<html>

<head>
<title>Instagram</title>

<style type="text/css">
.template {
display: none
}
.list {
display: inline-grid;
grid-gap: 30px;
margin: 30px 50px;
<html lang="en">
<head>
<title>Instagram</title>

<style type="text/css">
.template {
display: none;
}
.list {
display: inline-grid;
grid-gap: 30px;
margin: 30px 50px;
}
.list > li {
text-decoration: underline;
cursor: pointer;
}
</style>
<link rel="manifest" href="/manifest.webmanifest" />
</head>

<body>
<h1>List of API - Instagram</h1>

<ul class="list">
<li onclick="navigate('getUserProfile')">
Go to Instagram profile Users
</li>
</ul>
</body>

<script>
function navigate(name) {
if (name) window.location.href = `../demo/${name}.html`;
}
.list > li {
text-decoration: underline;
cursor: pointer;
}
</style>
<link rel="manifest" href="/manifest.webmanifest">
</head>

<body>

<h1>List of API - Instagram</h1>

<ul class="list">
<li onclick="navigate('getUserProfile')">Go to Instagram profile Users</li>
</div>

</body>


<script>

function navigate(name){
if (name) window.location.href = `../demo/${name}.html`;
}

</script>

<!--CoCreateJS-->
</script>

<!--CoCreate Plugins-->
<!--CoCreateJS-->

<script src="../dist/CoCreate-instagram.js"></script>
<!--CoCreate Plugins-->

</html>
<script src="../dist/CoCreate-instagram.js"></script>
</html>

0 comments on commit c3b4920

Please sign in to comment.