Skip to content

Commit

Permalink
began working on a 'img' module that will automatically grab the firs…
Browse files Browse the repository at this point in the history
…t twitter picture link and post it. code in index.ejs under twitter feed.... someone finish it... i'm sleepy
  • Loading branch information
poofytoo committed Apr 26, 2013
1 parent 9d7db44 commit 72793a1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
6 changes: 4 additions & 2 deletions node/public/stylesheets/style2.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,16 @@ b{
background-color: #39DB4F;
}
.fancy-header{
background-color: #E02671;
background-color: #CC38F5;
/* background-color: #88D1ED; */
}
.date-header{
background-color: #FF9D00;
/* background-color: #88D1ED; */
}

.img-header{
background-color: #CC38F5;
}
#fancy{
font-size: 1.6em;
font-weight: 300;
Expand Down
26 changes: 25 additions & 1 deletion node/views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,21 @@
$("#weatherbanner").delay(500).slideDown("slow");
$("#tweetpanel").delay(600).slideDown("slow");
t = setInterval(function(){
if ($("#tweet_feed").html() != ""){
clearInterval(t);
processPic();
}
},300);
function processPic(){
tweetfeed = $("#tweet_feed").html();
match = tweetfeed.match(/pic\.twitter([^<]+)/);
imgurl = match[0];
$("#img").html("<img src='http://" + imgurl + "' />");
$("#imgpanel").delay(600).slideDown("slow");
}
});
</script>

Expand Down Expand Up @@ -127,7 +142,16 @@
</div>
</div>
</div>

<!--
<div class="row">
<div class="large-12 columns" id='imgpanel'>
<h3 class='img-header'>Image</h3>
<div class='panel'>
<div id="img"></div>
</div>
</div>
</div>
-->
</div>
<!--
<div id='' class='panel'>
Expand Down

0 comments on commit 72793a1

Please sign in to comment.