minor code formatting tweaks
parent
b77f770d46
commit
2cfbcbfe82
|
@ -28,7 +28,12 @@ object edit extends Context.ToLang {
|
||||||
if (ctx.is(s.user))
|
if (ctx.is(s.user))
|
||||||
div(cls := "streamer-header")(
|
div(cls := "streamer-header")(
|
||||||
if (s.streamer.hasPicture)
|
if (s.streamer.hasPicture)
|
||||||
a(targetBlank, cls := "picture-edit", href := routes.Streamer.picture, title := changePicture.txt())(
|
a(
|
||||||
|
targetBlank,
|
||||||
|
cls := "picture-edit",
|
||||||
|
href := routes.Streamer.picture,
|
||||||
|
title := changePicture.txt()
|
||||||
|
)(
|
||||||
bits.pic(s.streamer, s.user)
|
bits.pic(s.streamer, s.user)
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
|
|
|
@ -102,7 +102,9 @@ export default function (element: HTMLElement, ctrl: AnalyseCtrl) {
|
||||||
.filter('.' + panel)
|
.filter('.' + panel)
|
||||||
.addClass('active');
|
.addClass('active');
|
||||||
if ((panel == 'move-times' || ctrl.opts.hunter) && !lichess.movetimeChart)
|
if ((panel == 'move-times' || ctrl.opts.hunter) && !lichess.movetimeChart)
|
||||||
lichess.loadScript('javascripts/chart/movetime.js').then(() => lichess.movetimeChart(data, ctrl.trans, ctrl.opts.hunter));
|
lichess
|
||||||
|
.loadScript('javascripts/chart/movetime.js')
|
||||||
|
.then(() => lichess.movetimeChart(data, ctrl.trans, ctrl.opts.hunter));
|
||||||
if ((panel == 'computer-analysis' || ctrl.opts.hunter) && $('#acpl-chart').length)
|
if ((panel == 'computer-analysis' || ctrl.opts.hunter) && $('#acpl-chart').length)
|
||||||
setTimeout(startAdvantageChart, 200);
|
setTimeout(startAdvantageChart, 200);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue