This is a test
bg = (c) -> -> @css "background-color": c
$("#foo").$toggle (bg "blue"), (bg "white"), (bg "red")
This is a test
bg = (c) -> -> @css "background-color": c
$("#foo").$toggle (bg "blue"), (bg "white"), (bg "red")
bg = (c) -> -> @css "background-color": c | |
$("#foo").$toggle (bg "blue"), (bg "white"), (bg "red") | |
$(".bar").$toggle (bg "blue"), (bg "white"), (bg "red") |
$ -> | |
map = new google.maps.Map $("#map-canvas")[0], | |
zoom: 1 | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
map.setCenter new google.maps.LatLng(0, 0) | |
addMarker = (long, lat) -> | |
new google.maps.Marker | |
position: new google.maps.LatLng long, lat | |
map: map |
$ -> | |
map = new google.maps.Map $("#map-canvas")[0], | |
zoom: 1 | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
map.setCenter new google.maps.LatLng(0, 0) | |
addMarker = (long, lat) -> | |
new google.maps.Marker | |
position: new google.maps.LatLng long, lat | |
map: map |
map = new google.maps.Map $("#map-canvas")[0], | |
zoom: 1 | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
map.setCenter new google.maps.LatLng(0, 0) | |
new google.maps.Marker | |
position: new google.maps.LatLng 12, 56 | |
map: map |
$("#slider-range").slider | |
range: true | |
min: 0 | |
max: 20 | |
values: [5, 11] | |
slide: (_, ui) -> console.log ui.values[0] + ", " + ui.values[1] |
{ | |
'A1': 'YOW! Melbourne' | |
'B1': '1500' | |
'C1': 'Melbourne, Australia' | |
'A2': 'GOTO Aarhus' | |
'B2': '1700' | |
'C2': 'Aarhus, Denmark' | |
} |
<html> | |
<head> | |
<title>Using Google maps for showing custom points</title> | |
<link href="style.css" rel="stylesheet" type="text/css"> | |
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/start/jquery-ui.css" | |
type="text/css" rel="stylesheet"> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> |
$ -> | |
map = new google.maps.Map $("#map-canvas")[0], | |
zoom: 1 | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
map.setCenter new google.maps.LatLng(0, 0) | |
new google.maps.Marker | |
position: new google.maps.LatLng 56, 12 | |
map: map |
$(function() { | |
var map; | |
map = new google.maps.Map($("#map-canvas")[0], { | |
zoom: 1, | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
}); | |
map.setCenter(new google.maps.LatLng(0, 0)); | |
return new google.maps.Marker({ | |
position: new google.maps.LatLng(56, 12), | |
map: map |