DiaColloDB-WWW

 view release on metacpan or  search on metacpan

share/htdocs/diacollo.css  view on Meta::CPAN

341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  color: #aaa;
  cursor: pointer;
}
 
/*--------------------------------------------------------------
 * profile data: d3 common: export menu
 */
#exportMenu {
    display:none;
    position: absolute;
    width: 200px;
    top: 24px;
    right: 10px;
    float: right;
    z-index: 1;
}
 
#exportMenu li a,
#exportMenu li a :hover {
    color: inherit;
    background-color: inherit;
    text-decoration: none;
}
 
/*--------------------------------------------------------------
 * profile data: d3: common: transport
 */
#d3transport > div {
  vertical-align: middle;

share/htdocs/diacollo.js  view on Meta::CPAN

1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
        if (ix==1) jsel.focus();
    }
}
 
//-- d3: keyboard bindings & focus: focus handlers
var d3HasFocus=false;
function d3SetFocus(val) {
    if (val==null) val=!d3HasFocus;
    d3HasFocus = val;
    //debug_log("setFocus("+val+")");
    //exportMenuHide(0);
    if (val) {
        //-- enable keyboard focus
        $("#kbicon").attr("title","Keyboard shortcuts enabled (arrow-keys, spacebar)");
        $("#kbiconx").hide();
    } else {
        //-- disable keyboard focus
        $("#kbicon").attr("title","Keyboard shortcuts disabled (click to enable)");
        $("#kbiconx").show();
    }
}

share/htdocs/diacollo.js  view on Meta::CPAN

1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
function d3OnSpeedBrushEnd() {
    //d3SpeedBrushDebug("d3OnSpeedBrushEnd()");
    speedNode.classed("brushing",false);
}
 
//----------------------------------------------------------------------
// d3: play/pause transport: callbacks
function dcpPlay(playing,force) {
    if (playing==null) playing = dcpPlaying;
    if (force==null) force=false;
    //exportMenuHide(0);
 
    //-- setup buttons
    var btn = d3.selectAll(".btn");
    btn.selectAll(".play").style("opacity",Number(!playing));
    btn.selectAll(".pause,.stop").style("opacity",Number(playing));
 
    if (!force && playing==dcpPlaying) return;
    dcpPlaying = playing;
 
    //-- maybe start playing

share/htdocs/diacollo.js  view on Meta::CPAN

1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
    var url = "data:image/svg+xml;charset=utf-8,"+encodeURIComponent(source);
 
    //-- set url value to the export button's element's href attribute
    $("#exportBtn")
        //.prop("target","_tab")
        .prop("download","diacollo.svg")
        .prop("href",url);
 
    //-- go get it (must use DOM click() method, not jQuery if using exportTarget != event.target)
    /*
      exportMenuHide();
      document.getElementById('exportTarget').click();
    */
 
    //-- direct-click button: just return true
    return true;
}
 
//--------------------------------------------------------------
// d3: export: utils: get css string from selected stylsheets



( run in 0.253 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )