Git Product home page Git Product logo

embed_aca-acha-maps's Introduction

aca-maps

Preview

This is an embeddable graphic built using the dmninteractives Yeoman generator. It's designed to be embedded using Pym.js as a responsive iframe.

Requirements

  • Node - brew install node
  • Gulp - npm install -g gulp-cli

Local development

Installation

  1. npm install to install development tooling
  2. gulp to open a local development server

What's inside

  • dist/index.html - Graphic HTML markup; there's no Nunjucks, etc. so this is just straight HTML
  • dist/embed.html - A page to test your embed
  • src/js/*.js - Graphic scripts, written in ES2015 and transpiled with Babel
  • src/sass/*.scss - Graphic styles in SCSS

Publishing

gulp publish will upload your dist/ folder to the embeds/2017/aca-maps/ folder on our interactives S3 bucket.

Usage

Embedding in Serif

The below embed code can be pasted into a Serif "code block":

<div id="embed-aca-maps"></div>
<script src="//pym.nprapps.org/pym.v1.min.js"></script>
<script>new pym.Parent('embed-aca-maps', '//interactives.dallasnews.com/embeds/2017/aca-maps/', {})</script>

Copyright

©2017 The Dallas Morning News

embed_aca-acha-maps's People

Contributors

achavez avatar johndhancock avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.