Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
ovx committed Oct 11, 2024
0 parents commit 9276730
Show file tree
Hide file tree
Showing 28 changed files with 3,799 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist_bundle
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

.TODO
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100
}
59 changes: 59 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ALTCHA Analytics Script</title>
</head>
<body>
<div id="app">

<div>
Links:
<ul>
<li><a href="/">/</a></li>
<li><a href="/page1">/page1</a></li>
<li><a href="/page2">/page2</a></li>
</ul>
</div>

<div>
PushState:
<ul>
<li><a href="" onclick="history.pushState({}, '', '/page1');return false">/page1</a></li>
<li><a href="" onclick="history.pushState({}, '', '/page2');return false">/page2</a></li>
</ul>
</div>

<div>
Hash:
<ul>
<li><a href="#page1">#page1</a></li>
<li><a href="#page2">#page2</a></li>
</ul>
</div>

<div>
Outbound:
<ul>
<li><a href="https://news.ycombinator.com">news.ycombinator.com</a></li>
<li><a href="" data-link="https://news.ycombinator.com" onclick="location.href = 'https://news.ycombinator.com';return false">news.ycombinator.com (JS)</a></li>
</ul>
</div>

</div>

<style>
body {
font-family: sans-serif;
}
#app {
display: flex;
flex-direction: column;
gap: 1rem;
}
</style>

<script type="module" src="/src/main.ts" data-project="xx" data-debug="true"></script>
</body>
</html>
Loading

0 comments on commit 9276730

Please sign in to comment.