Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

radius-widget

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

radius-widget - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

src/css/radius-widget.css

11

package.json
{
"name": "radius-widget",
"version": "1.0.2",
"version": "1.1.0",
"description": "Uses Google maps API to set location and radius",
"main": "src/js/script.js",
"scripts": {
"minifyJS": "uglifyjs src/js/script.js --compress --mangle --warn --output src/js/script.min.js",
"minifyJS": "uglifyjs src/js/radius-widget.js --compress --mangle --warn --output src/js/radius-widget.min.js",
"build": "npm run minifyJS --silent"
},
"repository": {
"type": "git",
"url": "https://gitlab.inquence.net/npm-packages/radius-widget.git"
},
"author": "Alexey Sazonov <say@mail.uk>",
"dependencies": {
"uglify-js": "^3.3.11"
"uglify-es": "^3.3.9"
}
}

@@ -7,17 +7,26 @@ # Radius widget

Make sure you have the latest version of node.js installed. Then run
```bash
npm install https://<username>:<password>@bitbucket.org/inquence/radius-widget.git
$ npm install && npm run build
```
## Web API
## Usage
https://www8.netsupport24.net/radius-widget/src/demo.html?street=Georg-Treu-Platz&streetno=3&zipcode=01067&city=Dresden&radius=5000
Include the form form from the index.html into your page. Then initialize the widget like so:
url parameters
- street
- streetno
- zipcode
- city
- radius (optional)
- hide_form (0|1) (optional)
```javascript
new RadiusWidget({
containerId: 'radius-widget', // Set the id of the outer container
formId: 'radius-widget-form', // Set the id of 'fake form' with the input fields
hideForm: Boolean(1), // Toggle display of form
// Optionally: Set the address for the map instead of using the form
address: {
street: 'Unter den Linden',
streetno: '1'
zipcode: '',
city: 'Berlin',
},
//initialZoom: 13 // Set some more zoom value initially
}).initMap();
```
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