<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no" />
<title>US Movie Genres by County</title>
<link rel="stylesheet" href="//js.arcgis.com/3.14/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="//js.arcgis.com/3.14/esri/css/esri.css">
<link rel="stylesheet" href="./css/styles.css" />
</head>
<body class="claro">
<div id="esri-map-container"></div>
<div id="esri-basemapgallery-container" class="esriBasemapGallery"></div>
<div id="esri-colorinfoslider-container">
<div id="title"></div>
<hr>
<div>
Theme:
<select id="color-renderer-theme">
<option value="high-to-low" selected>High to low</option>
<option value="above-and-below">Above and below</option>
<option value="centered-on">Centered on</option>
<option value="extremes">Extremes</option>
</select>
</div>
<div id="esri-colorinfoslider"></div>
<input type="checkbox" id="sliderZoomButton"/> Show histogram detail
</div>
<pre id="results"></pre>
<script src="//js.arcgis.com/3.14/"></script>
</body>
</html>
/* --------------------------------------------------------------------
* main styles
* ----------------------------------------------------------------- */
html, body, #esri-map-container {
height: 100%;
margin: 0;
color: #5c5c5c;
}
/* --------------------------------------------------------------------
* Navigation
* ----------------------------------------------------------------- */
.esriSimpleSlider {
/* #fafafa */
top: 162px;
left: 301px;
background-color: #fafafa;
box-shadow: 0 0 10px 0 #222222;
color: #5c5c5c;
border-color: #5c5c5c;
}
/* --------------------------------------------------------------------
* esri/dijit/BasemapGallery
* ----------------------------------------------------------------- */
.esriBasemapGallery {
overflow-x: auto;
overflow-y: hidden;
max-width: 1206px;
height: 120px;
max-height: 120px;
position: absolute;
top: 10px;
left: 10px;
right: 10px;
background: #fafafa;
border-radius: 5px;
box-shadow: 0 0 10px 0 #222222;
padding: 5px;
border: 1px solid #5c5c5c;
}
.esriBasemapGallery div {
white-space: nowrap;
}
.esriBasemapGallerySelectedNode .esriBasemapGalleryThumbnail {
border-color: #5c5c5c;
border-width: 4px;
}
.esriBasemapGalleryLabelContainer {
font-family: "Avenir LT W01 85 Heavy", Arial, Helvetica, sans-serif;
font-size: 0.75em;
}
.esriBasemapGalleryNode {
float: none;
display: inline-block;
}
/* --------------------------------------------------------------------
* Div and title for esri/dijit/ColorInfoSlider
* ----------------------------------------------------------------- */
#esri-colorinfoslider-container {
position: absolute;
top: 162px;
left: 10px;
border-radius: 10px;
background-color: #fafafa;
border: 1px solid #5c5c5c;
box-shadow: 0 0 10px 0 #222222;
font-family: "Avenir LT W01 85 Heavy", Arial, Helvetica, sans-serif;
padding: 10px;
max-width: 250px;
}
#title {
font-weight: 600;
text-align: center;
font-family: "Avenir LT W01 85 Heavy", Arial, Helvetica, sans-serif;
}
/* --------------------------------------------------------------------
* esri/dijit/Popup
* ----------------------------------------------------------------- */
.esriPopup {
box-shadow: 0 0 10px 0 #222222;
}
.esriPopup .title {
background-color: #5c5c5c;
color: #fafafa;
}
.esriPopup .contentPane {
color: #5c5c5c;
}
.esriPopup .sizer {
max-width: 420px;
width: 260px;
}
.esriPopup .sizer.content table {
max-width: 400px;
width: 240px;
}
.esriPopup .movie-summary {
font-weight: 700;
font-size: 1.125em;
border-bottom: none;
}
.esriPopup .movie-desc {
line-height: 250%;
}
.esriPopup .attr-name {
max-width: 410px;
width: 400px;
line-height: 1.125em;
}
.esriPopup .attr-value {
text-align: right;
}
.esriPopup table {
border-collapse: collapse;
}
.esriPopup td {
border-bottom: 1px solid #5c5c5c;
}
/*result container*/
#results {
position: absolute;
bottom: 0;
right: 0;
z-index: 999;
height: 400px;
width: 300px;
overflow-y: auto;
background: #fff;
border: solid 1px;
font: 0.7em "Open Sans", sans-serif;
}
Output
You can jump to the latest bin by adding /latest
to your URL
Keyboard Shortcuts
Shortcut | Action |
---|---|
ctrl + [num] | Toggle nth panel |
ctrl + 0 | Close focused panel |
ctrl + enter | Re-render output. If console visible: run JS in console |
Ctrl + l | Clear the console |
ctrl + / | Toggle comment on selected lines |
ctrl + ] | Indents selected lines |
ctrl + [ | Unindents selected lines |
tab | Code complete & Emmet expand |
ctrl + shift + L | Beautify code in active panel |
ctrl + s | Save & lock current Bin from further changes |
ctrl + shift + s | Open the share options |
ctrl + y | Archive Bin |
Complete list of JS Bin shortcuts |
JS Bin URLs
URL | Action |
---|---|
/ | Show the full rendered output. This content will update in real time as it's updated from the /edit url. |
/edit | Edit the current bin |
/watch | Follow a Code Casting session |
/embed | Create an embeddable version of the bin |
/latest | Load the very latest bin (/latest goes in place of the revision) |
/[username]/last | View the last edited bin for this user |
/[username]/last/edit | Edit the last edited bin for this user |
/[username]/last/watch | Follow the Code Casting session for the latest bin for this user |
/quiet | Remove analytics and edit button from rendered output |
.js | Load only the JavaScript for a bin |
.css | Load only the CSS for a bin |
Except for username prefixed urls, the url may start with http://jsbin.com/abc and the url fragments can be added to the url to view it differently. |