We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a049ff6 commit 5c7bd25Copy full SHA for 5c7bd25
1 file changed
assets/script.js
@@ -107,6 +107,14 @@ document.addEventListener("DOMContentLoaded", () => {
107
108
run();
109
110
+ document.querySelectorAll('.citation[data-doi]').forEach(async (el) => {
111
+ const doi = el.getAttribute('data-doi');
112
+ const res = await fetch(`https://odd-butterfly-821e.sirshakiba.workers.dev/?doi=${encodeURIComponent(doi)}`);
113
+ const json = await res.json();
114
+ const count = parseInt(json?.['abstracts-retrieval-response']?.coredata?.['citedby-count']);
115
+ console.log(doi, count);
116
+});
117
+
118
const toggleText = {
119
default: 'CONTACT',
120
alternate: 'HOME'
0 commit comments