Compare commits
No commits in common. "a582479da43a10ac41bf4bd6b9a1e112e62c0c8c" and "e0c6b12ccc4df237294e3396571bc3c24a95368b" have entirely different histories.
a582479da4
...
e0c6b12ccc
|
@ -13,7 +13,7 @@ var baseurl = "https://nouveau.europresse.com/WebPages/Pdf/Document.aspx?DocName
|
||||||
function getpage(page)
|
function getpage(page)
|
||||||
{
|
{
|
||||||
fetch(baseurl + page)
|
fetch(baseurl + page)
|
||||||
.then(response => response.blob())
|
.then(response =>response.blob())
|
||||||
.then(blob =>
|
.then(blob =>
|
||||||
{
|
{
|
||||||
if (blob.size)
|
if (blob.size)
|
||||||
|
@ -22,6 +22,7 @@ function getpage(page)
|
||||||
if (page < 10) pagename = "00" + pagename;
|
if (page < 10) pagename = "00" + pagename;
|
||||||
else if (page < 100) pagename = "0" + pagename;
|
else if (page < 100) pagename = "0" + pagename;
|
||||||
|
|
||||||
|
console.log("Downloading page " + pagename);
|
||||||
var filename = basename + "-" + pagename + ".pdf";
|
var filename = basename + "-" + pagename + ".pdf";
|
||||||
var a = document.createElement('a');
|
var a = document.createElement('a');
|
||||||
a.href = window.URL.createObjectURL(blob);
|
a.href = window.URL.createObjectURL(blob);
|
||||||
|
|
|
@ -46,6 +46,7 @@
|
||||||
<li><a href="https://lundi.am">Lundi matin</a></li>
|
<li><a href="https://lundi.am">Lundi matin</a></li>
|
||||||
<li><a href="https://www.terrestres.org">Terrestres</a></li>
|
<li><a href="https://www.terrestres.org">Terrestres</a></li>
|
||||||
<li><a href="https://basta.media">Basta!</a></li>
|
<li><a href="https://basta.media">Basta!</a></li>
|
||||||
|
<li><a href="https://theconversation.com/fr">The Conversation</a></li>
|
||||||
<li><a href="https://www.theguardian.com/europe">The Guardian</a></li>
|
<li><a href="https://www.theguardian.com/europe">The Guardian</a></li>
|
||||||
<li><a href="https://theintercept.com/">The Intercept</a></li>
|
<li><a href="https://theintercept.com/">The Intercept</a></li>
|
||||||
<li><a href="https://www.contretemps.eu/">Contretemps</a></li>
|
<li><a href="https://www.contretemps.eu/">Contretemps</a></li>
|
||||||
|
|
Loading…
Reference in New Issue