This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

About widget
#4
You can draw the outline on the plan background image manually or create elements on the plan using Custom JavaScript. But in this case these elements will only be visible in the viewer mode not in the editor. #plan-1 is the element ID of the plan where the element will be placed. Change as needed. Plan ID is shown in the plan edit form.
Code:
$(function() {
  if ($('body').hasClass('usermode')) {
    $('<div></div>').css({
      position: 'absolute',
      width: 400,
      height: 300,
      top: 70,
      left: 100,
      'box-shadow': '0 0 6px 3px rgba(255,0,0,0.5)'
    }).appendTo('#plan-1');
  }
});
Reply


Messages In This Thread
About widget - by Ibrahim - 13.04.2023, 19:48
RE: About widget - by admin - 14.04.2023, 07:20
RE: About widget - by Ibrahim - 14.04.2023, 09:05
RE: About widget - by admin - 14.04.2023, 12:01

Forum Jump: