mirror of
https://github.com/correl/melpa.git
synced 2024-12-22 03:00:11 +00:00
Less hacky method of loading twitter widget js
This commit is contained in:
parent
085c03104a
commit
56d565f82c
2 changed files with 2 additions and 11 deletions
|
@ -49,7 +49,6 @@
|
|||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/Cookies.js/1.1.0/cookies.min.js"></script>
|
||||
<script src="js/melpa.js"></script>
|
||||
<script src="http://platform.twitter.com/widgets.js" type="text/javascript" async="async"></script>
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
|
|
|
@ -541,7 +541,8 @@
|
|||
]),
|
||||
m(".col-md-4", [
|
||||
melpa.buildstatus.view(ctrl.buildstatus),
|
||||
m.trust('<a class="twitter-timeline" data-dnt="true" data-related="milkypostman,sanityinc" href="https://twitter.com/melpa_emacs" data-widget-id="311867756586864640">Tweets by @melpa_emacs</a>')
|
||||
m.trust('<a class="twitter-timeline" data-dnt="true" data-related="milkypostman,sanityinc" href="https://twitter.com/melpa_emacs" data-widget-id="311867756586864640">Tweets by @melpa_emacs</a>'),
|
||||
m('script', {src: "http://platform.twitter.com/widgets.js", type: "text/javascript"})
|
||||
])
|
||||
]),
|
||||
melpa.packagelist.view(ctrl.packagelist)
|
||||
|
@ -560,13 +561,4 @@
|
|||
"/getting-started": melpa.gettingstarted,
|
||||
"/:package": melpa.packagedetails
|
||||
});
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// Lazily initialise twitter widgets as they appear
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
window.setInterval(function() {
|
||||
if (window.twttr && window.twttr.widgets) window.twttr.widgets.load();
|
||||
}, 100);
|
||||
|
||||
})(window.m, window.document, window._, window.moment, window.jQuery, window.Cookies);
|
||||
|
|
Loading…
Reference in a new issue