Skip to content

Commit

Permalink
[FIX pythonindia#23] Added new twitter widget using twitter post fetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
amitsin6h committed Jul 18, 2017
1 parent cef541e commit 50b88be
Show file tree
Hide file tree
Showing 13 changed files with 697 additions and 127 deletions.
4 changes: 4 additions & 0 deletions coc.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<link rel="stylesheet" href="css/prettyPhoto.css">
<link rel="stylesheet" href="css/jquery.fullpage.css">
<link rel="stylesheet" href="css/transitions.css">
<link rel="stylesheet" href="css/twitter-post-fetcher.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/colors/color-3.css">
<link rel="stylesheet" href="css/responsive.css">
Expand Down Expand Up @@ -198,6 +199,9 @@ <h4>License</h4>
<!--************************************
Wrapper End
*************************************-->
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.3/moment.min.js"></script>
<script type="text/javascript" src="js/vendor/twitter-post-fetcher.js"></script>
<script type="text/javascript" src="js/vendor/twitter-post-fetcher-config.js"></script>
<script src="js/vendor/jquery-library.js"></script>
<script src="js/vendor/bootstrap.min.js"></script>
<script src="https://maps.google.com/maps/api/js?key=AIzaSyCR-KEWAVCn52mSdeVeTqZjtqbmVJyfSus&language=en"></script>
Expand Down
112 changes: 112 additions & 0 deletions css/twitter-post-fetcher.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
/*
* Example style!
* You can do whatever the hell you want on your site :-)
*/

@import url('https://fonts.googleapis.com/css?family=Open+Sans');

h2 {
clear:both;
}

p, .tdate {
font-size:17px;
font-family: 'Open Sans', sans-serif;
margin:10px 0 0 0;
color:#3d3d3d;
}

a, .tdate:visited {
color:#427fed;
}

.tdate:hover {
color:#82afff;
}

.tborder > li {
list-style:none;
overflow:hidden;
border:1px solid #dedede;
margin:5px;
padding:5px;
}

.tborder > li:hover {
background-color:#f0f3fb;
}

.user, .tweet, .timePosted {
float:left;
}

.user {
width:25%;
}

.tweet {
width:50%;
}

.timePosted {
width:15%;
}

.user {
clear:left;
}

.user a {
width: 100px;
}

.user span span {
width:100px;
display:block;
margin-top:10px;
}

.user img, .user a > span {
float:left;
}

.interact {
float:left;
width:10%;
margin-top:-7px;
}

.interact a {
margin-left:5px;
float:left;
}

.user a > span {
margin-left:10px;
}

.tmedia{
width: 25%;
margin: auto;
}

.tmedia img {
max-width:270px;
max-height:270px;
}

#linkage {
position:fixed;
top:0px;
right:0px;
background-color:#3d3d3d;
color:#ffffff;
text-decoration:none;
padding:5px;
width:10%;
font-family:arial;
}

.tco-hidden{
display: none;
}
4 changes: 4 additions & 0 deletions faqs.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<link rel="stylesheet" href="css/prettyPhoto.css">
<link rel="stylesheet" href="css/jquery.fullpage.css">
<link rel="stylesheet" href="css/transitions.css">
<link rel="stylesheet" href="css/twitter-post-fetcher.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/colors/color-3.css">
<link rel="stylesheet" href="css/responsive.css">
Expand Down Expand Up @@ -284,6 +285,9 @@ <h4><span>Q.</span>My question is not listed here / I am still unclear about a f
<!--************************************
Wrapper End
*************************************-->
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.3/moment.min.js"></script>
<script type="text/javascript" src="js/vendor/twitter-post-fetcher.js"></script>
<script type="text/javascript" src="js/vendor/twitter-post-fetcher-config.js"></script>
<script src="js/vendor/jquery-library.js"></script>
<script src="js/vendor/bootstrap.min.js"></script>
<script src="https://maps.google.com/maps/api/js?key=AIzaSyCR-KEWAVCn52mSdeVeTqZjtqbmVJyfSus&language=en"></script>
Expand Down
4 changes: 4 additions & 0 deletions gallery.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<link rel="stylesheet" href="css/prettyPhoto.css">
<link rel="stylesheet" href="css/jquery.fullpage.css">
<link rel="stylesheet" href="css/transitions.css">
<link rel="stylesheet" href="css/twitter-post-fetcher.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/colors/color-3.css">
<link rel="stylesheet" href="css/responsive.css">
Expand Down Expand Up @@ -620,6 +621,9 @@ <h3>Our Events Gallery</h3>
<!--************************************
Wrapper End
*************************************-->
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.3/moment.min.js"></script>
<script type="text/javascript" src="js/vendor/twitter-post-fetcher.js"></script>
<script type="text/javascript" src="js/vendor/twitter-post-fetcher-config.js"></script>
<script src="js/vendor/jquery-library.js"></script>
<script src="js/vendor/bootstrap.min.js"></script>
<script src="https://maps.google.com/maps/api/js?key=AIzaSyCR-KEWAVCn52mSdeVeTqZjtqbmVJyfSus&language=en"></script>
Expand Down
16 changes: 7 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<link rel="stylesheet" href="css/prettyPhoto.css">
<link rel="stylesheet" href="css/jquery.fullpage.css">
<link rel="stylesheet" href="css/transitions.css">
<link rel="stylesheet" href="css/twitter-post-fetcher.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/colors/color-3.css">
<link rel="stylesheet" href="css/responsive.css">
Expand Down Expand Up @@ -2582,7 +2583,7 @@ <h3><a href="">The Midland Thai Ho...</a></h3>
<!--************************************
Locations End
*************************************-->
<!--************************************
<!--************************************
Latest Tweet Start
*************************************-->
<section class="tg-sectionspace tg-haslayout">
Expand All @@ -2600,14 +2601,8 @@ <h3>Latest Tweets</h3>
</div>
</div>
<div class="tg-latestarticles">
<div class="col-sm-offset-2 col-sm-10 col-md-offset-3 col-md-6 col-lg-6">
<a class="twitter-timeline"
data-width="500"
data-tweet-limit="3"
data-chrome="nofooter noborders noscrollbar transparent noheader"
data-dnt='true'
href="https://twitter.com/pyconindia"></a>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
<div class="col-sm-12 col-md-12 col-lg-12">
<div id="pyconindiaTweets"></div>
</div>
<!--<div class="col-xs-12 col-sm-4 col-md-4 col-lg-4">
<article class="tg-post tg-themepost">
Expand Down Expand Up @@ -2749,6 +2744,9 @@ <h3><a href="">Gonna Make You An Offer You Can’t Refuse</a></h3>
<!--************************************
Wrapper End
*************************************-->
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.3/moment.min.js"></script>
<script type="text/javascript" src="js/vendor/twitter-post-fetcher.js"></script>
<script type="text/javascript" src="js/vendor/twitter-post-fetcher-config.js"></script>
<script src="js/vendor/jquery-library.js"></script>
<script src="js/vendor/bootstrap.min.js"></script>
<script src="https://maps.google.com/maps/api/js?key=AIzaSyCR-KEWAVCn52mSdeVeTqZjtqbmVJyfSus&language=en"></script>
Expand Down
14 changes: 14 additions & 0 deletions js/vendor/twitter-post-fetcher-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*Twitter Post Fetcher config*/

var configProfile = {
"profile": {"screenName": 'pyconindia'},
"domId": 'pyconindiaTweets',
"maxTweets": 5,
"enableLinks": true,
"showUser": true,
"showTime": true,
"showImages": true,
"lang": 'en'
};
twitterFetcher.fetch(configProfile);

Loading

0 comments on commit 50b88be

Please sign in to comment.