Skip to content

Commit

Permalink
Fix broken filterizd and add email patch
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Apr 9, 2019
1 parent 14d4e2a commit 8e52bbd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
21 changes: 17 additions & 4 deletions assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ jQuery(function ($) {
/* Portfolio Filtering Hook
/* ========================================================================= */

var filterizd = $('.filtr-container').filterizr({});

var filterizd;
try {
filterizd = $('.filtr-container').filterizr({});
} catch {

}
/* ========================================================================= */
/* Testimonial Carousel
/* ========================================================================= */
Expand Down Expand Up @@ -147,6 +153,12 @@ jQuery(function ($) {
}
});

// Custom fix for email
var el = $('.tf-ion-ios-email-outline').parent().find('span');
var newText = el.text().replace(/(\w+@[\w\.]+)/, '<a href="mailto:$1">$1</a>');
console.log(newText);
el.replaceWith("Email: " + newText);

});
// End Jquery Function

Expand Down Expand Up @@ -285,10 +297,11 @@ function initialize() {
roadAtlasStyles, styledMapOptions);

map.mapTypes.set('roadatlas', usRoadMapType);
map.setMapTypeId('roadatlas');
map.setMapTypeId('roadatlas');

}

google.maps.event.addDomListener(window, "load", initialize);
//google.maps.event.addDomListener(window, "load", initialize);

/* ========================================================================= */
/* Staticman comments reply
Expand All @@ -307,4 +320,4 @@ $(document).ready(function () {
return false;
}
});
});
});
6 changes: 3 additions & 3 deletions layouts/partials/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ <h2>{{ with .Site.Data.contact.heading }} {{ . }} {{ end }} <span class="color">
<div class="contact-details">
{{ range .Site.Data.contact.contactDetails }}
<div class="con-info clearfix">
<i class="{{ .icon }}"></i>
<i class="{{ .icon }}"></i>
<span>{{ .info }}</span>
</div>
{{ end }}
</div>
</div>

{{"<!-- Contact Form -->" | safeHTML}}
<div class="col-lg-6 wow fadeInUp" data-wow-duration="500ms" data-wow-delay="300ms">
<!--div class="col-lg-6 wow fadeInUp" data-wow-duration="500ms" data-wow-delay="300ms">
<form id="contact-form" class="form-meghna" method="post" action="sendmail.php" role="form">
<input name="e-mail" type="text" id="e-mail" autocomplete="off">
Expand Down Expand Up @@ -61,7 +61,7 @@ <h2>{{ with .Site.Data.contact.heading }} {{ . }} {{ end }} <span class="color">
</div>
</form>
</div>
</div-->

{{"<!-- Google Map -->" | safeHTML}}
<div class="google-map">
Expand Down

0 comments on commit 8e52bbd

Please sign in to comment.