Skip to content

Instantly share code, notes, and snippets.

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);
});
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");
@ssylvia
ssylvia / BannerNotification.js
Last active August 16, 2018 13:12
Banner Notification
define([
// Import reusable strings as needed (e.g. dojo/i18n!./path/to/template.js)
], function(
// String Object (e.g. ViewerStrings)
) {
'use strict';
var existingNotifications = [];
var isUniqueNotification = function(id) {
if (existingNotifications.indexOf(id) >= 0) {
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,
};
};
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');
{
"brand": {
"primary": "#ff9f08",
"secondary":"#4fff00" ,
"gray": "#4c4c4c"
},
"text":{
"color": "#ffffff"
},
"logo": {
require([“dojo/topic”], function(topic) {
/* * Custom Javascript to be executed while the application is initializing goes here */
// The application is ready
topic.subscribe(“tpl-ready”, function(){
/* * Custom Javascript to be executed when the application is ready goes here */
// Add a click event for each group of buttons
// Use Jquery class selector (https://api.jquery.com/class-selector/) to select a group of buttons and add a click event
<!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,
// 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',