-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.min.js
1 lines (1 loc) · 1.12 KB
/
app.min.js
1
jQuery(document).ready(function(){"use strict";function e(e){e=e||window.event,"38"==e.keyCode?(jQuery("#tweet").animate({scrollTop:0},1e3),e.stopPropagation()):"40"==e.keyCode?(jQuery("#tweet").animate({scrollTop:jQuery("#tweet").scrollTop()+jQuery(window).height()-20},1e3),e.stopPropagation()):"37"==e.keyCode&jQuery("body").hasClass("open")?t():"39"==e.keyCode&!jQuery("body").hasClass("open")&&t()}var t=function(){jQuery("body, #widget-left").toggleClass("open"),jQuery(".widget-button i").toggleClass("icon-arrow-right icon-arrow-left"),jQuery("body").hasClass("open")||jQuery("#tweet").twittie({username:"renta4",list:"renta4",dateFormat:"%b. %d, %Y",template:'{{tweet}} <div class="date">{{date}}</div>',count:25,loadingText:""})};jQuery(".widget-button").click(function(){t()}),jQuery("#tweet").twittie({username:"renta4",list:"renta4",dateFormat:"%b. %d, %Y",template:'{{tweet}} <div class="date">{{date}}</div>',count:25,loadingText:""}),jQuery("body").swipe({swipe:function(e,o){"left"===o&jQuery("body").hasClass("open")&&t(),"right"===o&!jQuery("body").hasClass("open")&&t()},allowPageScroll:"vertical"}),document.onkeydown=e});