Skip to content

Commit

Permalink
Update: cross platform emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
qinwf committed May 1, 2017
1 parent b597ed7 commit be38a62
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 1 deletion.
20 changes: 19 additions & 1 deletion _includes/inf.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,27 @@

</style>


<style>
img.emoji {
height: 1em;
width: 1em;
margin: 0 .05em 0 .1em;
vertical-align: -0.1em;
}
</style>

<script>
{% include twemoji.min.js %}

document.addEventListener("DOMContentLoaded", function(){
twemoji.parse(document.body,
{
folder: 'svg',
ext: '.svg'
});
});


{% include nprogress.min.js %}


Expand Down
2 changes: 2 additions & 0 deletions _includes/twemoji.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,15 @@ <h1 class="post-title">
document.querySelector('.live-hide').classList.remove('live-hide');
latest_app.post_date = myArr;
// add_external_links();

setTimeout(function(){
twemoji.parse(document.body,
{
folder: 'svg',
ext: '.svg'
});
}, 500);

}
};
xhr.send();
Expand Down
18 changes: 18 additions & 0 deletions live.html
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,15 @@ <h3 v-bind:id="item.date">{{ item.date }}</h3>

latest_app.post_date = myArr;
document.getElementById('latest-app').classList.remove('inner-app-hide');

setTimeout(function(){
twemoji.parse(document.body,
{
folder: 'svg',
ext: '.svg'
});
}, 500);

// add_external_links();
}
};
Expand Down Expand Up @@ -339,6 +348,15 @@ <h3 v-bind:id="item.date">{{ item.date }}</h3>
next_status = false;
document.getElementById('app').classList.remove('inner-app-hide');
document.getElementById('next-text').classList.add('inner-app-hide');

setTimeout(function(){
twemoji.parse(document.body,
{
folder: 'svg',
ext: '.svg'
});
}, 500);

}else if (xhr.readyState == 4){
next_status = false;
document.getElementById('next-text').classList.add('inner-app-hide');
Expand Down

0 comments on commit be38a62

Please sign in to comment.