source: prototipo_portal_2018/prototipo/static/js/bounded.js @ 025e022

Last change on this file since 025e022 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
Line 
1var 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
7var 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.