[PLUGINS] +clavettes et dependances
[lhc/web/clavette_www.git] / www / plugins / ressource / modeles / application.html
1 [(#EXTENSION|=={pdf}|oui)
2 <iframe src="[(#VAL{https://docs.google.com/viewer?embedded=true}
3 |parametre_url{url,#HREF|url_absolue})]"
4 width='100%' height='100%'
5 class='ressource-pdf google-doc-viewer'
6 style='max-width:100%; border:0'>
7 </iframe>
8 <noscript><a href="[(#HREF|url_absolue)]"><:bouton_download:></a></noscript>
9 <script type="text/javascript">
10 $(function() {
11 $('iframe.ressource-pdf')
12 .each(function() {
13 var a = $(this).data('ratio') || 1.2;
14 $(this).height(Math.min($(this).width()*a, $(window).height()));
15 });
16 });
17 </script>
18 ]