Skip to content

Instantly share code, notes, and snippets.

zkkmin / 0_reuse_code.js
Created Jun 2, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View gist:1d2802561795467ad246
@media screen and (min-width: 1000px){
.container {
width: 1000px;
margin-left: auto;
margin-right: auto;
height: 800px;
.map {
height: 700px;
View gist:a554489c70e759b33e57
@media screen and (min-width: 800px){
.container2 {
width :40%;
.map {
width : 60%;
View gist:3951f9fe5824462d46e4
function ZoomTo(xVal, yVal) {
// Remove the class open from divResults,
// so that it will slide back out of view
var drawer = document.getElementById("divResults");
OneMap.showLocation(xVal, yVal);
View gist:760290c15b39fb92efdf
function displayData(resultData) {
var results = resultData.results;
if (results == 'No results') {
document.geElementById('divResults').innerHTML = "No result(s) found";
return false
else {
// Set the divResults class as open to slide in from off screen
var drawer = document.getElementById("divResults");
View gist:22a46946b0e9d09c7e91
/* set padding and height to 100% */
html, body, #mapDiv {
padding: 0;
margin: 0;
height: 100%;
font-family: sans-serif;
/* use flex and flex-wrap */
.container {
View gist:8ac95195ba56bc926a0a
<div class="container">
<div class="box heading">
<h2>Address Search API Usage (WGS84 Coordinate System)</h2>
<div class="box container2">
<div class="box searchbox">
<input type="text" id="txtSearchText" value='City Hall' />
<input type="button" onclick="GetSearchData();" value="Search" />
View gist:ee09c5079973de845719
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
View gist:5aa7ee7a4b0fde0c7006
<table style="width: 436px">
<th colspan="2">
Address Search API Usage (WGS84 Coordinate System)
Search Text :
View gist:c19552cddb614b6dc94e
var resultTableViewController = UITableViewController()
var searchController = UISearchController()