92 lines
2.9 KiB
HTML
92 lines
2.9 KiB
HTML
|
<link rel="stylesheet" href="iconfont/iconfont.css" />
|
|||
|
<link type="text/css" rel="stylesheet" href="/information/css/curriculum.css" />
|
|||
|
<link type="text/css" rel="stylesheet" href="/information/css/swiper.min.css" />
|
|||
|
<script type="text/javascript" charset="utf-8" src="/information/js/jquery-2.2.4.min.js"></script>
|
|||
|
<script type="text/javascript" charset="utf-8" src='/information/js/base64.js'></script>
|
|||
|
<style type="text/css"></style>
|
|||
|
<script>
|
|||
|
var cdnPath = '';
|
|||
|
var webChatPath = '';
|
|||
|
if (
|
|||
|
!getCookie("vxtoken") &&
|
|||
|
!getPar("vxtoken") &&
|
|||
|
(getPar("w") ? parseInt(getPar("w")) : 0)
|
|||
|
) {
|
|||
|
addCSS("body{ display:none;}");
|
|||
|
}
|
|||
|
|
|||
|
if (getPar("associated") && location.pathname.indexOf("pubinfo") > -1) {
|
|||
|
addCSS("#pubinfobind{display:none;} .relateinfo{display:none;}");
|
|||
|
}
|
|||
|
|
|||
|
function addCSS(cssText) {
|
|||
|
var style = document.createElement("style"), //创建一个style元素
|
|||
|
head = document.head || document.getElementsByTagName("head")[0]; //获取head元素
|
|||
|
style.type = "text/css"; //这里必须显示设置style元素的type属性为text/css,否则在ie中不起作用
|
|||
|
if (style.styleSheet) {
|
|||
|
//IE
|
|||
|
var func = function () {
|
|||
|
try {
|
|||
|
//防止IE中stylesheet数量超过限制而发生错误
|
|||
|
style.styleSheet.cssText = cssText;
|
|||
|
} catch (e) { }
|
|||
|
};
|
|||
|
//如果当前styleSheet还不能用,则放到异步中则行
|
|||
|
if (style.styleSheet.disabled) {
|
|||
|
setTimeout(func, 10);
|
|||
|
} else {
|
|||
|
func();
|
|||
|
}
|
|||
|
} else {
|
|||
|
//w3c
|
|||
|
//w3c浏览器中只要创建文本节点插入到style元素中就行了
|
|||
|
var textNode = document.createTextNode(cssText);
|
|||
|
style.appendChild(textNode);
|
|||
|
}
|
|||
|
head.appendChild(style); //把创建的style元素插入到head中
|
|||
|
}
|
|||
|
|
|||
|
function getPar(par) {
|
|||
|
//获取当前URL
|
|||
|
var local_url = document.location.href;
|
|||
|
//获取要取得的get参数位置
|
|||
|
var get = local_url.indexOf(par + "=");
|
|||
|
if (get == -1) {
|
|||
|
return false;
|
|||
|
}
|
|||
|
//截取字符串
|
|||
|
var get_par = local_url.slice(par.length + get + 1);
|
|||
|
//判断截取后的字符串是否还有其他get参数
|
|||
|
var nextPar = get_par.indexOf("&");
|
|||
|
if (nextPar != -1) {
|
|||
|
get_par = get_par.slice(0, nextPar);
|
|||
|
}
|
|||
|
return get_par;
|
|||
|
}
|
|||
|
|
|||
|
// 获取cookie
|
|||
|
function getCookie(name) {
|
|||
|
var strcookie = document.cookie; //获取cookie字符串
|
|||
|
var arrcookie = strcookie.split("; "); //分割
|
|||
|
//遍历匹配
|
|||
|
for (var i = 0; i < arrcookie.length; i++) {
|
|||
|
var arr = arrcookie[i].split("=");
|
|||
|
if (arr[0] == name) {
|
|||
|
return arr[1];
|
|||
|
}
|
|||
|
}
|
|||
|
return "";
|
|||
|
}
|
|||
|
var clearTime = setInterval(function () {
|
|||
|
if ($("html").attr("style")) {
|
|||
|
$("html").removeAttr("style");
|
|||
|
clearInterval(clearTime);
|
|||
|
}
|
|||
|
}, 100);
|
|||
|
$("html").on("touchstart", function () {
|
|||
|
$("html").removeAttr("style");
|
|||
|
});
|
|||
|
</script>
|
|||
|
<style type="text/css">
|
|||
|
|
|||
|
</style>
|