To use Project Connect on your own site:
Put this script in your website:
<script src="https://project2.neocities.org/connect/index.js" id="project-connect"></script>
If you want a dialog to show up if the user isn't registered, add the word 'dialog' to the script tag like so:
<script src="https://project2.neocities.org/connect/index.js" id="project-connect" dialog></script>
Anywhere on your site where you want the user's account name to appear, put the string
{{neocities}}
.
In JavaScript, use the
neocities
variable to access the user's account name.