Clock bindings
Clock bindings
I had fun writing them, use them if you want 🙂
(And yes Jappie Toutenhoofd, this was because of your post too 😉
1) Custom number characters: a simple one changing the numbers (perhaps you remember them from my simple page indicator). You can use your own characters too.
2) Roman numbers: a funny one, the numbers are wrote with Roman numbers instead.
Note: for Roman reasons 00:00:00 is wrote as XXIV:LX:LX (24:60:60)
3) Binary: the usual binary clock, using those ‘box’ characters, but you can change them.
4) Random sums: the funniest and worst to read one. Each number is wrote as a random finite sum of random positive numbers (or 0). You have one second to guess the time XD (or you can remove the seconds and you will have a minute)
]]>« Samsung S6 Edge+. I installed Lightning launcher and love it. (Previous Post)
< ![CDATA[
//custom number characters clock
var chars=”⓪①②③④⑤⑥⑦⑧⑨”//”⓿❶❷❸❹❺❻❼❽❾”
var hour=$ll_hour24;
var min=$ll_minute;
var sec=$ll_second;
return convert(hour)+” : “+convert(min)+” : “+convert(sec);
function convert(n){
return chars[Math.floor(n/10)]+chars[n%10];
}
]]>
< ![CDATA[
//Roman numbers clock
var hour=$ll_hour24;
if(hour==0)hour=24;
var min=$ll_minute;
if(min==0)min=60;
var sec=$ll_second;
if(sec==0)sec=60;
return convert(hour)+” : “+convert(min)+” : “+convert(sec);
function convert(n){
return digit(Math.floor(n/10),’X’,’L’,’C’)+digit(n%10,’I’,’V’,’X’)
}
function digit(n,u,d,c){
return [“”,u,u+u,u+u+u,u+d,d,d+u,d+u+u,d+u+u+u,u+c][n];
}
]]>
< ![CDATA[
//binary clock
var one=”█”;
var zero=”▂”;
var hour=$ll_hour24;
var min=$ll_minute;
var sec=$ll_second;
return convert(hour,4)+” : “+convert(min,6)+” : “+convert(sec,6);
function convert(n,max){
var s= parseInt(n,10).toString(2).replace(/0/g,zero).replace(/1/g,one);
while(s.length
return s;
}
]]>
< ![CDATA[
//random sums clock
var hour=$ll_hour24;
var min=$ll_minute;
var sec=$ll_second;
return convert(hour)+” : “+convert(min)+” : “+convert(sec);
function convert(n){
if(n==0) return “0”;
var s=[];
while(n>0){
var r=Math.ceil(Math.random()*n);
s.push(r);
n-=r;
}
return s.join(‘+’);
}
]]>
< ![CDATA[
That’s pretty damn slick man. Nice. This is the side of LLeX I’m still trying to work on haha.
]]>
< ![CDATA[
1 second to guess the time? Lol!
]]>
< ![CDATA[
Wow ! Well done
Do you have a way to display Phone operator. And wifi network ?
I can add permissions
]]>
< ![CDATA[
How do you use this?
]]>
< ![CDATA[
bahrta sai
They are string bindings. Just write them (first comments of this post) in the label binding property of any item
]]>