This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function loadMap(id, lat, lng, title) { | |
| var mapDiv = document.getElementById(id), | |
| latlng = new google.maps.LatLng(lat, lng), | |
| mapOptions = { | |
| zoom: 16, | |
| center: latlng, | |
| mapTypeId: google.maps.MapTypeId.ROADMAP | |
| }, | |
| marker; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var supportsTouch = function() { | |
| return 'ontouchstart' in document.documentElement; | |
| }, | |
| event_type = supportsTouch() ? "touchstart" : "click", | |
| some_element = document.getElementById("some-element"); | |
| some_element.addEventListener(event_type, someFunction, false); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Let's say I have some default styles for a form | |
| $form_defaults: ( | |
| background-color: white, | |
| max-width: 18.5em, | |
| padding: 1em | |
| ); | |
| // And then a call to my form mixin with a few custom override arguments. | |
| // Notice that I'm not overriding max-width here | |
| form { |
NewerOlder