These are chat archives for linkeddata/dokieli

17th
Nov 2016
jibe-b
@jibe-b
Nov 17 2016 12:00
question: can I pass the CSS as a URL parameter?
Sarven Capadisli
@csarven
Nov 17 2016 12:01
No. But I wanted to do that at some point. I didn't get to finish it. It'd be nice to set/select the CSS of the document that way.
jibe-b
@jibe-b
Nov 17 2016 12:02
is there an issue/piece of code where I can see the state in which it is?
Sarven Capadisli
@csarven
Nov 17 2016 12:03
?style=https://dokie.li/media/css/acm.css (I think that should be a URL so that it can load any CSS out there)
I thought there was an issue for that, but apparently not. Feel free to create that.
https://github.com/linkeddata/dokieli/blob/master/scripts/do.js#L1399 is responsible for switching between the stylesheets.
jibe-b
@jibe-b
Nov 17 2016 12:05
thanks!
Sarven Capadisli
@csarven
Nov 17 2016 12:06
That might need to be refactored to take on the ?style as possible input
or maybe work with it..
so that ?style updates the <head> (i.e., add a <link as the main stylesheet and the rest have an alternate applied to them)
?style or ?view
dokieli uses the 'view' terminology instead of style because it is not solely about the stylesheet.. (even though it mostly is)
I don't know if style or view or something else is better
jibe-b
@jibe-b
Nov 17 2016 12:09
scientists used to latex say "template"
(again this meaningless word…)
Sarven Capadisli
@csarven
Nov 17 2016 12:09
theme
jibe-b
@jibe-b
Nov 17 2016 12:10
issue #163
Sarven Capadisli
@csarven
Nov 17 2016 12:10
yea, different takes.
Thanks!
There is a bug in WebKit that doesn't render the newly selected view. For example, if you load https://dokie.li/ and click on 'ACM' or 'LNCS' or whatever.. it will do everything there is switch to that (i.e., updating the DOM), however the view drops the the stylesheet so we see the browser defaults. The user has to click to another view and then back to the one they wanted to see it render properly.
Firefox doesn't have issues with that.
Oh.. forgot that I created an issue for that already linkeddata/dokieli#162
Sarven Capadisli
@csarven
Nov 17 2016 12:28
@jibe-b I just created #164 , I think you might like that. It will take advantage of #163
Exciting.
One thing I don't like about the ? is that, it will be sent to the server. I think these features only affect the client, so using # might be a hack for that. Maybe stick to ? for now.
jibe-b
@jibe-b
Nov 17 2016 12:35
I must say it's above my current skills, I follow your expert's opinion