@Nabiki beat me to the punch! I agree with her, but you will need to check on it often and make sure it stays hydrated and clean any poop from the glass.
I have done this with day old chicks and they improved and got their legs under them, within a day. Good luck with yours!
ETA- put some cloth...