JS library to handle DOM / Events that works with General.JS
npm i gdom.js
<script src="https://cdn.underdevelopment.work/generaljs/gdom.min.js">
genrl.run(function(){
//write code below
});
g("#element");
g(".element");
g("#element").css({
'height': '400px',
'width': '200px',
'opacity': '1'
});
g("#btnmover").click(function(){
g("#div_A").animate('bounce',5000,function(){
genrl.log("Se ha activado el callBack");
});
});
idelement=g("#element").getAttrb("id");
g("#element").setAttrb("attribRandom","test");
g("#element").children();
g("#element").child(N);
g('#archivo').change(function(e){
console.log("Cambió el campo");
dataf=g('#archivo').getFiles();
});
g("#holap").click(function(){
g("#holap").smooth("#adiosp",{
duration:'10000',
offset: 0,
callback: function(){
g.log("Scroll finalizado");
}
});
});