Skip to content

Commit

Permalink
adds title attributes to social icon links
Browse files Browse the repository at this point in the history
  • Loading branch information
ebellempire committed Jun 14, 2021
1 parent 08cd8f1 commit 799540f
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions curatescape/javascripts/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,35 +47,45 @@ jQuery(document).ready(function ($) {
var social = new Array();
if (typeof $("a.social.email").attr("href") !== "undefined") {
social.push(
'<a class="fa fa-envelope" href="' +
'<a title="' +
$("a.social.email").attr("title") +
'" class="fa fa-envelope" href="' +
$("a.social.email").attr("href") +
'"></a>'
);
}
if (typeof $("a.social.facebook").attr("href") !== "undefined") {
social.push(
'<a class="fa fa-facebook" target="_blank" rel="noopener" href="' +
'<a title="' +
$("a.social.facebook").attr("title") +
'" class="fa fa-facebook" target="_blank" rel="noopener" href="' +
$("a.social.facebook").attr("href") +
'"></a>'
);
}
if (typeof $("a.social.twitter").attr("href") !== "undefined") {
social.push(
'<a class="fa fa-twitter" target="_blank" rel="noopener" href="' +
'<a title="' +
$("a.social.twitter").attr("title") +
'" class="fa fa-twitter" target="_blank" rel="noopener" href="' +
$("a.social.twitter").attr("href") +
'"></a>'
);
}
if (typeof $("a.social.instagram").attr("href") !== "undefined") {
social.push(
'<a class="fa fa-instagram" target="_blank" rel="noopener" href="' +
'<a title="' +
$("a.social.instagram").attr("title") +
'" class="fa fa-instagram" target="_blank" rel="noopener" href="' +
$("a.social.instagram").attr("href") +
'"></a>'
);
}
if (typeof $("a.social.youtube").attr("href") !== "undefined") {
social.push(
'<a class="fa fa-youtube-play" target="_blank" rel="noopener" href="' +
'<a title="' +
$("a.social.youtube").attr("title") +
'" class="fa fa-youtube-play" target="_blank" rel="noopener" href="' +
$("a.social.youtube").attr("href") +
'"></a>'
);
Expand All @@ -84,7 +94,7 @@ jQuery(document).ready(function ($) {
var appstores = new Array();
if (typeof $("a.appstore.ios").attr("href") !== "undefined") {
appstores.push(
'<a class="fa fa-apple sidebar-app-link" href="' +
'<a title="" class="fa fa-apple sidebar-app-link" href="' +
$("a.appstore.ios").attr("href") +
'"> <span class="sidebar-app-title">App Store</span></a>'
);
Expand Down

0 comments on commit 799540f

Please sign in to comment.