Last change
on this file since b84d264 was
747e744,
checked in by Antonio Araujo <aaraujo@…>, 7 years ago
|
Creado directorio prototipo con fuentes de la modificación del portal para establecer la ubicación de la firma visible
|
-
Property mode set to
100644
|
File size:
435 bytes
|
Rev | Line | |
---|
[747e744] | 1 | var container = document.getElementById('container1'), |
---|
| 2 | element = document.getElementsByClassName('ball')[0], |
---|
| 3 | labelX = document.getElementsByClassName('coords-x')[0], |
---|
| 4 | labelY = document.getElementsByClassName('coords-y')[0]; |
---|
| 5 | |
---|
| 6 | // options |
---|
| 7 | var options = { |
---|
| 8 | limit: container, |
---|
| 9 | setCursor: true, |
---|
| 10 | onDrag: function (element, x, y) { |
---|
| 11 | labelX.innerHTML = x; |
---|
| 12 | labelY.innerHTML = y; |
---|
| 13 | } |
---|
| 14 | }; |
---|
| 15 | |
---|
| 16 | // initialize drag |
---|
| 17 | //new Draggable(element, options); |
---|
Note: See
TracBrowser
for help on using the repository browser.