Skip to content

Instantly share code, notes, and snippets.

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,
};
};
@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) {
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");
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);
});