Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adição do email de contato #24

Merged
merged 1 commit into from
Nov 16, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ social:
whatsapp: https://chat.whatsapp.com/invite/AJkY9ZIlCyOJygPb83KMI5
telegram: https://telegram.me/phpdf
meetup: https://www.meetup.com/pt-BR/php-df/
email: [email protected]

# Build settings
markdown: kramdown
Expand Down
2 changes: 1 addition & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% if socloc[1] %}
{% if socloc[0] == 'email' && socloc[1] != '' %}
<li>
<a target="_blank" href="{{ socloc[1] }}" class="icon fa-envelope-o">
<a target="_blank" href="{{ socloc[1] }}" class="mail icon fa-envelope-o">
<span class="label">E-mail</span>
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion _includes/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{% if socloc[1] %}
{% if socloc[0] == 'email' || socloc[1] != '' %}
<li>
<a href="mailto: {{ socloc[1] }}" target="_blank" title="{{ socloc[1] }}"">
<a href="{{ socloc[1] }}" class="mail" target="_blank" title="{{ socloc[1] }}"">
<i class="fa fa-envelope-o"></i>
<span>E-mail</span>
</a>
Expand Down
10 changes: 10 additions & 0 deletions _includes/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,14 @@
<!--[if lte IE 8]><script src="{{ "/js/ie/respond.min.js" | prepend: site.baseurl }}"></script><![endif]-->
<script src="{{ "/js/main.js" | prepend: site.baseurl }}"></script>

<script type="text/javascript">
$(function(){
$('a.mail').each(function(index, value){
var mail = $(this).attr('href').replace(/[a-zA-Z]/g,function(c){return String.fromCharCode((c<="Z"?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26);});
$(this).attr('href', 'mailto:' + mail);
$(this).attr('title', mail);
});
});
</script>

{% include google-analytics.html %}