About RaptorPoint:
This package allows you to quickly and briefly receive HTML code, so far this is a test version, there will be more functionality in the future!
How to connect RaptorPoint if you installed it as a module
If you installed RaptorPoint as a module, then in order to fully use all the functions, you need to do the following:
.html
Instead of "main.js" you need to insert the name of the file in which you will work
.js
Import the module with the command below↓
import raptor from "./raptorPoint.js";
How to access a module
In order to refer to the function that is in the module, we need to register "raptor." (without quotes) and then write the function you need
I think those who installed RaptorPoint as an npm package know how to use them
:)
The following is a list of functions, they are described, and how to use them.
:)
test();
Full appeal:
raptor.test();
This command does almost nothing, it is needed in order to check if everything works.
random();
Full appeal:
raptor.random(maxSum);
maxSum - Maximum amount
This function returns a random value, the maximum value that can be returned can be configured in the maxSum attribute.
getId();
Full appeal:
raptor.getId(id);
id - ID which you need
Returns the id you entered in the attribute id.
getHtml();
Full appeal:
raptor.getHtml(id);
id - id the html of the element you need.
Returns the html element id that you entered in the id attribute.
getTag(); and getTags();
Full appeal:
raptor.getTag(id, tag);
raptor.getTags(id, tag);
id - element html id.
tag - the tag that will be searched for in the id element whose id was entered in the id attribute, in getTags will search for all tags that were referenced in this attribute.
Returns the tag you were looking for, get Tags() returns an array.
viewing();
Full appeal:
raptor.viewing(name);
name - the name of the array in which are stored knowing
Print to the console all elements in the array specified in the name attribute.
getClass();
Full appeal:
raptor.getClass(className);
className - class name
Returns an array of html tags with the class that you specified in the className attribute.
searchClass();
Full appeal:
raptor.searchClass(className);
className - class name
Output to the console all html elements with the class specified in the attribute className.
editSrc();
Full appeal:
raptor.editSrc(id, path_to_file);
id - element html id
path_to_file - the path to the file
Changes the crc html of the id element which was written in the id attribute.
editId(); and editClass();
Full appeal:
raptor.editId(id, newId);
raptor.editClass(id, newClass);
id - element html id
newId - new id
newClass - new class
Changes the id/html class of the id element whose id was written in the id attribute
editDiv();
Full append:
editDiv(id, newId, newClas, value);
id - element html id
newId - new id
newClass - new class
value - new value
Changes the id/class/value of the html element whose id was written in the id attribute, if in all attributes except id prescribe ""set or null then this attribute will not change
editTXT();
Full append:
raptor.editTXT(id, newText);
id - element html id
newText - new text
Changes the html value of the id element which was written in the id attribute
end
I apologize if I made a mistake somewhere and I don’t speak English and I wrote it all through Google translator
author PinBib