- The data between brackets ([data_type argument = value]): optional argument 'argument' of data type 'data_type' with default value 'value'.
- Example of an element in this documentation:
property_name('value_1', 'value_2')
-> Simple Example
Short description of property. -> Description
go('https://google.com', true)
Go to another url.
reload()
Reload the page.
warn('delete.php?id=1', 'Are you sure you want to delete this')
Warn the user about an action.
debug('this message will show in console')
Type in console.
isElement(this)
Check if that is element.
scrollWindowBy(100, 25)
Scroll by x, y.
math = (new eMath())
Mathematics.
math.factorial(5)
Get factorial of a number.
math.fibonacci(5)
Get fibonacci of a number.
math.rand()
Generate random number.
math.randInt(1, 99)
Generate random integer from min to max.
math.randFloat(0.1, 0.9)
Generate random float from min to max.
math.dice()
Generate random integer as a dice game.
math.findMax(1,2,3,484,11,22,78,1544,222)
Find the maximum number from all the arguments.
math.sumAll(1,2,3,484,11,22,78,1544,222)
Get the summation of all numbers from all the arguments.
math.subAll(1,2,3,484,11,22,78,1544,222)
Get the subtraction of all numbers from all the arguments.
math.divAll(1,2,3,484,11,22,78,1544,222)
Get the division of all numbers from all the arguments.
math.mulAll(1,2,3,484,11,22,78,1544,222)
Get the multiplication of all numbers from all the arguments.
doc = function(e){return (new Document(e))}
Selectors and main methods/properties.
Selectors:
- .selector = class
- #selector = id
- @selector = name
- selector = element
- this = current element
doc(this).html = '<p>this is new html</p>'
Set html of an element.
doc('.x').html
Get html of an element.
doc('.y').text = 'new text'
Set text of an element.
doc('.t').text
Get text of an element.
doc(this).delete()
Remove an element.
doc('@change_email').hide()
Hide an element.
doc('@change_email').show('inline-block')
Show an element, you can set the display, default is block.
doc('#content').toggle()
Toggle (show and hide) an element, you can set the display, default is block.
doc(this).process()
If you make a process, make this on button, if you set the arugment to true, you can set a css class with the current button's class and disable, like if the button's class is 'btn' so you can set the class 'btn.disable'.
doc('.loading_txt').loadingDots()
This will put three loading dots at the end of the text.
April 29, 2020 22:39 UTC