Logic Machine Forum
Pin code menu - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Pin code menu (/showthread.php?tid=3888)



Pin code menu - jmir - 21.02.2022

Hi,

Is there any way to open the pin code menu of an object when you enter in the page without clicking the object?

Or some kind of ping code menu that can be used as "inline in usermode"?

Thanks.


RE: Pin code menu - Daniel - 21.02.2022

You can add PIN to the page then you will be asked while accessing this page


RE: Pin code menu - jmir - 21.02.2022

(21.02.2022, 08:25)Daniel Wrote: You can add PIN to the page then you will be asked while accessing this page

I've seen, but I need that when the pin is correct send a value to the bus... (without touching any other button)


RE: Pin code menu - admin - 21.02.2022

This JS will click every element with autoclick class on plan change (won't trigger when the first default plan is shown):
Code:
$(function(){
  $(document.body).on('showplan', function(e, id) {
    $('#plan-' + id).find('.autoclick').click();
  });
});

You can also hide these elements if needed via CSS:
Code:
.autoclick {
  visibility: hidden;  
}



RE: Pin code menu - jmir - 21.02.2022

(21.02.2022, 08:59)admin Wrote: This JS will click every element with autoclick class on plan change (won't trigger when the first default plan is shown):
Code:
$(function(){
  $(document.body).on('showplan', function(e, id) {
    $('#plan-' + id).find('.autoclick').click();
  });
});

You can also hide these elements if needed via CSS:
Code:
.autoclick {
  visibility: hidden; 
}

Thank you, it works!!
But it's possible to apply to the first default plan?


RE: Pin code menu - admin - 21.02.2022

Use this:
Code:
$(function(){
  $(document.body).on('showplan', function(e, id) {
    $('#plan-' + id).find('.autoclick').click();
  }).trigger('showplan', currentPlanId);
});



RE: Pin code menu - jmir - 21.02.2022

(21.02.2022, 12:54)admin Wrote: Use this:
Code:
$(function(){
  $(document.body).on('showplan', function(e, id) {
    $('#plan-' + id).find('.autoclick').click();
  }).trigger('showplan', currentPlanId);
});

Perfect! Thanks!