Skip to content

Commit

Permalink
JS scripts update
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Pozhidaev committed Mar 21, 2019
1 parent eaec7cb commit dc6486d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions js/x-desktop.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
Copyright 2019 Michael Pozhidaev <[email protected]>
This file is part of LUWRAIN.
LUWRAIN is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
LUWRAIN is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
*/

Luwrain.addHook("luwrain.desktop.announce", function(){
var date = new java.util.Date();
Luwrain.message(Luwrain.i18n.static.desktop + ", " + date.getHours() + " " + date.getMinutes());
return true;
});

0 comments on commit dc6486d

Please sign in to comment.