Thank you!ion sound is fixed as well
Code: Select all
blocks['78'] = {} blocks['78']['width'] = 12; blocks['78']['title'] = 'Huego2'; blocks['78']['flash'] = 1000; blocks['78']['speak'] = 'device on';
Moderators: leecollings, htilburgs, robgeerts
Thank you!ion sound is fixed as well
Code: Select all
blocks['78'] = {} blocks['78']['width'] = 12; blocks['78']['title'] = 'Huego2'; blocks['78']['flash'] = 1000; blocks['78']['speak'] = 'device on';
If you use anything other than a number you have to put it between quotes ''HansieNL wrote: ↑Sunday 10 November 2019 18:52Your code should normally work. If you like you can also use the following code:Code: Select all
blocks['116'] = { width: 4, title: Dashticz }
That's interesting because on both my phones (Android and Iphone) the auto_slide and the manual swipe work fine.
Yes, I can confirm both 3.1.0 and 3.2.0 in my case with single screen.tarmacalastair wrote: ↑Monday 11 November 2019 16:14That's interesting because on both my phones (Android and Iphone) the auto_slide and the manual swipe work fine.
In my tests I've also noticed that you can't scroll down any more on mobile.
In fact, the behaviour also seems to have changed in Firefox on a PC:
In beta 3.1.0:
A page with multiple screens - can scroll down the page on a mobile phone but not in a PC browser (resized window, or full if the page is too long)
A page with only one screen - can scroll down on both PC and phone
In beta 3.2.0:
multi screen page - cannot scroll down (mobile and PC)
single screen page - also cannot scroll down (mobile and PC)
Code: Select all
.selectedbutton {
background-color: #cba !important;
}
Code: Select all
config['slide_effect'] = 'flip'; //(or 'slide' or 'fade', etc)
Code: Select all
config['enable_swiper'] = 1;
It's difficult to style frames.secpanel, because it's an iframe: The contents comes from Domoticz. I did some experiments, but did not find a way yet.pvklink wrote: ↑Tuesday 12 November 2019 19:19 is there a way to style frames.secpanel ?
Like background color etc?
also the security button 1728 for for the panel does not work as aspected
.block_1728 .btn.active {color: white;background-color: rgb(119,110,97) !important;}
.block_1728 select {background-color: white !important;color: rgb(119,110,97)!important;}
Code: Select all
.block_234 {
height: 120px !important;
background-color: yellow !important;
}
.block_234 .title {
font-size: 30px !important;
color: green;
}
.block_234 .col-icon {
color: black !important;
}
.block_234 .btn {
background-color: red!important;
font-size: 20px !important;
}
I don't think you can style the content of the iframe. It's served from a different port number as Dashticz. The browser blocks modifying the content of an iframe if it comes from a different port or domain.pvklink wrote: ↑Tuesday 12 November 2019 19:19 is there a way to style frames.secpanel ?
Like background color etc?
also the security button 1728 for for the panel does not work as aspected
.block_1728 .btn.active {color: white;background-color: rgb(119,110,97) !important;}
.block_1728 select {background-color: white !important;color: rgb(119,110,97)!important;}
Code: Select all
[data-id='secpanel'].frame iframe {
transform: scale(0.5);
border: 0px;
height: 600px !important;
width: 200%;
max-width: 200%;
transform-origin: 0 0;
}
Code: Select all
.block_1728 {
height: 120px !important;
background-color: rgb(59,53,50) !important;
}
.block_1728 .title {
font-size: 18px !important;
color: white;
}
.block_1728 .btn {
background-color: white!important;
border-color: black !important;
font-size: 16px !important;
}
.block_1728 .btn.active {
color: black;
background-color: green!important;
font-size: 10px !important;
}
I think you forgot to add a space between green and !important... and that’s !importantpvklink wrote: ↑Wednesday 13 November 2019 22:17 oeps, changed the wrong message
Only part that is not ok is the selected/active button color.
I tried to add it my self by adding .btn.active
Naamloos.png
Code: Select all
.block_1728 { height: 120px !important; background-color: rgb(59,53,50) !important; } .block_1728 .title { font-size: 18px !important; color: white; } .block_1728 .btn { background-color: white!important; border-color: black !important; font-size: 16px !important; } .block_1728 .btn.active { color: black; background-color: green!important; font-size: 10px !important; }
Try:
Code: Select all
.block_1728 .btn.btn-warning {
color: black !important;
background-color: green !important;
font-size: 10px !important;
}
Code: Select all
// wasmachine
function getChange_7344_1(idx,value,device){
if(parseFloat(device['Usage'])==1){
$('div.block_7344_1').addClass('warninggreen').removeClass('warningrood');
blocks['7344_1']['icon'] = 'fas fa-check';
blocks['7344_1']['title'] = 'Wasmachine klaar en staat nog aan';
}
else if(parseFloat(device['Usage'])==0){
$('div.block_7344_1').removeClass('warninggreen').removeClass('warningrood');
blocks['7344_1']['icon'] = 'fas fa-power-off';
blocks['7344_1']['title'] = 'Wasmachine uit';
}
else {
$('div.block_7344_1').removeClass('warninggreen').addClass('warningrood');
blocks['7344_1']['icon'] = 'fas fa-tshirt';
blocks['7344_1']['title'] = 'Wasmachine is bezig';
}
}
Code: Select all
.warninggreen {
background: rgba(154,205,50,1.0) !important;
background-clip: padding-box;
}
.warningrood {
background: rgba(199,44,44,1.0) !important;
background-clip: padding-box;
}
Users browsing this forum: No registered users and 1 guest