1
0
Fork 0
forked from 0x2620/oxjs

update mouse events example (CSS)

This commit is contained in:
rolux 2012-04-15 14:21:15 +02:00
commit a7d16c0c05
2 changed files with 7 additions and 3 deletions

View file

@ -5,6 +5,7 @@ This example demonstrates the mouse events that any Ox.Element fires.
Ox.load({UI: {theme: 'classic'}}, function() {
var $target = Ox.Element()
.addClass('OxMonospace')
.attr({id: 'target'})
.html('click/hold/drag')
.appendTo(Ox.$body),
@ -12,6 +13,7 @@ Ox.load({UI: {theme: 'classic'}}, function() {
.attr({id: 'log'})
.appendTo(Ox.$body),
$clear = Ox.Element()
.addClass('OxMonospace')
.attr({id: 'clear'})
.html('clear log')
.bind({click: function() {
@ -25,6 +27,7 @@ Ox.load({UI: {theme: 'classic'}}, function() {
$target.bindEvent(event, function(e) {
var date = new Date();
$('<div>')
.addClass('OxMonospace')
.html(
Ox.formatDate(date, '%H:%M:%S')
+ '.' + (Ox.pad(date % 1000, 3))