What I'm Working On
This is for a help / tutorial / fan based website in which some content and resources will be shown on the external site. Amongst their lengthy API does not include their newsfeed what has been recently added and whatnot. I am working on a manual method for a few helpers of the site, upon this feed coming available, they can simply copy and paste, very little experience needed.
Example Post To Paste
Enter Paste On CodePen
Problems Occuring
I do not know how to call the function `enableSelectBoxes();` for the newly appened items without breaking the existing ones. Upon pasting the example above, the three existing will break, but all new ones will be good.
Question On How To
I have looped through the paste twice and there are a few things I would like to know how to do
This is for a help / tutorial / fan based website in which some content and resources will be shown on the external site. Amongst their lengthy API does not include their newsfeed what has been recently added and whatnot. I am working on a manual method for a few helpers of the site, upon this feed coming available, they can simply copy and paste, very little experience needed.
Example Post To Paste
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vitae nisi ultricies, dapibus augue sit amet, malesuada lorem. Suspendisse ultricies ante quam, sit amet pellentesque erat interdum et. Sed interdum.
- Released Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- Released Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- Released Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- Changed Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- Changed Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- Changed Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- Increased Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- Fixed Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- Fixed Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- [Category_1] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- [Category_2] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- [Category_2] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- [Category_3] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi a venenatis enim. Aenean tempor, enim a convallis volutpat, lectus lorem.
- Released Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- Released Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- Released Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- Changed Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- Changed Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- Changed Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- Increased Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- Fixed Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- Fixed Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- [Category_1] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- [Category_2] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- [Category_2] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
- [Category_3] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla fermentum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi a venenatis enim. Aenean tempor, enim a convallis volutpat, lectus lorem.
Enter Paste On CodePen
Problems Occuring
I do not know how to call the function `enableSelectBoxes();` for the newly appened items without breaking the existing ones. Upon pasting the example above, the three existing will break, but all new ones will be good.
Question On How To
I have looped through the paste twice and there are a few things I would like to know how to do
- Within the select options, how can I add `<selected>` on the correct option either during or after the loops?
- How can I isolate all above this scope, my example shows one paragraph where there might be multiple
- Same as above, but all below this scope.