minor changes
This commit is contained in:
parent
208eb9eea3
commit
5a8705b256
2 changed files with 70 additions and 73 deletions
|
@ -3,14 +3,12 @@
|
||||||
"name": "My website",
|
"name": "My website",
|
||||||
"image": "",
|
"image": "",
|
||||||
"location": "https://my.website",
|
"location": "https://my.website",
|
||||||
"resources": [
|
"resources": [{
|
||||||
{
|
|
||||||
"label": "RSS Feed",
|
"label": "RSS Feed",
|
||||||
"icon": "",
|
"icon": "",
|
||||||
"location": "https://my.website.com/rss.xml",
|
"location": "https://my.website.com/rss.xml",
|
||||||
"description": "Stay up to date!"
|
"description": "<img src='example.com'>"
|
||||||
}
|
}],
|
||||||
],
|
|
||||||
"connection_groups": {
|
"connection_groups": {
|
||||||
"Group1": [
|
"Group1": [
|
||||||
"https://libresolutions.network"
|
"https://libresolutions.network"
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" href="/theme.css">
|
<link rel="stylesheet" href="/theme.css">
|
||||||
<title>Interverse</title>
|
<title>Interverse</title>
|
||||||
<script src="//unpkg.com/alpinejs" defer></script>
|
<script src="https://unpkg.com/alpinejs" defer></script>
|
||||||
<! consider hosting on your site>
|
|
||||||
<script src="/helper.js"></script>
|
<script src="/helper.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div class="interverse" x-data x-if="Alpine.store('data')">
|
<div class="interverse" x-data x-if="Alpine.store('data')">
|
||||||
<div id="interverse-details">
|
<div id="interverse-details">
|
||||||
|
@ -93,8 +95,7 @@
|
||||||
if (getUrlParameter('s') && getUrlParameter("url")) {
|
if (getUrlParameter('s') && getUrlParameter("url")) {
|
||||||
var uri = "";
|
var uri = "";
|
||||||
main_url = getUrlParameter('s') + "://" + getUrlParameter("url") + '/.well-known/interverse';
|
main_url = getUrlParameter('s') + "://" + getUrlParameter("url") + '/.well-known/interverse';
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
if (getUrlParameter('url')) {
|
if (getUrlParameter('url')) {
|
||||||
main_url = "https://" + getUrlParameter('url') + '/.well-known/interverse';
|
main_url = "https://" + getUrlParameter('url') + '/.well-known/interverse';
|
||||||
}
|
}
|
||||||
|
@ -121,8 +122,7 @@
|
||||||
dat = JSON.parse(e.target.response);
|
dat = JSON.parse(e.target.response);
|
||||||
console.log(dat);
|
console.log(dat);
|
||||||
Alpine.store(dat['location'], dat);
|
Alpine.store(dat['location'], dat);
|
||||||
}
|
} catch {
|
||||||
catch{
|
|
||||||
console.log("Failed to parse connection JSON");
|
console.log("Failed to parse connection JSON");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -130,7 +130,6 @@
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue