浏览代码

Properly link to the source for an image.

tags/v0.1.0
Fen Dweller 5 年前
父节点
当前提交
a8ca7487ac
共有 2 个文件被更改,包括 23 次插入1 次删除
  1. +5
    -1
      macrovision.js
  2. +18
    -0
      media/attribution.js

+ 5
- 1
macrovision.js 查看文件

@@ -714,7 +714,11 @@ function displayAttribution(file) {
} else if (source === undefined) {
sourceHolder.innerText = "Not yet entered";
} else {
sourceHolder.innerText = source;
sourceHolder.innerHTML = "";
const link = document.createElement("a");
link.href = source;
link.innerText = new URL(source).host;
sourceHolder.appendChild(link);
}
}



+ 18
- 0
media/attribution.js 查看文件

@@ -22,12 +22,30 @@ const attributionData = {
authors: [
"chemicalcrux"
]
},
{
prefix: "./media/characters/abysgar/",
files: [
{ name: "front.svg", source: "https://www.furaffinity.net/view/32424108/"}
],
authors: [
"clown-grin",
"labratkuma"
]
}
],
authors: {
"chemicalcrux": {
name: "chemicalcrux",
url: "https://www.furaffinity.net/user/chemicalcrux"
},
"clown-grin": {
name: "clown-grin",
url: "https://www.furaffinity.net/user/clown-grin"
},
"labratkuma": {
name: "labratkuma",
url: "https://www.furaffinity.net/user/labratkuma"
}
}
}


正在加载...
取消
保存