• This project
    • Loading...
  • Sign in

Bruno / adb

Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Commits
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • adb
  • ..
  • local-dev
  • main.js
  • Bruno's avatar
    Upload adminBuilder md-layout-1 · 3f733922
    3f733922 Browse Files
    Bruno authored 2016-03-28 13:46:56 +0200
main.js 499 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
var ProgressBar = require('../src/main.js');


function onLoad() {
    var bar = new ProgressBar.Circle('#progress', {
        duration: 4000,
        from: {
            color: '#f00'
        },
        to: {
            color: '#0f0'
        },
        step: function(state, bar) {
            bar.path.setAttribute('stroke', state.color);
        },
    });

    bar.animate(1);

    // Expose the bar to global so it is easy to test from console
    window.bar = bar;
}

window.onload = onLoad;