0.4.2 • Published 5 years ago

moving-volume-calculator v0.4.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Moving Volume Calculator (Demo)

Calculate the volume for your move

Doc

  • Installation

Simply import MovingVolumeCalculator into your HTML.

<link rel="stylesheet" type="text/css" href="https://gitcdn.link/repo/Zenoo/moving-volume-calculator/master/MovingVolumeCalculator.min.css">
<script src="https://gitcdn.link/repo/Zenoo/moving-volume-calculator/master/MovingVolumeCalculator.min.js"></script>	
  • How to use

Create a new MovingVolumeCalculator object with a query String or an Element as the first parameter :

let movingVolumeCalculator = new MovingVolumeCalculator('div.with[any="selector"]', options);
// OR
let element = document.querySelector('li.terally[any="thing"]');
let movingVolumeCalculator = new MovingVolumeCalculator(element, options);
  • Options
{
	lang: 'en', // Language to use
	surfaceToVolumeRatio: 0.45, // Default surface to volume ratio
	stylised: true, // Use the default Calculator theme
	rooms: { // See https://zenoo.github.io/moving-volume-calculator/MovingVolumeCalculator.html#.Rooms
		kitchen: {
			icon: 'https://your.icon',
			lang: {
			en: 'Kitchen',
			fr: 'Cuisine'
			},
			surface: 14,
			ratio: 0.45
		}, ...
	},
	dictionary: {// See https://zenoo.github.io/moving-volume-calculator/MovingVolumeCalculator.html#.Dictionary
		en: {
			roomsOptionEnable: 'I prefer filling out my rooms\' details',
			roomsOptionDisable: 'I\'d rather fill out my surface'
		},
		fr: {
			roomsOptionEnable: 'Je préfère renseigner le détail de mes pièces',
			roomsOptionDisable: 'Je préfère renseigner ma surface'
		}
	}
}
  • Methods

See the documentation for the method definitions.

  • Example

See this JSFiddle for a working example

Authors

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago