0.1.0-beta.14 • Published 10 years ago

stupid-dom-interface v0.1.0-beta.14

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

(work in progress)

installation:

npm install stupid-dom-interface

beta testing:

DUM = require 'StupidDOMInterface'

element = document.querySelector('.element')

# optional init

props =

	height: 200
	width: 300

	opacity: .8

	top: 100
	left: 120
	bottom: 200
	right: 400

	textShadowH: 5
	textShadowV: 10
	textShadowColor: [255, 100, 50]

	textShadowBlur: 10

	rotateX: 10
	rotateY: 20
	rotateZ: 40

	x: 20
	y: 30
	z: 40

	localX: 100
	localY: 102
	localZ: 103

	scaleX: 1.1
	scaleY: 1.1
	scaleZ: 1.1

	skewX: 20
	skewY: 30

	perspective: 400

dumElement1 = new DUM(element, props)
.x(400)
.y(200)

console.log dumElement1.getX()


dumElement2 = DUM('.hello', props)
.inside(document.body)
.html('custom html')
.set('someVar', 'some value')

console.log dumElement2.get('someVar')
console.log dumElement2.current('width')


dumInput3 = DUM('input[type=text, placeholder=x, value=20].cssclass1.classClass2')
.inside(dumElement2)

dumInput3.node.addEventListener('change', callbackFunction)
0.1.0-beta.14

10 years ago

0.1.0-beta.13

10 years ago

0.1.0-beta.12

10 years ago

0.1.0-beta.10

10 years ago

0.1.0-beta.9

10 years ago

0.1.0-beta.8

10 years ago

0.1.0-beta.7

10 years ago

0.1.0-beta.6

10 years ago

0.1.0-beta.5

10 years ago

0.1.0-beta.4

10 years ago

0.1.0-beta.2

10 years ago

0.1.0-beta.1

10 years ago

0.0.1-beta1

10 years ago