JQuery:Automatic Insertion of Icons for PDF Links

Aim: to place a pdf icon at the end of a hyperlink.

HTML code:
<a href="#">This is a blue document (PDF, 2.3MB)</a>

Front end output:
This is a blue document (PDF, 2.3MB) [imageIcon]

If the value inside the anchor tag contains '(PDF,' and ends with 'b)' ('b' can be either lower or uppercase) then append the image icon at the end.


This is the code I've been trying to fiddle with to get the above criteria:

<script type="text/javascript" src="../jquery-1.3.2.js"></script>
<script type="text/javascript">
    $("document").ready(function() {
       // $("li a[href$=.pdf]").after("<img src='images/small_pdf_icon.gif' align='absbottom' />");
            $("p=.pdf]").after("<img src='images/small_pdf_icon.gif' align='absbottom' />");
            //$("a[pdf][href$=.pdf]").after("<img src='images/small_pdf_icon.gif' align='absbottom' />");
            $("p*=PDF").after("<img src='images/small_pdf_icon.gif' align='absbottom' />");
    });
</script>
jeremyllAsked:
Who is Participating?
 
ProculopsisConnect With a Mentor Commented:

Do you mean something like this:

<html>
<head>
<title>http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_26866457.html</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js" type="text/javascript"></script>
<script> 

jQuery(document).ready(function(){

  $(".document").each( function() {
    $(this).append( $(".pdf-placeholder").clone().removeClass( "pdf-placeholder" ) );
  });

});

</script>

<style>
.pdf-placeholder { display: none; }
a { display: block; }
</style>

</head>
<body>

<a class="document" href="#">This is a red document (PDF, 1.4MB)</a>
<a class="document" href="#">This is a white document (PDF, 2.3MB)</a>
<a class="document" href="#">This is a blue document (PDF, 3.2MB)</a>

<img class="pdf-placeholder" src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys/RD84QzQ5Ojf/2wBDAQoKCg0MDRoPDxo3JR8lNzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzf/wAARCAAkACQDASIAAhEBAxEB/8QAGgABAQADAQEAAAAAAAAAAAAAAAYCBAUHA//EADQQAAEDAwIDAwsEAwAAAAAAAAECAwQABREGIRITMQcUQRciMjdRUlZxdJHCFScz0TR1tP/EABgBAQADAQAAAAAAAAAAAAAAAAABAwUE/8QAJhEAAQEGBAcAAAAAAAAAAAAAAAECAxESITEEBRMiFDJRYXGBkf/aAAwDAQACEQMRAD8AsL72iy7dqt+wQ7EiY6h1pptap3K5iloQoDHLIHpgdanDqjWrz0pxAdCObxNpYuMPgKVqXy0NEx1F04SU+aVElB6HautqHQuoZWuH9QWty1lBfZfaRJecSctoQMKCUHbKPA9KmrbbdZ8Ux5ESDOd75tKkzVqWh6OpxsLTnGcHiwFAggDI8K51V9NRKejYdsZdpIrTW6CR5rx7UsfaZrPVcKO0/JkPpS6lCkoTc4KnMKTxJJQIpUARg7gdR7aza7S7jarlapcyY/MtsyA3IdjSQwlxBUpYVwKQhGSOAYzsd84yCnk3Cw6wushmJIaiKVEZQ23H78eFpKUITkAjAyAknHU59m3oelbJ3LS9st91jMLkRWeBQUkLAOd8H7VLGosZqdCrE8E7kVzuvFKp4v8AS2gy2J8KPMiL5keQ0l1peCOJChkHB3Gx8aVNdlJ/buxfT/kaVeZhWVHae/xJf+ynf9TtWNedwLkptiXEhpC5a7nOQkn0UKMl07/IecR7Me8nIGyzKbbvkqWsITGcKYfNOf5E5PXpglRT80geNd2uU3ZGu4IhSJDzzATwqQDwBeepVjcknJO/jWP6EhtRMSVIaBIPnOKWU490k5HjtuN+nTAGz2UeruxfTfkaU7KPV3YvpvyNKArKnbjobS1zlLlTbFCcfWSVrDfCVkkkk4xkkncnelKA1fJtoz4eh/Y/3TybaM+Hof2P90pQFFbYEW1QWoNvZSzGZGG20kkJGc4GfnSlKA//2Q==" />

