UNPKG

basic-ui-js

Version:

A lightweight JavaScript library for building web-based applications with simple code. No need to write HTML or CSS — just use basic JavaScript.

44 lines (32 loc) 1.13 kB
<!DOCTYPE html> <html> <head> <title>Label Example</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> <!-- LIBRARY FILES --> <link rel="stylesheet" type="text/css" href="basic/basic.min.css"> <script src="basic/basic.min.js" type="text/javascript" charset="utf-8"></script> <script> let lblBottomInfo; // First running function. window.onload = function() { // LABEL: Bottom Info. lblBottomInfo = Label({ left: 0, bottom: 20, width: "100%", height: "auto", text: "This is a label", textAlign: "center", color: "gold", textColor: "rgba(0, 0, 0, 0.4)", padding: [0, 10], }); } </script> </head> <body> <!-- HTML content --> </body> </html>