This file contains 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
define(['dojo/topic'], function(topic) { | |
// The application is ready | |
topic.subscribe('story-load-section', function() { | |
/* | |
* Custom Javascript to be executed when the application is ready goes here | |
*/ | |
setTimeout(function() { | |
location.hash = 'detail'; | |
}, 50); | |
}); |
This file contains 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
dojo.require("esri.map"); | |
dojo.require("esri.dijit.Legend"); | |
dojo.require("esri.dijit.Scalebar"); | |
dojo.require("esri.arcgis.utils"); | |
dojo.require("esri.IdentityManager"); | |
dojo.require("dijit.dijit"); | |
dojo.require("dijit.layout.BorderContainer"); | |
dojo.require("dijit.layout.ContentPane"); | |
dojo.require("dijit.layout.StackContainer"); | |
dojo.require("esri.dijit.Popup"); |
This file contains 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
import Ember from 'ember'; | |
import hbs from 'htmlbars-inline-precompile'; | |
import { connect } from 'ember-redux'; | |
const stateToComputed = state => { | |
return { | |
number: state.number, | |
another: state.another, | |
}; | |
}; |
This file contains 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
import Ember from 'ember'; | |
const PersonArray = Ember.Object.extend({ | |
shoppingList: ['eggs', 'cheese'] | |
}); | |
const a = PersonArray.create({ | |
name: 'Stefan Penner', | |
addItem() { | |
this.get('shoppingList').pushObject('bacon'); |
This file contains 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
show: function () { | |
domStyle.set(this.likeButton, 'display', this.actionVisibilities.showVotes ? 'inline-block' : 'none'); | |
domStyle.set(this.commentButton, 'display', this.actionVisibilities.showComments ? 'inline-block' : 'none'); | |
domStyle.set(this.galleryButton, 'display', 'none'); | |
domStyle.set(this.domNode, 'display', ''); | |
if (this.actionVisibilities.showGallery) { | |
if (domClass.contains(self.gallery, "esriCTHidden")) { | |
self._showAttachments(self.item); | |
} |
This file contains 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
{ | |
"brand": { | |
"primary": "#ff9f08", | |
"secondary":"#4fff00" , | |
"gray": "#4c4c4c" | |
}, | |
"text":{ | |
"color": "#ffffff" | |
}, | |
"logo": { |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no"> | |
<title>Load a basic WebMap - 4.1</title> | |
<style> | |
html, | |
body, |
This file contains 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
// Loading all required dojo and esri modules used in index map | |
require([ | |
'dojo/topic', | |
'dojo/_base/array', | |
'dojo/dom-geometry', | |
'esri/map', | |
'esri/layers/CSVLayer', | |
'esri/Color', | |
'esri/symbols/SimpleMarkerSymbol', | |
'esri/renderers/UniqueValueRenderer', |
NewerOlder