1
0
Fork 0
forked from 0x2620/oxjs

various documentation-related changes

This commit is contained in:
rolux 2011-05-05 20:02:56 +02:00
commit a6ed310087
13 changed files with 880 additions and 301 deletions

View file

@ -5,7 +5,7 @@ Ox.load('UI', {
theme: 'modern'
}, function() {
Ox.loadJSON('json/cities100000.json', function(data) {
Ox.getJSON('json/cities100000.json', function(data) {
var listmap = new Ox.ListMap({
height: window.innerHeight,
@ -22,7 +22,7 @@ Ox.load('UI', {
size = Math.sqrt(city.population * 100),
latSize = size / Ox.EARTH_CIRCUMFERENCE * 360,
lngSize = size * Ox.getDegreesPerMeter(city.latitude);
return Ox.extend({
return {
countryCode: city.country_code == 'XK' ? 'RS-KO' : city.country_code,
editable: true,
flag: city.country_code,
@ -38,7 +38,7 @@ Ox.load('UI', {
west: city.longitude - lngSize / 2,
north: city.latitude + latSize / 2,
east: city.longitude + lngSize / 2
});
};
}),
width: window.innerWidth
})

View file

@ -3,7 +3,7 @@
<head>
<title>OxJS Mouse Events Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script type="text/javascript" src="../../build/js/Ox.js"></script>
<script type="text/javascript" src="../../build/Ox.js"></script>
<script type="text/javascript" src="js/mouse.js"></script>
</head>
<body></body>

View file

@ -1,4 +1,6 @@
Ox.load('UI', function() {
Ox.load('UI', {
debug: true
}, function() {
var $target = Ox.Element()
.css({
position: 'absolute',
@ -36,7 +38,7 @@ Ox.load('UI', function() {
'anyclick', 'singleclick', 'doubleclick', 'mouserepeat',
'dragstart', 'drag', 'dragpause', 'dragend'
].forEach(function(event) {
$target.bindEvent(event, function(foo, e) {
$target.bindEvent(event, function(e) {
var date = new Date();
$('<div>')
.html(