Working...
Photo
Sebastian K.
Feb 05 '16 at 10:08

Jimdo Download Modul in PDF Viewer umschreiben

<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript">
</script>

<script type="text/javascript">


    $( document ).ready(function() {
        $( ".j-m-dowload .descriptionContainer a" ).each(function( index ) {
    $.oldlink = $(this).attr('href');
    $.viewer = "https://docs.google.com/viewerng/viewer?url=";  
            $.newlink = $.viewer+$.oldlink;
    $(this).attr("href", $.newlink);
            $(this).attr("target", "_blank");
    $(this).text("Öffnen");

});

});

</script>
0
Sort by reaction | Sort by date
Photo

oder mit dem selector

a[href*='.pdf']

0 Edit Post

Display archived posts

"Sidebar" Chats

Loading...
Working...