DiaColloDB-WWW
view release on metacpan or search on metacpan
share/htdocs/diacollo.css view on Meta::CPAN
341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
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
123012311232123312341235123612371238123912401241124212431244124512461247124812491250
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
145514561457145814591460146114621463146414651466146714681469147014711472147314741475function 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
164916501651165216531654165516561657165816591660166116621663166416651666166716681669
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);
/*
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 )