diff --git a/coc.html b/coc.html index 067acc7..6dfd37f 100644 --- a/coc.html +++ b/coc.html @@ -21,6 +21,7 @@ + @@ -200,6 +201,9 @@

License

+ + + diff --git a/css/twitter-post-fetcher.css b/css/twitter-post-fetcher.css new file mode 100644 index 0000000..80efd37 --- /dev/null +++ b/css/twitter-post-fetcher.css @@ -0,0 +1,407 @@ +/* + Twitter Post CSS + author: Amit Singh (amitsin6h) +*/ + +.timeline-sec { +float: left; +width: 100%; +} +.timeline-sec > ul { +float: left; +list-style: none outside none; +margin: 0; +padding: 0; +position: relative; +width: 100%; +} + +.timeline-sec > ul:before { +background: none repeat scroll 0 0 #7A97BE; +content: ""; +height: 100%; +left: 22px; +position: absolute; +top: 0; +width: 2px; +} + + +.timeline-sec > ul > li { +float: left; +list-style: none outside none; +margin-bottom: 30px; +position: relative; +width: 100%; +} + +.timeline { +float: left; +padding-left: 70px; +position: relative; +width: 100%; +} + +.user-timeline { +left: 0; +position: absolute; +top: 0; +width: 70px; +} + +.user-timeline > span { +float: left; +position: relative; +width: 100%; +} + +.user-timeline > span > img { +border: 3px solid #7A97BE; +-webkit-border-radius: 50%; +-moz-border-radius: 50%; +-ms-border-radius: 50%; +-o-border-radius: 50%; +border-radius: 50%; +float: left; +height: 50px; +overflow: hidden; +width: 50px; +} + +.timeline-detail { +background: none repeat scroll 0 0 #fff; +float: left; +position: relative; +width: 100%; +box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); +} + +.timeline-detail:before { +border-bottom: 8px solid transparent; +border-right: 8px solid #51B0CF; +border-top: 8px solid transparent; +content: ""; +left: -7px; +position: absolute; +top: 12px; +} +.timeline-head { +background: none repeat scroll 0 0 #51B0CF; +float: left; +width: 100%; +} + +.timeline-head > h3 { +color: #fff; +float: left; +font-family: Roboto; +font-size: 18px; +font-weight: bold; +letter-spacing: 0.3px; +line-height: 22px; +margin: 0; +padding: 9px 0 9px 20px; +} + +.timeline-head > h3 > span { +color: #ececec; +font-size: 12px; +letter-spacing: 0.3px; +margin-left: 20px; +margin-right: 12px; +} +.timeline-head > h3 > i { +font-family: Lato; +font-size: 11px; +font-style: normal; +letter-spacing: 0.3px; +padding: 2px 6px; +} +.date{ + float: right; + padding-top: 15px; + padding-right: 20px; + font-weight: bold; + color: #fff; +} + +.timeline-content { +float: left; +padding: 15px 20px; +width: 100%; +} +.btn { + background: none; + color: #5BC0DE; + -webkit-transition: all .3s ease; + -moz-transition: all .3s ease; + transition: all .3s ease; + min-width: 155px; +} +.btn:hover { + background: none; + color: #fff; + border-color: #7A97BE; + background-color: #7A97BE; +} + +.post-reply > textarea { +background: none repeat scroll 0 0 rgba(0, 0, 0, 0); +border: medium none; +-webkit-border-radius: 0; +-moz-border-radius: 0; +-ms-border-radius: 0; +-o-border-radius: 0; +border-radius: 0; +-webkit-box-shadow: none; +-moz-box-shadow: none; +-ms-box-shadow: none; +-o-box-shadow: none; +box-shadow: none; +color: #888888; +float: left; +font-family: Roboto; +font-size: 13px; +height: 36px; +letter-spacing: 0.3px; +padding: 7px 45px 7px 19px; +resize: vertical; +-webkit-transition: all 0.4s ease 0s; +-moz-transition: all 0.4s ease 0s; +-ms-transition: all 0.4s ease 0s; +-o-transition: all 0.4s ease 0s; +transition: all 0.4s ease 0s; +width: 100%; +} + +.progress.w-tooltip > .progress-bar { +-webkit-border-radius: 0; +-moz-border-radius: 0; +-ms-border-radius: 0; +-o-border-radius: 0; +border-radius: 0; +-webkit-box-shadow: none; +-moz-box-shadow: none; +-ms-box-shadow: none; +-o-box-shadow: none; +box-shadow: none; +position: relative; +} +.purple, .menu ul li:hover > a, .support-ticket .new, .toggle-switch span:before, .actionBar > a.buttonFinish, .error-sec ul > li:before { +background: -moz-linear-gradient(top, #8a7aff 0%, #715eff 100%); +background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#715eff), color-stop(100%,#f9f9f9)); +background: -webkit-linear-gradient(top, #8a7aff 0%,#715eff 100%); +background: -o-linear-gradient(top, #8a7aff 0%,#715eff 100%); +background: -ms-linear-gradient(top, #8a7aff 0%,#715eff 100%); +background: linear-gradient(to bottom, #8a7aff 0%,#715eff 100%); +color: #fff; +} +.progress-bar { +float: left; +width: 0; +height: 100%; +font-size: 12px; +line-height: 20px; +color: #fff; +text-align: center; +background-color: #337ab7; +box-shadow: none; +-webkit-transition: width .6s ease; +-o-transition: width .6s ease; +transition: width .6s ease; +} + +.timeline-gallery { +float: left; +margin-top: 15px; +width: 100%; +} +.timeline-gallery > ul { +float: left; +list-style: none outside none; +margin: -10px 0 0; +padding: 0; +width: 100%; +} +.timeline-gallery > ul > li { +float: left; +margin-right: 10px; +margin-top: 10px; +} + +.timeline-gallery > ul > li > a { +-webkit-border-radius: 50%; +-moz-border-radius: 50%; +-ms-border-radius: 50%; +-o-border-radius: 50%; +border-radius: 50%; +float: left; +overflow: hidden; +position: relative; +width: 100%; +} + +.timeline-gallery > ul > li > a:before { +background: none repeat scroll 0 0 rgba(255, 255, 255, 0.8); +-webkit-border-radius: 50%; +-moz-border-radius: 50%; +-ms-border-radius: 50%; +-o-border-radius: 50%; +border-radius: 50%; +content: ""; +height: 90%; +left: 5%; +opacity: 0; +position: absolute; +top: 5%; +-webkit-transform: scale(0.5); +-moz-transform: scale(0.5); +-ms-transform: scale(0.5); +-o-transform: scale(0.5); +transform: scale(0.5); +-webkit-transition: all 0.4s ease 0s; +-moz-transition: all 0.4s ease 0s; +-ms-transition: all 0.4s ease 0s; +-o-transition: all 0.4s ease 0s; +transition: all 0.4s ease 0s; +width: 90%; +} + +.timeline-gallery > ul > li > a i { +color: #fff; +left: 0; +margin-top: -5px; +opacity: 0; +position: absolute; +text-align: center; +top: 50%; +-webkit-transform: scale(2); +-moz-transform: scale(2); +-ms-transform: scale(2); +-o-transform: scale(2); +transform: scale(2); +-webkit-transition: all 0.4s ease 0s; +-moz-transition: all 0.4s ease 0s; +-ms-transition: all 0.4s ease 0s; +-o-transition: all 0.4s ease 0s; +transition: all 0.4s ease 0s; +width: 100%; +z-index: 9; +} + +.timeline-gallery > ul > li > a > img { +-webkit-border-radius: 50%; +-moz-border-radius: 50%; +-ms-border-radius: 50%; +-o-border-radius: 50%; +border-radius: 50%; +float: left; +width: 70px; +height:70px; +} +.post-reply { +background: none repeat scroll 0 0 #ffffff; +float: left; +margin-top: 11px; +position: relative; +width: 100%; +} +.timeline-content > .btn-group { +float: left; +margin-top: 15px; +width: 100%; +} +.green, .support-ticket .done, .edit-remove > li > .edit, .toggle-switch *:checked + span:before, .friend-list li > span.online:before { +background: -moz-linear-gradient(top, #0fce33 0%, #07bf29 100%); +background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#07bf29), color-stop(100%,#f9f9f9)); +background: -webkit-linear-gradient(top, #0fce33 0%,#07bf29 100%); +background: -o-linear-gradient(top, #0fce33 0%,#07bf29 100%); +background: -ms-linear-gradient(top, #0fce33 0%,#07bf29 100%); +background: linear-gradient(to bottom, #0fce33 0%,#07bf29 100%); +color: #fff; +} +.timeline-content > .btn-group > label { +-webkit-border-radius: 0 !important; +-moz-border-radius: 0 !important; +-ms-border-radius: 0 !important; +-o-border-radius: 0 !important; +border-radius: 0 !important; +-webkit-box-shadow: none; +-moz-box-shadow: none; +-ms-box-shadow: none; +-o-box-shadow: none; +box-shadow: none; +font-family: Roboto; +font-size: 11px; +letter-spacing: 0.3px; +padding: 2px 8px; +} +.post-reply > i { +color: #999999; +font-size: 14px; +margin-top: -7px; +position: absolute; +right: 13px; +top: 50%; +} + +.timeline-gallery > ul > li > a:hover:before { +opacity: 1; +-webkit-transform: scale(1); +-moz-transform: scale(1); +-ms-transform: scale(1); +-o-transform: scale(1); +transform: scale(1); +} +.timeline-gallery > ul > li > a:before { +background: none repeat scroll 0 0 rgba(255, 255, 255, 0.8); +-webkit-border-radius: 50%; +-moz-border-radius: 50%; +-ms-border-radius: 50%; +-o-border-radius: 50%; +border-radius: 50%; +content: ""; +height: 90%; +left: 5%; +opacity: 0; +position: absolute; +top: 5%; +-webkit-transform: scale(0.5); +-moz-transform: scale(0.5); +-ms-transform: scale(0.5); +-o-transform: scale(0.5); +transform: scale(0.5); +-webkit-transition: all 0.4s ease 0s; +-moz-transition: all 0.4s ease 0s; +-ms-transition: all 0.4s ease 0s; +-o-transition: all 0.4s ease 0s; +transition: all 0.4s ease 0s; +width: 90%; +} + + + + +/*css media queries*/ + @media (max-width: 320px) { + .btn-group { + position: relative; + right: 15px; + } +} +@media (max-width: 768px) { + .btn-responsive { + padding:2px 4px; + font-size:80%; + line-height: 1; + border-radius:3px; + } +} + +@media (min-width: 769px) and (max-width: 992px) { + .btn-responsive { + padding:4px 9px; + font-size:90%; + line-height: 1.2; + } +} diff --git a/faqs.html b/faqs.html index 84c6f67..7df8ae0 100644 --- a/faqs.html +++ b/faqs.html @@ -21,6 +21,7 @@ + @@ -295,6 +296,9 @@

Q.My question is not listed here / I am still unclear about a f + + + diff --git a/gallery.html b/gallery.html index e7df163..508b4b2 100644 --- a/gallery.html +++ b/gallery.html @@ -21,6 +21,7 @@ + @@ -622,6 +623,9 @@

Our Events Gallery

+ + + diff --git a/index.html b/index.html index 077181f..f8df857 100644 --- a/index.html +++ b/index.html @@ -21,6 +21,7 @@ + @@ -2581,7 +2582,7 @@

The Midland Thai Ho...

-
@@ -2591,7 +2592,7 @@

The Midland Thai Ho...

Always Stay Updated

-

Latest Tweets

+

Latest Tweets

Keep watching this space for latest news and announcements.

@@ -2599,14 +2600,8 @@

Latest Tweets

-
- - +
+
+ + + diff --git a/js/vendor/twitter-post-fetcher-config.js b/js/vendor/twitter-post-fetcher-config.js new file mode 100644 index 0000000..20dc655 --- /dev/null +++ b/js/vendor/twitter-post-fetcher-config.js @@ -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); + diff --git a/js/vendor/twitter-post-fetcher.js b/js/vendor/twitter-post-fetcher.js new file mode 100644 index 0000000..27c99bc --- /dev/null +++ b/js/vendor/twitter-post-fetcher.js @@ -0,0 +1,445 @@ +/********************************************************************* +* #### Twitter Post Fetcher v17.0.1 #### +* Coded by Jason Mayes 2015. A present to all the developers out there. +* www.jasonmayes.com +* Please keep this disclaimer with my code if you use it. Thanks. :-) +* Got feedback or questions, ask here: +* http://www.jasonmayes.com/projects/twitterApi/ +* Github: https://github.com/jasonmayes/Twitter-Post-Fetcher +* Updates will be posted to this site. +*********************************************************************/ + +/* + **Twitter Post Fetcher** + Modified by: Amit Singh(amitsin6h) +*/ + + + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. Register as an anonymous module. + define([], factory); + } else if (typeof exports === 'object') { + // Node. Does not work with strict CommonJS, but + // only CommonJS-like environments that support module.exports, + // like Node. + module.exports = factory(); + } else { + // Browser globals. + factory(); + } +}(this, function() { + var domNode = ''; + var maxTweets = 20; + var parseLinks = true; + var queue = []; + var inProgress = false; + var printTime = true; + var printUser = true; + var formatterFunction = null; + var supportsClassName = true; + var showRts = true; + var customCallbackFunction = null; + var showInteractionLinks = true; + var showImages = false; + var useEmoji = false; + var targetBlank = true; + var lang = 'en'; + var permalinks = true; + var dataOnly = false; + var script = null; + var scriptAdded = false; + + function handleTweets(tweets){ + if (customCallbackFunction === null) { + var x = tweets.length; + var n = 0; + var element = document.getElementById(domNode); + var html = '
'+ + '
'+ + '
'+ + '
    '; + while(n < x) { + html += '
  • ' + tweets[n] + '
  • '; + n++; + } + html += '
'; + element.innerHTML = html; + } else { + customCallbackFunction(tweets); + } + } + + function strip(data) { + return data.replace(/]*>(.*?)<\/b>/gi, function(a,s){return s;}) + .replace(/class="(?!(tco-hidden|tco-display|tco-ellipsis))+.*?"|data-query-source=".*?"|dir=".*?"|rel=".*?"/gi, + ''); + } + + function targetLinksToNewWindow(el) { + var links = el.getElementsByTagName('a'); + for (var i = links.length - 1; i >= 0; i--) { + links[i].setAttribute('target', '_blank'); + } + } + + function getElementsByClassName (node, classname) { + var a = []; + var regex = new RegExp('(^| )' + classname + '( |$)'); + var elems = node.getElementsByTagName('*'); + for (var i = 0, j = elems.length; i < j; i++) { + if(regex.test(elems[i].className)){ + a.push(elems[i]); + } + } + return a; + } + + function extractImageUrl(image_data) { + if (image_data !== undefined && image_data.innerHTML.indexOf('data-srcset') >= 0) { + var data_src = image_data.innerHTML + .match(/data-srcset="([A-z0-9%_\.-]+)/i)[0]; + return decodeURIComponent(data_src).split('"')[1]; + } + } + + var twitterFetcher = { + fetch: function(config) { + if (config.maxTweets === undefined) { + config.maxTweets = 20; + } + if (config.enableLinks === undefined) { + config.enableLinks = true; + } + if (config.showUser === undefined) { + config.showUser = true; + } + if (config.showTime === undefined) { + config.showTime = true; + } + if (config.dateFunction === undefined) { + config.dateFunction = 'default'; + } + if (config.showRetweet === undefined) { + config.showRetweet = true; + } + if (config.customCallback === undefined) { + config.customCallback = null; + } + if (config.showInteraction === undefined) { + config.showInteraction = true; + } + if (config.showImages === undefined) { + config.showImages = false; + } + if (config.useEmoji === undefined) { + config.useEmoji = false; + } + if (config.linksInNewWindow === undefined) { + config.linksInNewWindow = true; + } + if (config.showPermalinks === undefined) { + config.showPermalinks = true; + } + if (config.dataOnly === undefined) { + config.dataOnly = false; + } + + if (inProgress) { + queue.push(config); + } else { + inProgress = true; + + domNode = config.domId; + maxTweets = config.maxTweets; + parseLinks = config.enableLinks; + printUser = config.showUser; + printTime = config.showTime; + showRts = config.showRetweet; + formatterFunction = config.dateFunction; + customCallbackFunction = config.customCallback; + showInteractionLinks = config.showInteraction; + showImages = config.showImages; + useEmoji = config.useEmoji; + targetBlank = config.linksInNewWindow; + permalinks = config.showPermalinks; + dataOnly = config.dataOnly; + + var head = document.getElementsByTagName('head')[0]; + if (script !== null) { + head.removeChild(script); + } + script = document.createElement('script'); + script.type = 'text/javascript'; + if (config.list !== undefined) { + script.src = 'https://syndication.twitter.com/timeline/list?' + + 'callback=__twttrf.callback&dnt=false&list_slug=' + + config.list.listSlug + '&screen_name=' + config.list.screenName + + '&suppress_response_codes=true&lang=' + (config.lang || lang) + + '&rnd=' + Math.random(); + } else if (config.profile !== undefined) { + script.src = 'https://syndication.twitter.com/timeline/profile?' + + 'callback=__twttrf.callback&dnt=false' + + '&screen_name=' + config.profile.screenName + + '&suppress_response_codes=true&lang=' + (config.lang || lang) + + '&rnd=' + Math.random(); + } else if (config.likes !== undefined) { + script.src = 'https://syndication.twitter.com/timeline/likes?' + + 'callback=__twttrf.callback&dnt=false' + + '&screen_name=' + config.likes.screenName + + '&suppress_response_codes=true&lang=' + (config.lang || lang) + + '&rnd=' + Math.random(); + } else { + script.src = 'https://cdn.syndication.twimg.com/widgets/timelines/' + + config.id + '?&lang=' + (config.lang || lang) + + '&callback=__twttrf.callback&' + + 'suppress_response_codes=true&rnd=' + Math.random(); + } + head.appendChild(script); + } + }, + callback: function(data) { + if (data === undefined || data.body === undefined) { + inProgress = false; + + if (queue.length > 0) { + twitterFetcher.fetch(queue[0]); + queue.splice(0,1); + } + return; + } + + // Remove emoji and summary card images. + if(!useEmoji){ + data.body = data.body.replace(/(]*>)|(]*>)/g, ''); + } + + // Remove display images. + if (!showImages) { + data.body = data.body.replace(/(]*>|(]*>))/g, ''); + } + // Remove avatar images. + if (!printUser) { + data.body = data.body.replace(/(]*>)/g, ''); + } + + var div = document.createElement('div'); + div.innerHTML = data.body; + if (typeof(div.getElementsByClassName) === 'undefined') { + supportsClassName = false; + } + + function swapDataSrc(element) { + var avatarImg = element.getElementsByTagName('img')[0]; + avatarImg.src = avatarImg.getAttribute('data-src-2x'); + return element; + } + + var tweets = []; + var authors = []; + var times = []; + var images = []; + var rts = []; + var tids = []; + var permalinksURL = []; + var x = 0; + + if (supportsClassName) { + var tmp = div.getElementsByClassName('timeline-Tweet'); + while (x < tmp.length) { + if (tmp[x].getElementsByClassName('timeline-Tweet-retweetCredit').length > 0) { + rts.push(true); + } else { + rts.push(false); + } + if (!rts[x] || rts[x] && showRts) { + tweets.push(tmp[x].getElementsByClassName('timeline-Tweet-text')[0]); + tids.push(tmp[x].getAttribute('data-tweet-id')); + if (printUser) { + authors.push(swapDataSrc(tmp[x].getElementsByClassName('timeline-Tweet-author')[0])); + } + times.push(tmp[x].getElementsByClassName('dt-updated')[0]); + permalinksURL.push(tmp[x].getElementsByClassName('timeline-Tweet-timestamp')[0]); + if (tmp[x].getElementsByClassName('timeline-Tweet-media')[0] !== + undefined) { + images.push(tmp[x].getElementsByClassName('timeline-Tweet-media')[0]); + } else { + images.push(undefined); + } + } + x++; + } + } else { + var tmp = getElementsByClassName(div, 'timeline-Tweet'); + while (x < tmp.length) { + if (getElementsByClassName(tmp[x], 'timeline-Tweet-retweetCredit').length > 0) { + rts.push(true); + } else { + rts.push(false); + } + if (!rts[x] || rts[x] && showRts) { + tweets.push(getElementsByClassName(tmp[x], 'timeline-Tweet-text')[0]); + tids.push(tmp[x].getAttribute('data-tweet-id')); + if (printUser) { + authors.push(swapDataSrc(getElementsByClassName(tmp[x],'timeline-Tweet-author')[0])); + } + times.push(getElementsByClassName(tmp[x], 'dt-updated')[0]); + permalinksURL.push(getElementsByClassName(tmp[x], 'timeline-Tweet-timestamp')[0]); + if (getElementsByClassName(tmp[x], 'timeline-Tweet-media')[0] !== undefined) { + images.push(getElementsByClassName(tmp[x], 'timeline-Tweet-media')[0]); + } else { + images.push(undefined); + } + } + x++; + } + } + + if (tweets.length > maxTweets) { + tweets.splice(maxTweets, (tweets.length - maxTweets)); + authors.splice(maxTweets, (authors.length - maxTweets)); + times.splice(maxTweets, (times.length - maxTweets)); + rts.splice(maxTweets, (rts.length - maxTweets)); + images.splice(maxTweets, (images.length - maxTweets)); + permalinksURL.splice(maxTweets, (permalinksURL.length - maxTweets)); + } + + var arrayTweets = []; + var x = tweets.length; + var n = 0; + if (dataOnly) { + while (n < x) { + arrayTweets.push({ + tweet: tweets[n].innerHTML, + author: authors[n] ? authors[n].innerHTML : 'Unknown Author', + time: times[n].textContent, + timestamp: times[n].getAttribute('datetime').replace('+0000', 'Z').replace(/([\+\-])(\d\d)(\d\d)/, '$1$2:$3'), + image: extractImageUrl(images[n]), + rt: rts[n], + tid: tids[n], + permalinkURL: (permalinksURL[n] === undefined) ? + '' : permalinksURL[n].href + }); + n++; + } + } else { + while (n < x) { + if (typeof(formatterFunction) !== 'string') { + var datetimeText = times[n].getAttribute('datetime'); + var newDate = new Date(times[n].getAttribute('datetime') + .replace(/-/g,'/').replace('T', ' ').split('+')[0]); + var dateString = formatterFunction(newDate, datetimeText); + times[n].setAttribute('aria-label', dateString); + + if (tweets[n].textContent) { + // IE hack. + if (supportsClassName) { + times[n].textContent = dateString; + } else { + var h = document.createElement('p'); + var t = document.createTextNode(dateString); + h.appendChild(t); + h.setAttribute('aria-label', dateString); + times[n] = h; + } + } else { + times[n].textContent = dateString; + } + } + var op = ''; + if (parseLinks) { + if (targetBlank) { + targetLinksToNewWindow(tweets[n]); + if (printUser) { + targetLinksToNewWindow(authors[n]); + } + } + if (printUser) { + op += '
' + strip(authors[n].getElementsByTagName("span")[0].innerHTML) + + '
'+ + '
'+ + '
'+ + '

'+ strip(authors[n].getElementsByTagName("span")[1].innerHTML)+ + '
'+ + ''+strip(authors[n].getElementsByTagName("span")[2].innerHTML)+'

'+ + ''+ times[n].textContent+''+ + '
'; + } + op += '
'+ + '

' + strip(tweets[n].innerHTML) + '

'; + } else { + if (tweets[n].textContent) { + if (printUser) { + op += '

' + authors[n].textContent + '

'; + } + op += '

' + tweets[n].textContent + '

'; + if (printTime) { + op += '

' + times[n].textContent + '

'; + } + + } else { + if (printUser) { + op += '

' + authors[n].textContent + '

'; + } + op += '

' + tweets[n].textContent + '

'; + if (printTime) { + op += '

' + times[n].textContent + '

'; + } + } + } + if (showImages && images[n] !== undefined && extractImageUrl(images[n]) !== undefined) { + op += '
' + + '

Image from tweet

' + '
'; + } + if (showInteractionLinks) { + op += '
'+ + '
'+ + ''+ + '
'+ + '
'+ + '
'+ + '
'; + } + if (showImages) { + arrayTweets.push(op); + } else if (!showImages && tweets[n].textContent.length) { + arrayTweets.push(op); + } + + n++; + } + } + + handleTweets(arrayTweets); + inProgress = false; + + if (queue.length > 0) { + twitterFetcher.fetch(queue[0]); + queue.splice(0,1); + } + } + }; + + // It must be a global variable because it will be called by JSONP. + window.__twttrf = twitterFetcher; + window.twitterFetcher = twitterFetcher; + return twitterFetcher; +})); + diff --git a/sponsors.html b/sponsors.html index 4411328..de37295 100644 --- a/sponsors.html +++ b/sponsors.html @@ -21,6 +21,7 @@ + @@ -260,6 +261,9 @@

Our Great Sponsers

+ + + diff --git a/sponsorship.html b/sponsorship.html index 3ac0b21..ef0a24a 100644 --- a/sponsorship.html +++ b/sponsorship.html @@ -21,6 +21,7 @@ + @@ -176,6 +177,9 @@

Sponsoring

+ + + diff --git a/templates/components/_base.jinja b/templates/components/_base.jinja index 4c7842b..dcf917e 100644 --- a/templates/components/_base.jinja +++ b/templates/components/_base.jinja @@ -21,6 +21,7 @@ + @@ -54,6 +55,9 @@ + + + diff --git a/templates/index.html b/templates/index.html index 9310f83..0f30363 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2279,124 +2279,7 @@

The Midland Thai Ho...

- -
-
-
-
-
-
-

Always Stay Updated

-

Latest Tweets

-
-
-

Keep watching this space for latest news and announcements.

-
-
-
-
-
- - -
- -
-
-
-
- + {% include 'sections/_tweets.html' %} diff --git a/templates/sections/_tweets.html b/templates/sections/_tweets.html new file mode 100644 index 0000000..1f26909 --- /dev/null +++ b/templates/sections/_tweets.html @@ -0,0 +1,112 @@ + +
+
+
+
+
+
+

Always Stay Updated

+

Latest Tweets

+
+
+

Keep watching this space for latest news and announcements.

+
+
+
+
+
+
+
+ +
+
+
+
+ \ No newline at end of file diff --git a/volunteer.html b/volunteer.html index a439c57..f275329 100644 --- a/volunteer.html +++ b/volunteer.html @@ -21,6 +21,7 @@ + @@ -201,6 +202,9 @@

+ + +