twitter data parsing
Posted by Taylor Bernard on October 1, 2015
what about this.
getting it to this level help you out. no idea how to break those data parts apart and put them in different divs though
http://codepen.io/anon/pen/WQpbLe
getting it to this level help you out. no idea how to break those data parts apart and put them in different divs though
http://codepen.io/anon/pen/WQpbLe
Comments
Taylor Bernard on October 2, 2015:
Justin Bernard on October 2, 2015:
http://codepen.io/anon/pen/ZbeKZr
works fine. you can see i just modded the JS plugin a bit (i unminified/beautified it)
i then hard coded in 5 paths, assigning specific tweet content to each
you should be able to look at the JS and see where i called out tweet0, tweet1, etc. should be able to just point it to divs in the working site and be all good
only possible mod will be to make it match the tweet count we need. its fixed, but i just guessed at it being 5. let me know if need help, but you should be able to patch it together now.
Taylor Bernard on October 2, 2015:
hows the html breaking though?
it looks like theres a
<p class="tweet"> AUTO FILL WITH RETURN VALUE</p>
and for some reason its printing the html as well? hows that getting injected and how to remove it.
Justin Bernard on October 2, 2015:
http://codepen.io/anon/pen/ZbeKZr
whats breaking?
put this js in a seperate js file, and ill organize later on
Taylor Bernard on October 2, 2015:
Taylor Bernard on October 2, 2015:
var g = [],
f = [],
h = [],
b = [],
m = [],
t = [],
e = 0;
are those just predefined variables in another library or something, so he's able to make shorthand out of them?
Justin Bernard on October 5, 2015:
in basecamp you had note about some css bug, what was that?
what have you been working on today already?
Taylor Bernard on October 5, 2015:
now i'm trying to put in a jquery code snippet to limit character count of a div and append a '...' to the end of the string. so it doesnt overflow big tweets out of the widget
Justin Bernard on October 5, 2015:
is it 100% except for the trimming of characters now?
that will need to be done with something like this
http://stackoverflow.com/questions/5275021/how-to-cut-off-text-inside-a-div-when-it-reaches-a-certain-of-characters-in-jq
it will have to be done within the function that assigns the text to the div, so that it waits for that text to be loaded first, then trimmed
Taylor Bernard on October 5, 2015:
i fixed the twitter bug this morning.
Justin Bernard on October 5, 2015:
twiter bug you fixed this morning the one to limit it to a char count? or something else?
Taylor Bernard on October 5, 2015:
Justin Bernard on October 5, 2015:
have you found good trimming code snippet yet?
Taylor Bernard on October 5, 2015:
looks to do the same thing right.
http://stackoverflow.com/questions/19425555/maximum-amount-of-characters-in-a-div-paragraph-tag
Taylor Bernard on October 5, 2015:
also found this one but couldnt get it to work, he's using the 'txt' method and a lot of the other ones say you have to use the 'html' method for the string.
http://jsfiddle.net/markcoleman/bjKAQ/
Justin Bernard on October 6, 2015:
http://client.fleeangrybear.com/cccd/seco/social.html
var currently set to maxLength = 100, need to later trim to fit the avail text space
Taylor Bernard on October 7, 2015:
Justin Bernard on October 8, 2015:
Taylor Bernard on October 8, 2015:
Justin Bernard on October 8, 2015:
Taylor Bernard on October 8, 2015:
Justin Bernard on October 8, 2015: