GithubHelp home page GithubHelp logo

dir-issues-tracker's Introduction

Yuuta Liang

A first year Science student at UBC.

You can learn more about me and my projects at yuuta.moe.

I do not use GitHub for personal projects. My projects are at git.yuuta.moe. You may send patches via emails.

whoami(1)

  • Arch Linux, FreeBSD, OpenBSD and Windows user & administrator.
  • UNIX developer (using C) & Backend and Android developer (using Java).
  • NOC of AS142281 and AS4242422980.
  • Interested in operating systems and networking.
  • Minecraft player.
  • osu! newbie.

osu sign


Profile Photo: shu_saku999@twitter/1422609817500192770

dir-issues-tracker's People

Contributors

trumeet avatar

Stargazers

 avatar

Watchers

 avatar  avatar

dir-issues-tracker's Issues

重要!!有关dir官网在Firefox无法访问的问题

就是https://dir.yuuta.moe这个域名在Firefox上无法正常跳转,我在我的网站https://kirbyassistant.tk上也遇到了这个问题,这里我来告诉你一下解决方法
就是https://dir.yuuta.moe的index.html上进行修改
具体是index.html的31行起的

<script>
var lang = navigator.language || navigator.userLanguage; if(lang.substr(0, 2) == "en") location = "https://dir.yuuta.moe/en/";
else if(lang.substr(0, 2) == "zh") location = "https://dir.yuuta.moe/zh/";
</script>

需要修改为

<script type="text/javascript">
  var type = navigator.appName;
  if (type == "Netscape"){
      var lang = navigator.language;//获取浏览器配置语言,支持非IE浏览器
  }else{
      var lang = navigator.userLanguage;//获取浏览器配置语言,支持IE5+ == navigator.systemLanguage
  };
  var lang = lang.substr(0, 2);//获取浏览器配置语言前两位
  if (lang == "zh"){
      window.location.replace('https://dir.yuuta.moe/zh/');//中文编码时打开链接
  }else if (lang == "en"){
      window.location.replace('https://dir.yuuta.moe/en/');
  }else{//其他语言编码时打开以下链接
      window.location.replace('https://dir.yuuta.moe/en/');
  };
</script>

这里我已经把注释写上去了,经测试这样做可以兼容IE,Firefox和Chrome
还希望你修改一下

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.