New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

simple-ui-builder

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-ui-builder - npm Package Compare versions

Comparing version 1.0.1 to 1.0.4

2

package.json
{
"name": "simple-ui-builder",
"version": "1.0.1",
"version": "1.0.4",
"description": "Build user interface like Lego bricks. UI.input(), UI.button(cb), UI.select(arr) etc. For lazy guys as I am.",

@@ -5,0 +5,0 @@ "main": "ui.js",

@@ -121,2 +121,27 @@ /**

UI.br = function(params) {
params = params || {};
if (typeof params == "string") {
params = {
parent: document.querySelector(params)
};
} else if (params instanceof HTMLElement) {
params = {
parent: params
};
}
if (typeof params.parent == "string") params.parent = document.querySelector(params.parent);
else params.parent = params.parent || document.body;
params.id = params.id || "br";
var br = document.createElement("br");
br.id = params.id;
params.parent.appendChild(br);
};
UI.radio = function(arr, params, cb) {

@@ -139,3 +164,3 @@

if (typeof params == "string") params = {
parent: params
parent: document.querySelector(params)
};

@@ -203,3 +228,3 @@

checkbox.onclick = function() {
cb(checkbox.id);
cb(checkbox.checked);
};

@@ -265,3 +290,3 @@ params.parent.appendChild(checkbox);

if(typeof str == "object") str = JSON.stringify(str);
if(typeof str == "object") str = JSON.stringify(str, null, "\t");

@@ -268,0 +293,0 @@ params.id = params.id || params.name || "download-link";

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc