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() {
m = window.location.href.match('/#([a-zA-Z0-9._]+)$');
if (m) {
this.selectedPlugin = m[1];
}
const self = this;
setInterval(() => {
self.now = new Date();

View File

@ -14,7 +14,7 @@
{% endif %}
{% 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">
<script type="text/x-template" id="tmpl-media">