miniflux-legacy/assets/js/app.js

21 lines
529 B
JavaScript
Raw Normal View History

2013-10-15 04:38:07 +02:00
var Miniflux = {};
2013-02-24 20:04:56 +01:00
2013-10-15 04:38:07 +02:00
Miniflux.App = (function() {
2013-10-15 04:38:07 +02:00
return {
// Blink the refresh icon to avoid to load an image and just for fun
BlinkIcon: function() {
var icons = document.querySelectorAll(".loading-icon");
[].forEach.call(icons, function(icon) {
icon.classList.toggle("loading-icon-blink");
});
},
2013-10-15 04:38:07 +02:00
Run: function() {
Miniflux.Event.ListenKeyboardEvents();
Miniflux.Event.ListenMouseEvents();
}
2013-04-03 04:49:14 +02:00
}
})();