1
0
This repository has been archived on 2026-04-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
xfox111 9a13683116 0.1.0-beta (#1)
Initial set of documents
2022-02-17 20:16:48 +03:00

3.0 KiB

Plugin API reference

Last update: 23-Dec-21 (View change history)

Table of Contents

Plugin attributes

Structure sample

<!-- Should be placed at the place of plugin render -->
<div
	class="ezl-container"
	data-widgetType="inlineButton"
	data-login="input[name=email]"
	data-password="input[name=password]"
	data-submit="input[name=submit]">
</div>

<!-- Should be placed at the bottom of the <body> -->
<script src="https://easylogon.foxdev.studio/ezlog.js" defer></script>
Attribute Description Valid values
data-widgettype Type of widget appearance. Go to widget creation panel to see difference in action inlineButton, button, inline, link
data-login CSS selector which points at an <input /> field for user's email/login on authentication page Valid CSS selector pointing at the exact <input /> element
data-password CSS selector which points at an <input /> field for user's password on authentication page Valid CSS selector pointing at the exact <input /> element
data-login CSS selector which points at an HTML element which is used as "Sign in" button on authentication page Valid CSS selector pointing at the exact <input /> element

Plugin CSS selectors

#ezl-btn

This CSS selector points at the "Sign in with QR code" button (or link) and allow you to customize its appearance

Supported widget types

  • inlineButton
  • button
  • link

Examples

#ezl-btn
{
	background: gray;
	border: 2px solid red;
	color: white;
	font-family: monospace;
}

Customized button

.ezl-container

This CSS selector points at the plugin container

Note

Even though .ezl-container is presented in all widget types. It is advised to use this selector only with inline widget

Supported widget types

  • inline

Examples

.ezl-container
{
	background: gray;

	/* Inline widget requires size at least 200x100 pixels */
	width: 200px;
	height: 200px;
}

.ezl-container iframe
{
	filter: brightness(0) invert(1);
}

Customized inline widget

Note

Since widget's QR code is currently displayed inside an iframe, it is impossible for now to customize it more precisely

Flyout customization

Currently we support only button (and partially inline) customization. At the moment customization of a flyout is unsupported