// $(".popular").hide();
console.log(1);
$(document).ready(function () {
console.log(1);
$('#hhh-cases').scroll(function () {
var h = $(this).height();
var sh = $(this).scrollHeight;
var st = $(this).scrollTop;
console.log(h);
console.log(sh);
console.log(st);
if(h+st>= sh){
alert('底部了')
}
});
});
$(document).on("click", ".article__readMore", function (event) {
$('.article__contexts_cases').css('height', 'auto');
$('.article__readMore').hide();
});
$(document).on("click", ".likeSee__state__filter--item", function (event) {
// $(".CaseNews").toggle();
// $(".popular").toggle();
$(".likeSee__state__filter--item").removeClass('active');
$(this).addClass("active");
});
const urlParams = new URLSearchParams(window.location.search);
let id = urlParams.get('cid');
console.log(id);
function get_data() {
// var desid2=String(desid);
// console.log(desid2);
// $("#version").val(desid);
// $("#version").html(desid);
$.ajax({
method: "GET",
url: `json/cases-${id}.json`,
// url:`json/cases.json`,
dataType: "json",
})
.done(function (msg) {
// console.log(msg);
let designersinfo = "";
let CaseInfo = "";
let CaseInfo_mb = "";
let CaseTag = "";
let CaseData = "";
let CaseNews = "";
let CasePopular = "";
let CaseDetail = "";
let CasePageTitle = "";
let CaseImgQuantity = "";
let article__contexts = "";
let CaseCoverImg = "";
for (let i = 0; i < msg.length; i++) {
CaseCoverImg = `
`
designersinfo = `
${msg[i].Casedescription}