-
Notifications
You must be signed in to change notification settings - Fork 25.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Show Comments button #931
Conversation
@javiercn @Rick-Anderson @rachelappel @Erikre Please review |
I propose you do one of these two things:
Right you can repeatedly press the show comments, and there is no feedback to indicate nothing happens after the first time you press it |
@shirhatti I opted for # 2. |
#2 is the right choice. |
/* * * DON'T EDIT BELOW THIS LINE * * */ | ||
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; | ||
dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js'; | ||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've used a JQuery style DOM selector in line 1 and a vanilla js DOM selector in line 13. Maybe try and be consistent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part of the code is the recommended code snippet from the disqus docs, so I'm leaving it untouched.
@shirhatti Please review