jQuery(window).on('load', function() {
new JCaption('img.caption');
});
(function(){
var cb = function() {
var add = function(css) {
var ss = document.styleSheets;
for (var i = 0; i < ss.length; i++) {
if (ss[i].href == css) return;
}
var l = document.createElement('link'); l.rel = 'stylesheet';
l.href = css;
var h = document.getElementsByTagName('head')[0]; h.appendChild(l);
}
add('/media/djextensions/css/animate.min.css');
add('/media/djextensions/css/animate.ext.css');
};
var raf = requestAnimationFrame || mozRequestAnimationFrame || webkitRequestAnimationFrame || msRequestAnimationFrame;
if (raf) raf(cb);
else window.addEventListener('load', cb);
})();
function loadMapScenario() {
var map = new Microsoft.Maps.Map(document.getElementById('myMap'), {});
map.setView({
mapTypeId: Microsoft.Maps.MapTypeId.aerial,
center: new Microsoft.Maps.Location(27.854905, 120.82024),
zoom: 15
});
var center = map.getCenter();
var infobox = new Microsoft.Maps.Infobox(
center,
{ title: '浙江j9九游会登录入口首页科技股份有限公司', description: '
地址:温州经济技术开发区滨海园区滨海8路558号
' }
);
var pushpin = new Microsoft.Maps.Pushpin(new Microsoft.Maps.Location(27.854905, 120.82024), { title: '' });
var polyline = new Microsoft.Maps.Polyline([
new Microsoft.Maps.Location(27.854905, 120.82024)], { strokeColor: 'red', strokeThickness: 5 });
var layer = new Microsoft.Maps.Layer();
layer.add([pushpin, polyline]);
map.layers.insert(layer);
infobox.setMap(map);
infobox.setOptions({ showPointer: true, showCloseButton: true });
}
if (!window.jQuery) {
document.write(unescape("%3Cscript src='/public/static/common/js/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));
document.write(unescape("%3Cscript type='text/javascript'%3E try{jQuery.noConflict();}catch(e){} %3C/script%3E"));
}
if (window.jQuery) {
(function($){
default_switch();
//简体繁体互换
function default_switch()
{
var home_lang = getCookie('home_lang');
if (home_lang == '') {
home_lang = 'cn';
}
if ($.inArray(home_lang, ['zh','cn'])) {
var obj = $('#jquerys2t_1573822909');
var isSimplified = getCookie('jquerys2t_1573822909');
if ('cn' == isSimplified) {
$('body').t2s();
$(obj).text('繁體');
} else if ('zh' == isSimplified) {
$('body').s2t();
$(obj).text('简体');
}
}
}
//简体繁体互换
$('#jquerys2t_1573822909').click(function(){
var obj = this;
var isSimplified = getCookie('jquerys2t_1573822909');
if ('' == isSimplified || 'cn' == isSimplified) {
$('body').s2t(); // 简体转繁体
setCookie('jquerys2t_1573822909', 'zh');
$(obj).text('简体');
} else {
$('body').t2s(); // 繁体转简体
setCookie('jquerys2t_1573822909', 'cn');
$(obj).text('繁體');
}
});
})(jQuery);
}