</body>
</html>

Open in new window

0
 
ProculopsisConnect With a Mentor Commented:

...or rather this:

<html>
<head>
<title>http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_26866457.html#a35045742</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js" type="text/javascript"></script>
<script> 

jQuery(document).ready(function(){

  $(".document").each( function() {

    var fileType = $(this).text().replace( /^.*\((.+),.*\)$/, "$1" ).toLowerCase();
    $(this).append( $( "#icon-" + fileType ).clone().removeClass("placeholder") );

  });

});

</script>

<style>
.placeholder { display: none; }
a { display: block; }
</style>

</head>
<body>

<a class="document" href="#">This is a red document (PDF, 1.4MB)</a>
<a class="document" href="#">This is a white document (PDF, 2.3MB)</a>
<a class="document" href="#">This is a Postscript document (PS, 2.3MB)</a>
<a class="document" href="#">This is a blue document (PDF, 3.2MB)</a>

<img id="icon-pdf" class="placeholder" src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys/RD84QzQ5Ojf/2wBDAQoKCg0MDRoPDxo3JR8lNzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzf/wAARCAAkACQDASIAAhEBAxEB/8QAGgABAQADAQEAAAAAAAAAAAAAAAYCBAUHA//EADQQAAEDAwIDAwsEAwAAAAAAAAECAwQABREGIRITMQcUQRciMjdRUlZxdJHCFScz0TR1tP/EABgBAQADAQAAAAAAAAAAAAAAAAABAwUE/8QAJhEAAQEGBAcAAAAAAAAAAAAAAAECAxESITEEBRMiFDJRYXGBkf/aAAwDAQACEQMRAD8AsL72iy7dqt+wQ7EiY6h1pptap3K5iloQoDHLIHpgdanDqjWrz0pxAdCObxNpYuMPgKVqXy0NEx1F04SU+aVElB6HautqHQuoZWuH9QWty1lBfZfaRJecSctoQMKCUHbKPA9KmrbbdZ8Ux5ESDOd75tKkzVqWh6OpxsLTnGcHiwFAggDI8K51V9NRKejYdsZdpIrTW6CR5rx7UsfaZrPVcKO0/JkPpS6lCkoTc4KnMKTxJJQIpUARg7gdR7aza7S7jarlapcyY/MtsyA3IdjSQwlxBUpYVwKQhGSOAYzsd84yCnk3Cw6wushmJIaiKVEZQ23H78eFpKUITkAjAyAknHU59m3oelbJ3LS9st91jMLkRWeBQUkLAOd8H7VLGosZqdCrE8E7kVzuvFKp4v8AS2gy2J8KPMiL5keQ0l1peCOJChkHB3Gx8aVNdlJ/buxfT/kaVeZhWVHae/xJf+ynf9TtWNedwLkptiXEhpC5a7nOQkn0UKMl07/IecR7Me8nIGyzKbbvkqWsITGcKYfNOf5E5PXpglRT80geNd2uU3ZGu4IhSJDzzATwqQDwBeepVjcknJO/jWP6EhtRMSVIaBIPnOKWU490k5HjtuN+nTAGz2UeruxfTfkaU7KPV3YvpvyNKArKnbjobS1zlLlTbFCcfWSVrDfCVkkkk4xkkncnelKA1fJtoz4eh/Y/3TybaM+Hof2P90pQFFbYEW1QWoNvZSzGZGG20kkJGc4GfnSlKA//2Q==" height="36" width="36" />

