Using /#[plugin.name] as a URL hint for selecting a tab on load.

Closes #83
This commit is contained in:
Fabio Manganiello 2020-01-31 20:29:47 +01:00
parent eff21c0720
commit b02b30656c
2 changed files with 6 additions and 1 deletions

View file

@ -24,6 +24,11 @@ window.vm = new Vue({
}, },
created: function() { created: function() {
m = window.location.href.match('/#([a-zA-Z0-9._]+)$');
if (m) {
this.selectedPlugin = m[1];
}
const self = this; const self = this;
setInterval(() => { setInterval(() => {
self.now = new Date(); self.now = new Date();

View file

@ -14,7 +14,7 @@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<link rel="stylesheet" href="https://raw.githubusercontent.com/BlackLight/flag-icon-css/master/css/flag-icon.css" <link rel="stylesheet" type="text/plain" href="https://raw.githubusercontent.com/BlackLight/flag-icon-css/master/css/flag-icon.css"
integrity="sha384-mPYV5+yeuQTJewx1+Wrw69srZ+G3vhAUzyFk0FStD8ndXBy3bJcrc15p9XJr7OBn" crossorigin="anonymous"> integrity="sha384-mPYV5+yeuQTJewx1+Wrw69srZ+G3vhAUzyFk0FStD8ndXBy3bJcrc15p9XJr7OBn" crossorigin="anonymous">
<script type="text/x-template" id="tmpl-media"> <script type="text/x-template" id="tmpl-media">