forked from frazierzak/phasmohelper
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert to TypeScript and remove jQuery
- Loading branch information
Showing
6 changed files
with
296 additions
and
261 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: compile-deploy.yml | ||
on: push | ||
|
||
jobs: | ||
build-and-deploy: | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
- run: npm install -g typescript | ||
- run: tsc | ||
- uses: actions/deploy-pages@v4 | ||
with: | ||
path: ./dist |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
debug.log | ||
.idea | ||
/main.css.map | ||
*.js | ||
*.map |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta charset="utf-8"> | ||
</head> | ||
<body onload="loadSettings()"> | ||
<body> | ||
<div id="top-content"> | ||
<div class="config-buttons"> | ||
<div class="toggle" id="nightmare-toggle">Nightmare</div> | ||
|
@@ -767,16 +767,11 @@ <h3>Yurei<img src="ghost-icons/yurei.webp"></h3> | |
</div> | ||
</div> | ||
</div> | ||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha256-4+XzXVhsDmqanXGHaHvgh1gMQKX40OUvDEBTu8JcmNs=" crossorigin="anonymous"></script> | ||
<script type="text/javascript" src="main.js"></script> | ||
<script src="main.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/main.js"></script> | ||
<script> | ||
{ | ||
const ghosts = document.querySelector("#ghosts"); | ||
animateCSSGrid.wrapGrid(ghosts, {duration: 400}); | ||
const evidence = document.querySelector("#evidence-buttons"); | ||
animateCSSGrid.wrapGrid(evidence, {duration: 400}); | ||
} | ||
animateCSSGrid.wrapGrid(document.querySelector("#ghosts"), {duration: 400}); | ||
animateCSSGrid.wrapGrid(document.querySelector("#evidence-buttons"), {duration: 400}); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.