npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ivx-js-angular

v0.7.0

Published

An AngularJS extension for quick development of data-driven interactive multimedia experiences.

Downloads

4

Readme

iVXjs

A library to make data-driven interactive web-experiences with support for video, sound, data collection, decision-trees and animations.

Note about this version

iVXjs uses different rendering libraries to create the experience. Currently, this repository utilizes Angular to build and render the experience and this "Getting Started" will focus on that implementation.

Getting Started

Downloading the library

  • Clone this repository or download zip
  • Via npm npm install ivx-js-angular --save

iVXjs Angular's Dependencies

The Angular iVXjs instance--iVXjs for this documentation--has the following script dependencies:

Let's create a simple iVXjs Experience

To get started, follow the steps below:

  • Add the following HTML to the working project file:
	<!-- Angular application for this page -->
	<div ng-app="app"></div>

	<!-- Container for an iVXjs Experience -->
	<div id='ivx'></div>
	
	<!-- iVXjs Angular Library Dependencies  -->
	<script src='https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0/angular.min.js'></script>
	<script src='https://cdnjs.cloudflare.com/ajax/libs/angular-ui-router/1.0.0-alpha.5/angular-ui-router.js'></script>
	<script src='https://cdnjs.cloudflare.com/ajax/libs/angular-sanitize/1.5.6/angular-sanitize.min.js'></script>
	<script src='[PATH-TO-JS]/angular.ivx.js'></script>
	
	<!-- Youtube iFrame API -->
    <script src='https://www.youtube.com/iframe_api'></script> 
    
	<script>
        angular
        .module('app', ['ivx-js'])
        .config(['iVXjs', function(iVXjs){
            iVXjs.init({
				config:"sample-experience.json"
			})
        }]);    
    </script>

	 <!-- Angular Templates -->

	<!-- Form Header Template -->
	<script type="text/ng-template" id="form-header.html">
		<h1>Welcome to an iVXjs Sample Experience</h1>
	</script>

	<!-- Name Personalization Template -->
	<script type="text/ng-template" id="name-personalization.html">
		<h1>Hey, {{experience.fullName}}, finding this cool?</h1>
	</script>

	<!-- Helpful Links Header Template -->
	<script type="text/ng-template" id="helpful-links-header.html">
		<h1>Now that you have seen it {{experience.fullName}}, create an experience of your own!</h1>
	</script>
  • Copy the following contents into a file in your project root called "sample-experience.json"
{
    "defaultState": [
        {
            "stateId": "welcome-form"
        }
    ],
    "states": [
        {
            "id": "welcome-form",
            "name": "Welcome Form",
            "url": "/",
            "type": "input",
            "header": {
                "templateUrl": "form-header.html"
            },
            "form": {
                "classes": "",
                "submit": {
                    "label": "Get started!"
                }
            },
            "next": [
                {
                    "stateId": "video-sample"
                }
            ],
            "inputs": [
                {
                    "id": "full-name",
                    "name": "fullName",
                    "type": "text",
                    "label": "Your name:",
                    "settings": {
                        "container": {},
                        "input": {}
                    },
                    "attributes": {
                        "placeholder": "Enter your name here...",
                        "required": true
                    }
                }
            ]
        },
        {
            "id": "video-sample",
            "name": "Video Sample",
            "url": "/video-sample",
            "type": "video",
            "next": [
                {
                    "stateId": "helpful-links"
                }
            ],
            "playerSettings": {
                "youtubeId": "oErhFh4AyZ0"
            },
            "personalizations": [
                {
                    "id": "name-personalization",
                    "templateUrl": "name-personalization.html"
                }
            ],
            "cuePoints": [
                {
                    "timeAt": 0,
                    "eventName": "animateElement",
                    "args": {
                        "element": "#name-personalization",
                        "animationClasses": "show"
                    }
                },
                {
                    "timeAt": 5,
                    "eventName": "animateElement",
                    "args": {
                        "element": "#name-personalization",
                        "animationClasses": "hide"
                    }
                }
            ]
        },
        {
            "id": "helpful-links",
            "name": "Helpful Links",
            "url": "/helpful-links",
            "type": "navigation",
            "header": {
                "templateUrl": "helpful-links-header.html"
            },
            "links": [
                {
                    "href": "https://influencetech.github.io/ivx-js/developer/tutorial.hello-world/",
                    "attributes": {
                        "target": "_blank"
                    },
                    "label": "Getting Started with iVXjs",
                    "classes": "btn",
                    "onClick": []
                },
                {
                    "href": "https://influencetech.github.io/ivx-js/developer/tutorials/",
                    "attributes": {
                        "target": "_blank"
                    },
                    "label": "Tutorials",
                    "classes": "btn",
                    "onClick": []
                },
                {
                    "href": "https://influencetech.github.io/ivx-js/developer/configuration/",
                    "attributes": {
                        "target": "_blank"
                    },
                    "label": "JSON Specs and Configurations",
                    "classes": "btn",
                    "onClick": []
                }
            ]
        }
    ]
}
  • The result should look like this: Sample Experience Form

To make it look a little better, let's add some styling. There are some default styles provided in these css files:

  • core.css (tools/utilities/css/core.css) - Core styling with iVXjs styling components such as a input grid system, YouTube video sizing, etc.
  • basic-style.css (tools/utilities/css/core.css) - A basic style for iVXjs

After adding these css files, the experience should look something like this: Sample Experience Form With Styling

Explore Further

Here are some great places to start to create your own unique iVXjs experience: