Skip to content

Commit

Permalink
Merge pull request #292 from viosey/refactor/uc
Browse files Browse the repository at this point in the history
refactor(uc): add uc compatible to footer
  • Loading branch information
neoFelhz committed Apr 15, 2017
2 parents f902082 + 35e61f7 commit 232f49e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 0 additions & 9 deletions layout/_partial/head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,6 @@
<%- js('js/queue') %>
<%}%>

<!-- UC Browser Compatible -->
<script>
var agent = navigator.userAgent.toLowerCase();
if(agent.indexOf('ucbrowser')>0) {
document.write("<%- css('css/uc').replace(/\"/g,"\\\"") %>");
alert('由于 UC 浏览器使用极旧的内核,而本网站使用了一些新的特性。\n为了您能更好的浏览,推荐使用 Chrome 或 Firefox 浏览器。');
}
</script>
<% if(theme.analytics.baidu_id) { %>
<!-- Baidu Analytics -->
<script>
Expand Down
9 changes: 9 additions & 0 deletions layout/_partial/import_js.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@
<% } %>
<% } %>

<!-- UC Browser Compatible -->
<script>
var agent = navigator.userAgent.toLowerCase();
if(agent.indexOf('ucbrowser')>0) {
document.write("<%- css('css/uc').replace(/\"/g,"\\\"") %>");
alert('由于 UC 浏览器使用极旧的内核,而本网站使用了一些新的特性。\n为了您能更好的浏览,推荐使用 Chrome 或 Firefox 浏览器。');
}
</script>
<!-- Window Load-->
<script>
$(window).load(function() {
Expand Down

0 comments on commit 232f49e

Please sign in to comment.