Blogger automatically inserts line breaks to your code which inevitably disrupts the functionality of your javascript. To resolve this, simply
edit your javascript and delete all the line breaks in 'windows' notepad or other text editing software, then insert your revised code on your blog post with the html tab enabled. This should allow your javascript to execute correctly.
Reference: Add Javascript In Blogger Blogspot Post
Hope this helps!
Don't Play If You Can't Take It
10 years ago