One thing written in the cardiogramine is not completely written, but the basic function has been implemented.
After paste the code into an HTM file, you can view the effect.
Look at the results