<img id="icon-ps" class="placeholder" src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBhQRDxIUExQUFBQRFhcWGBYWFRcWFRUVFRQWFR8XFBQXHSYgGB0jHBQUKy8gIyopLC0sFR4yNTAqNSYrLCkBCQoKDQwOGQ8PGiklHiIqMCwsKS81KjUsKS00MDQ1NDU0KTUqKiw2NSwtLTU0MCw1NC4qKSwsLCwsLCwsKSktKf/AABEIAFsAWwMBIgACEQEDEQH/xAAbAAABBQEBAAAAAAAAAAAAAAAGAAEDBQcEAv/EADsQAAIAAwUEBwYEBgMAAAAAAAECAAMRBAUSITEGQVFhExQigZGhwQcycXKxsiRi0fAVI0JSgpIWMzT/xAAaAQABBQEAAAAAAAAAAAAAAAADAAECBQYE/8QALxEAAQMBBQYFBAMAAAAAAAAAAQACAxEEITFBYRITUXGRsQUUMjOhIoHR8BVy4f/aAAwDAQACEQM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4rrThzECgtMrJ2sfeCaA5qstu01pbIKjI5j9+UcLoIeGXQQ8aRZ5KBT2if+Ru77hBXAp7RD+Ebu+4QOX23cijWf3Wcx3WVKhPGPcqQzGiqxPAAk+Agj2PtAWz25jMeUAkrtoCWX+ZTsgEfDvi0kbUy58+ag6eUtoMpFnyxSZjTKr4dxqMuHxypGxNIBLsf9WnfaHhzgG1pn00153ILlSiTQAk8ACT4CPTIQSCCCNxBB8ILLZKnWaxWno3LTxasM6alekKYMQJIzAJI8TEWzd4TGlWxp86bLPRyB0uZdV6VgCKkEipOfMw24FQ0m/8AdU3mCWl4F1QO2mqFGJhS2IOhpB3OmN1+8MS4aWNgDUHpFCikyoyNfSm6Gtm0KWaRZ8bzGL2FFWQB/LJYUxuxOVKU0rE/LgVq5R8040AbWtM9K8EDlSDofCL3ZC0HrSLU0NSRuqN8dUm/55ul5nTTMYtCLixnFTBpWukV2x83FbUJNScRJOpJzqYaNoEjPsUSZzpLPJtAXVHxyWxroIeGXQQ8XyyKUDm3FgadZWVBUmnkQfSCOPLLXWGcA4EFSa4tcHDJYfLuW1IrqAwWZQMAcmANRUb84nsNlt0gESmmSw2oViATpWnHnGydXXgIXV14COQWOMYErvPiUxuIHRY1ZLFbZTs8tpis3vMGNW+b+7vh59jtr48bTG6QAPVicQU1APIEmg5xsnV14CF1deAheTjwqeqX8lLWtG9FjXVLdQDFMoE6Mdo/9Zp2PlyGUQz7ltUzDjDtgUKtTXCo0UcByja+rrwELq68BCNjjOZTjxKYYAdFi6XRaRLMuj9GTiK17OKlK04xb7HXBOS1I7LRVBrxzEaj1deAj0koDQCHbY42uDhW5M/xKZzHMNKHG5SLpDwoUdarl//Z"  height="36" width="36" />

</body>
</html>

Open in new window

0
 
jeremyllAuthor Commented:
@Proculopsis - they both work! but is it possible to have the icon image referenced inside the css or in the jquery script in <head?> tag? I prefer not to put an image tag inside the <body> tag.

Also, can this work without google's api?

Thanks!
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
ProculopsisConnect With a Mentor Commented:

Try this instead (you should be able to de-jQuery it but I promised myself never to type in .getEl*m*ntByID again):

<html>
<head>
<title>http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_26866457.html</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js" type="text/javascript"></script>
<script> 

