Coder Social home page Coder Social logo

leeric92 / bands Goto Github PK

View Code? Open in Web Editor NEW

This project forked from clamstew/bands

0.0 1.0 0.0 812 KB

This is an attempt at a front end that generates the HTML someone would need for an email, so they can copy and paste it into an email html and not rely on javascript generators for facebook.

Home Page: https://bandsintown-email-html.herokuapp.com/

JavaScript 100.00%

bands's Introduction

My buddy was trying to grab the band tour date info from bandsintowns.com facebook widget, and it was coming back with a script tag include if you wanted to show that on your blog.

This wouldn't work in email, since the script won't execute.

This is an attempt at a front end that generates the HTML someone would need for an email, so they can copy and paste it into an email html and not rely on javascript generators for facebook.


Helpful links: http://stackoverflow.com/questions/6209161/extract-the-current-dom-and-print-it-as-a-string-with-styles-intact http://stackoverflow.com/questions/5963182/how-to-remove-spaces-from-a-string-using-javascript

Shout out to O'reillys Javascript Patterns book for the fake $() "jQuery selector function" that wraps getElementById(); var $ = function(id) {return document.getElementById(id);};. I should do that more often for casual DOM querying.

This was helpful for doing a get request with the node server http://stackoverflow.com/questions/20304862/nodejs-httpget-to-a-url-with-json-response - install npm install request --save

should comb through this for email styles tips: http://24ways.org/2009/rock-solid-html-emails (havent yet)

http://stackoverflow.com/questions/2092696/how-to-fix-height-of-tr

bands's People

Watchers

 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.