forked from 0x2620/oxjs
various documentation-related changes
This commit is contained in:
parent
b6fdf0c28b
commit
a6ed310087
13 changed files with 880 additions and 301 deletions
|
|
@ -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
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue