Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

libai / footsen

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • footsen
  • footseen
  • Nesting
  • moving
  • js
  • newsLang.js
Find file
BlameHistoryPermalink
  • dabai's avatar
    footseen · 5e345d1b
    dabai committed 4 years ago
    5e345d1b
newsLang.js 1.09 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
var langList = [

	{
		'news1':'轉發',
		'news2':'回復',
		'news3':'解鎖',
		'news4':'来自',
		'news5':'更多精彩點擊下載APP ,',
		'news6':'下載APP',
		'news7':'img/mask_cn.png',
	},
	{
		'news1':'Forward ',
		'news2':'Reply ',
		'news3':'Unlock ',
		'news4':'From ',
		'news5':'Download APP to have more fun',
		'news6':'Download APP',
		'news7':'img/mask_en.png',
	}
]

var langStr = (navigator.language || navigator.browserLanguage).toLowerCase();
var langType = 0;
var langNum = 2;
$('body').removeClass('L_En');

if(langStr.indexOf('zh')>=0){
	langType = 0;
	langNum = 2;
} else {
	$('body').addClass('L_En');
	langType = 1;
	langNum = 1;
}


var $ip = "http://webserver.yabolive.net";
var cdn = 'https://zhibocdn.yabolive.net/comm';


function getRequest() {
  var url = location.href;
  var theRequest = new Object();
  if (url.indexOf("?") != -1) {
      var str = url.substr(url.indexOf("?") + 1);
      strs = str.split("&");
      for (var i = 0; i < strs.length; i++) {
          theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
      }
  }
  return theRequest;
}