js/main.js
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*determina user agent*/
var userAgent = window.navigator.userAgent;
var car;
if (userAgent.indexOf("Android") > -1) {
var androidversion = parseFloat(userAgent.slice(userAgent.indexOf("Android") + 8));
}
$(document).ready(function() {
linkFlip();
collapseNavMobile();
startFullWidthSlider();
resizer();
$('.hover').hover(function() {
$(this).addClass('flip');
}, function() {
$(this).removeClass('flip');
});
$('.res-slider').slider().on('slideStop', function(ev) {
sliderStopHandler(ev.value);
});
$('.res-list > div').on('click', function(){
var index = this.className.match(/ico-(\d)/)[1];
$('.res-slider').slider('setValue', index);
sliderStopHandler(index);
});
initSolution();
});
$(window).resize(function() {
resizer();
});
function initSolution() {
if(jQuery.browser.mobile) {
if(navigator.userAgent.indexOf("UCBrowser") > -1){
$('#threesixty-container').html('<div class="res-img"><img src="/images/car/1.png" alt="360度浏览"/></div>');
} else {
car = initThreesixty(150);
}
$('.threesixty').css('marginTop', 60);
$('#threesixty-container').addClass('col-sm-7');
$('#threesixty-container').next().show();
$(window).scroll(function() {
$(window).stop(true);
clearTimeout($.data(this, 'scrollTimer'));
$.data(this, 'scrollTimer', setTimeout(function() {
scrollToNearstTop('.section:not(:first)');
}, 600));
});
} else {
car = initThreesixty();
initFullpage(car);
}
setInterval(function(){$('.down-link span').toggleClass('flicker', 700);}, 1000);
}
function downlinkHandler() {
if(jQuery.browser.mobile) {
后面还有 201 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。