It looks like you are confusing project tin (now known as xAPI) can with SCORM.
SCORM does everything with an LMS, and requires you always stay online.
However, project tin can doesn't store courses, only statements. This allows you to run your coursework without internet, and then submit the statements once you do have a secure connection again.
You may want to check out the xAPI Spec before continuing and see if this is what you want to use (I highly recommend it, as SCORM is becoming a bit outdated)
If you do want to continue working with xAPI, there are lots of sources on the ADL GitHub page.
Now in order to somewhat better answer your question: If you do want the course to be online, you need it on another page and use a wrapper to send the information to the LRS (not an LMS).
Hopefully this helps! :-)
Additional resources
ADL's public LRS
- This LRS can only hold a few statements, but it's a good way to test if your code works, and practice using xAPI
ADL's GitHub Page
- This is a list of information and additional sources.
- Includes a section explaining how to go from SCORM to xAPI (which is what it looks like you're trying to do)
Vocabulary list for xAPI statements
- List of Verbs, Activity Types, Context Extensions, Result Extensions, & Attachment USAGE Types
- Useful for forming well structured and fully conformant statements
Tin Can Article
- Brief article explaining in normal language what xAPI really is
- Includes additional sources of information, should you wish to do more research