Coder Social home page Coder Social logo

anycable-web's Introduction

About

AnyCable website generator (https://anycable.io).

Includes:

Usage

Run npm install and then npm start or gulp to start dev server with livereload.

SVG Optimization

Use svgo to optimize SVG images.

For animated illustration use: svgo --disable=moveGroupAttrsToElems --disable=convertTransform src/images/illustration.svg src/images/illustration.min.svg

JSPM config issue

When you run yarn install (or jspm install explicitly) it updates the jspm.config.js in the following way:

   },
   paths: {
     "*": "src/js/*.js",
-    "github:*": "/jspm_packages/github/*",
-    "npm:*": "/jspm_packages/npm/*"
+    "github:*": "jspm_packages/github/*",
+    "npm:*": "jspm_packages/npm/*"
   },
   baseUrl: "/",

This configuration breaks non-root pages; revert this change to use the absolute path.

GTM Integration

To send custom events to GTM do the following:

  • For links (or link-like elements) use gtm-link class and specify action and category using data-gtm-action and data-gtm-category attributes:
a.gtm-link(href="#", data-gtm-category="landingButton", data-gtm-action="tryIt1")
  • For footer links you can alternatively just add a gtm-footer-link class without specifying any data attributes (footerLinks category and action derived from the link text will be used automatically). The action value could be overriden by setting data-gtm-action attribute.

  • For form submissions use gtm-form class and the same data-gtm-category and data-gtm-action attributes.

NOTE: in development, we print events in the console instead of sending them to GTM. See dochead.pug for more.

anycable-web's People

Contributors

bibendi avatar gretchenfitze avatar kazarin avatar palkan avatar pavelgrinchenko avatar yaroslav avatar

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.