Because there are LL-users using Zooper for this. :-(
Originally shared by Jappie Toutenhoofd
Because there are LL-users using Zooper for this. 🙁
]]>« Please add to settings/desktop/scroll and zoom settings new option. (Previous Post)
(Next Post) Thank you TrianguloY Jappie Toutenhoofd »
< ![CDATA[
var widget = LL.getEvent().getItem();
var WKupdate = function()
{
var lbl = “”;
var week = [“Sun”,”Mon”,”Tue”,”Wed”,”Thu”,”Fri”,”Sat”];
var Dnow = new Date().getDay();
for (var i=0; i<7; i++){
if (i == Dnow) {lbl += ““;}
lbl += week[i];
if (i == Dnow) {lbl += ““;}
if (i < = 6) {lbl += " "; }
}
widget.setLabel(lbl);
// set the timer again
widget.setTag(setTimeout(WKupdate, 60000));
};
// initiate the periodic update
WKupdate();
]]>
< ![CDATA[
Nice, but what about a binding? No script required! 😀
var unused=$ll_day_name;
var days=[“sund”,”mon”,”tue”,”wed”,”thu”,”fri”,”sat”];
var now=new Date().getDay();
days[now]=”“+days[now]+”“;
return days.join(” “);
]]>
< ![CDATA[
auch 😉
]]>
< ![CDATA[
Edit: I edited the binding because as it was before it won’t update automatically. Now it will do!
]]>
< ![CDATA[
TrianguloY wow
]]>
< ![CDATA[
TrianguloY how was it before the update? What was the mistake?
]]>
< ![CDATA[
I didn’t used the $ll_day_name lightning variable, so the binding will never be update automatically
]]>
< ![CDATA[
If you don’t mind me asking, how would I go by implementing this binding?
]]>
< ![CDATA[
Mauricio Alas create a text item
And in bindings use Text > Label
And set that :
var unused=$ll_day_name;
var days=[“Dim”,”Lun”,”Mar”,”Mer”,”Jeu”,”Ven”,”Sam”];
var now=new Date().getDay();
days[now]=”“+days[now]+”“;
return days.join(” “);
]]>
< ![CDATA[
Use days in your language
And colour you want
]]>
< ![CDATA[
Bruno-Isa LAMOUR-ARNOULD Ha! I implemented it and… Well, thank you for taking the time.
]]>