src/main/resources/static/home/js/specific_detail.js
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
(function ($) {
"use strict";
// Sticky sidebar
$('#sidebar_fixed').theiaStickySidebar({
minWidth: 991,
updateSidebarHeight: false,
containerSelector: '',
additionalMarginTop: 90
});
// Time and people select
$('.radio_select input[type="radio"]').on("click", function () {
var value = $("input[name='time']:checked").val();
$('#selected_time').text(value);
});
$('.radio_select input[type="radio"]').on("click", function (){
var value = $("input[name='day']:checked").val();
$('#selected_day').text(value);
});
// Drodown options prevent close
$('.dropdown-options .dropdown-menu').on("click", function(e) { e.stopPropagation(); });
// Remove items order sum
$('.main ul li a').on('click', function(c) {
$(this).parent().fadeOut('slow', function(c) {});
});
// Close Dropdown options on add cart button click + add to cart message
$(".dropdown-menu a.btn_1").on('click', function() {
$(this).closest(".dropdown-menu").prev().dropdown("toggle");
$('#message').fadeIn('slow', function() {
$('#message').delay(1000).fadeOut();
});
});
$(".options > a").on('click', function() {
$('#message').fadeIn('slow', function() {
$('#message').delay(1000).fadeOut();
});
});
// Image popups menu
$('.menu-gallery').each(function() {
$(this).magnificPopup({
delegate: 'figure a',
type: 'image',
preloader: true,
gallery: {
enabled: true
},
removalDelay: 500, //delay removal by X to allow out-animation
callbacks: {
beforeOpen: function() {
// just a hack that adds mfp-anim class to markup
this.st.image.markup = this.st.image.markup.replace('mfp-figure', 'mfp-figure mfp-with-anim');
this.st.mainClass = this.st.el.attr('data-effect');
}
后面还有 52 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。