At Planet X/On-One in the UK we have a slightly archaic CMS for the retail side of things
One of the things that really niggles is the code used to put “bullet points” down the side of pictures.
To generate the four bullet points down the side of the main photo we need to put this text below into a box.
{“1″:”N2A is our most technical road frame ever”,”2″:”SRAM Force BB30 crankiest”,”3″:”52mm alloy/carbon clincher wheelset”,”4″:”Amazing value high spec contemporary road bike”}
SO:-
Can you write us a little web page that we put the bullet points in, and then it magically “builds” us the code to paste into the box?
It should allow up to 10 bullet points, and magically do the codey thing.
I could probably do it in excel if I was clever, but I’m not. And I know there are a lot of clever people out there. Please help if you can. We will send biscuits and love.
Posted via email from shedfire’s dumping ground
Vinnie 6:07 pm on July 4, 2012 | #
Here you go => http://jsfiddle.net/WhMbq/10/
Please follow the instructions found on the code snippet for the usage.
Vinnie 6:10 pm on July 4, 2012 | #
Hit “Run” button every time you edit the data to get the result.
D. 10:12 pm on July 5, 2012 | #
Us IT people don’t work for free, just like you don’t give away frames. Shame on you Vinnie.
BigBug 1:39 am on July 7, 2012 | #
I can do the page needed on monday. Not now because i’m drunk and don’t want to do any work on sundays 🙂
szaboat 10:52 am on July 8, 2012 | #
http://jsfiddle.net/szaboat/KqFxA/4/embedded/result/
it splits the text on new line characters, works as you type or you can initiate the formatting but hitting the button.
szaboat 10:54 am on July 8, 2012 | #
http://jsfiddle.net/szaboat/KqFxA/5/embedded/result/ fixed 🙂