A court has heard Adelaide mother Crystal Hanley took drugs and laughed off her daughter's deteriorating condition until the child took her final breath.