var PlaceHolder = {
  PDF: $("<img/>").attr( { src: "data:image/jpg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAkGBwgHBgkIBwgKCgkLDRYPDQwMDRsUFRAWIB0iIiAdHx8kKDQsJCYxJx8fLT0tMTU3Ojo6Iys/RD84QzQ5Ojf/2wBDAQoKCg0MDRoPDxo3JR8lNzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzf/wAARCAAkACQDASIAAhEBAxEB/8QAGgABAQADAQEAAAAAAAAAAAAAAAYCBAUHA//EADQQAAEDAwIDAwsEAwAAAAAAAAECAwQABREGIRITMQcUQRciMjdRUlZxdJHCFScz0TR1tP/EABgBAQADAQAAAAAAAAAAAAAAAAABAwUE/8QAJhEAAQEGBAcAAAAAAAAAAAAAAAECAxESITEEBRMiFDJRYXGBkf/aAAwDAQACEQMRAD8AsL72iy7dqt+wQ7EiY6h1pptap3K5iloQoDHLIHpgdanDqjWrz0pxAdCObxNpYuMPgKVqXy0NEx1F04SU+aVElB6HautqHQuoZWuH9QWty1lBfZfaRJecSctoQMKCUHbKPA9KmrbbdZ8Ux5ESDOd75tKkzVqWh6OpxsLTnGcHiwFAggDI8K51V9NRKejYdsZdpIrTW6CR5rx7UsfaZrPVcKO0/JkPpS6lCkoTc4KnMKTxJJQIpUARg7gdR7aza7S7jarlapcyY/MtsyA3IdjSQwlxBUpYVwKQhGSOAYzsd84yCnk3Cw6wushmJIaiKVEZ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fDvi0kbUy58+ag6eUtoMpFnyxSZjTKr4dxqMuHxypGxNIBLsf9WnfaHhzgG1pn00153ILlSiTQAk8ACT4CPTIQSCCCNxBB8ILLZKnWaxWno3LTxasM6alekKYMQJIzAJI8TEWzd4TGlWxp86bLPRyB0uZdV6VgCKkEipOfMw24FQ0m/8AdU3mCWl4F1QO2mqFGJhS2IOhpB3OmN1+8MS4aWNgDUHpFCikyoyNfSm6Gtm0KWaRZ8bzGL2FFWQB/LJYUxuxOVKU0rE/LgVq5R8040AbWtM9K8EDlSDofCL3ZC0HrSLU0NSRuqN8dUm/55ul5nTTMYtCLixnFTBpWukV2x83FbUJNScRJOpJzqYaNoEjPsUSZzpLPJtAXVHxyWxroIeGXQQ8XyyKUDm3FgadZWVBUmnkQfSCOPLLXWGcA4EFSa4tcHDJYfLuW1IrqAwWZQMAcmANRUb84nsNlt0gESmmSw2oViATpWnHnGydXXgIXV14COQWOMYErvPiUxuIHRY1ZLFbZTs8tpis3vMGNW+b+7vh59jtr48bTG6QAPVicQU1APIEmg5xsnV14CF1deAheTjwqeqX8lLWtG9FjXVLdQDFMoE6Mdo/9Zp2PlyGUQz7ltUzDjDtgUKtTXCo0UcByja+rrwELq68BCNjjOZTjxKYYAdFi6XRaRLMuj9GTiK17OKlK04xb7HXBOS1I7LRVBrxzEaj1deAj0koDQCHbY42uDhW5M/xKZzHMNKHG5SLpDwoUdarl//Z" } )
};

jQuery(document).ready(function(){

  $(".document").each( function() {

    var fileType = $(this).text().replace( /^.*\((.+),.*\)$/, "$1" );
    if ( PlaceHolder[fileType] ) $(this).append( PlaceHolder[fileType].clone().css( { width: 36, height: 36 } ) );

  });

});

</script>

<style>
a { display: block; }
</style>

</head>
<body>

<a class="document" href="#">This is a red document (PDF, 1.4MB)</a>
<a class="document" href="#">This is a white document (PDF, 2.3MB)</a>
<a class="document" href="#">This is a Postscript document (PS, 2.3MB)</a>
<a class="document" href="#">This is a blue document (PDF, 3.2MB)</a>

</body>
</html>

Open in new window

0
 
jeremyllAuthor Commented:
Thanks Proculopsis, That's great. How can I put just one space between the imageicon and the anchor tag?
0
 
jeremyllAuthor Commented:
I'm actually using another image, which doesn't have sufficient white space to provide a gap.
0
 
jeremyllAuthor Commented:
Proculopsis - LEGEND
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.