Template:Print Button alt: Difference between revisions

no edit summary
(Created page with "<noinclude> Basic syntax: <pre>{{Print Button}}</pre> If only the manually generated EPUB is available: <pre>{{Print Button|epub=Note_sulla_logica_-_Ludwig_Wittgenstein.epu...")
 
No edit summary
Line 16: Line 16:
<pre>|tree-like view=Tractatus Logico-Philosophicus (tree-like view) |audiobook=Tractatus Logico-Philosophicus (English audiobook)</pre>
<pre>|tree-like view=Tractatus Logico-Philosophicus (tree-like view) |audiobook=Tractatus Logico-Philosophicus (English audiobook)</pre>


</noinclude><includeonly><p class="noprint" style="text-align:center; margin-top:20px;"><html><a onclick="displayExportOptions();" href="#">Download/export</a></html>{{#if:{{{tree-like view|}}}|&nbsp;· [[{{{tree-like view|}}}|Go to tree-like view]]|}}{{#if:{{{audiobook|}}}|&nbsp;· [[{{{audiobook|}}}|Go to audiobook]]|}}{{#if:{{{epub|}}}|&nbsp;· <span class="plainlinks">[https://wittgensteinproject.org/ebooks/{{{epub}}} Downolad EPUB]</span>|}}</p>
</noinclude><includeonly>
<div class="" style="display: none;" id="export-options"><html><a onclick="print();" href="#">Download/print PDF</a></html><span class="plainlinks">[{{fullurl:{{PAGENAME}}|action=render}} Plain HTML]</span></div>
<html>
<style>
.export-options {
  background-color: rgba(0,0,0,0.6);
  color: white;
  padding: .5em;
  border-radius: .3em;
  transform: translate(-14em, -.5em);
  position: absolute;
  box-shadow: 0 3px 6px rgba(0,0,0,0.6);
  transition: .2s;
}
.export-options a {
  color: white;
}
.export-options:hover {
box-shadow: 0 6px 10px rgba(0,0,0,0.6);
}
.export-options-close-button {
  float: right;
}
.export-options-close-button:hover {
  cursor: pointer;
}
</style>
</html>
<p class="noprint" style="text-align:center; margin-top:20px;"><html><a onclick="displayExportOptions();" href="#">Download/export</a></html>{{#if:{{{tree-like view|}}}|&nbsp;· [[{{{tree-like view|}}}|Go to tree-like view]]|}}{{#if:{{{audiobook|}}}|&nbsp;· [[{{{audiobook|}}}|Go to audiobook]]|}}{{#if:{{{epub|}}}|&nbsp;· <span class="plainlinks">[https://wittgensteinproject.org/ebooks/{{{epub}}} Downolad EPUB]</span>|}}</p>
<div class="export-options" style="display: none;" id="export-options"><html><img src="images/0/03/White-cross.png" class="tooltip-close-button" width="10px" onclick="closeTooltip()"></html><html><a onclick="print();" href="#">Download/print PDF</a></html><span class="plainlinks">[{{fullurl:{{PAGENAME}}|action=render}} Plain HTML]</span></div>
</includeonly>
</includeonly>