Here's the new workflow for adding a Yankees Sluggers widget to an article:
- Go to https://github.com/nydailynews/yankee-derby#in-article-widgets . That will take you to the part of the page where the markup is for each of the three widgets.
- Choose which of the three widgets you want and triple-click the line with that markup.
- You should have the line with the markup selected now. Copy it to your clipboard.
- In SNAP, edit the article you want to add the widget to. Then:
- Create a new HTML embed.
- Paste the contents of your clipboard into the field.
- It should look something like this:
<iframe id="sluggers-all" scrolling="no" style="width: 100%; height: 180px; border: 0;" src="http://interactive.nydailynews.com/project/yankees-sluggers-tracker/widget-sentence.html"></iframe>
<iframe id="sluggers-stanton" scrolling="no" style="width: 100%; height: 180px; border: 0;" src="http://interactive.nydailynews.com/project/yankees-sluggers-tracker/widget-sentence.html#stanton"></iframe>
<iframe id="sluggers-judge" scrolling="no" style="width: 100%; height: 180px; border: 0;" src="http://interactive.nydailynews.com/project/yankees-sluggers-tracker/widget-sentence.html#judge"></iframe>