var lastScrollTop = 0;
var delta = 5;
var navbarHeight = $('.navbar').outerHeight();
var didScroll;
$(window).scroll(function(event) {
didScroll = true;
});
setInterval(function() {
if (didScroll) {
hasScrolled();
didScroll = false;
}
}, 50);
function hasScrolled() {
var st = $(this).scrollTop();
if (Math.abs(lastScrollTop - st) <= delta) {
return;
}
// If current position > last position AND scrolled past navbar...
if (st > lastScrollTop && st >= navbarHeight) {
// Scroll Down
$('.navbar').removeClass('nav-top').removeClass('nav-down').addClass('nav-up');
$('.coupon-widget').removeClass('nav-top').removeClass('nav-down').addClass('nav-up');
$('.pos-widget').removeClass('nav-top').removeClass('nav-down').addClass('nav-up');
}
else if (st <= 5) {
$('.navbar').addClass('nav-top').removeClass('nav-down').removeClass('nav-up');
$('.coupon-widget').addClass('nav-top').removeClass('nav-down').removeClass('nav-up');
$('.pos-widget').addClass('nav-top').removeClass('nav-down').removeClass('nav-up');
} else {
// Scroll Up
// If did not scroll past the document (possible on mac)...
if (st + $(window).height() < $(document).height()) {
$('.navbar').removeClass('nav-top').removeClass('nav-up').addClass('nav-down');
$('.coupon-widget').removeClass('nav-top').removeClass('nav-up').addClass('nav-down');
$('.pos-widget').removeClass('nav-top').removeClass('nav-up').addClass('nav-down');
}
}
lastScrollTop = st;
}
{"images":{"all":[{"urlMiddle":"https:\/\/cdn02.plentymarkets.com\/51qt7ldaagpe\/item\/images\/101216\/middle\/Bildschirmfoto-2020-04-10-um-14-21-48.png","names":{"imageId":20875,"lang":"de","name":"","alternate":""},"height":1560,"position":0,"width":1004,"path":"S3:101216:Bildschirmfoto-2020-04-10-um-14-21-48.png","cleanImageName":"Bildschirmfoto-2020-04-10-um-14-21-48.png"}],"variation":[]},"item":{"id":101216,"storeSpecial":null,"manufacturerId":9,"itemType":"default","manufacturer":{"position":0,"externalName":"Jack&Jones"},"feedbackDecimal":null,"feedbackCount":null,"rebate":0,"salableVariationCount":2,"customsTariffNumber":"","producingCountry":{"names":[]},"condition":{"names":[]}},"texts":{"name2":"","lang":"de","urlPath":"jack-jones-erik-royal-men-jeans-dark-blue-knopfleiste-anti-fit","name3":"","name1":"Jack&Jones Erik Royal Men Jeans dark blue Knopfleiste Anti-fit\n"},"defaultCategories":[{"linklist":true,"level":2,"parentCategoryId":28,"id":35,"sitemap":true,"right":"all","type":"item","updatedAt":"2019-01-12T14:04:59+01:00","manually":false,"plentyId":39444}],"variation":{"itemId":101216,"availabilityId":1,"maximumOrderQuantity":null,"minimumOrderQuantity":1,"intervalOrderQuantity":1,"releasedAt":null,"name":"12071908 Dark Blue Denim\/RDD 32\/34","vatId":2,"bundleType":null,"mayShowUnitPrice":false,"availabilityUpdatedAt":"2021-12-21T01:15:43+01:00","availability":{"id":1,"icon":"av1.gif","averageDays":1,"createdAt":"2019-08-07 11:04:24","updatedAt":"2023-08-28 14:59:48","names":{"id":25,"availabilityId":1,"lang":"de","name":"Sofort versandfertig, Lieferzeit 48h","createdAt":"2023-08-28 14:59:48","updatedAt":"2023-08-28 14:59:48"}},"id":40945,"model":""},"filter":{"isSalable":true,"isSalableAndActive":true,"hasActiveChildren":false,"hasChildren":false},"unit":{"names":{"unitId":1,"lang":"de","name":"St\u00fcck"},"unitOfMeasurement":"C62","content":1},"properties":[],"hasOrderProperties":false,"hasRequiredOrderProperty":false,"groupedAttributes":[],"prices":{"default":{"price":{"value":159.95,"formatted":"159,95\u00a0EUR"},"unitPrice":{"value":159.95,"formatted":"159,95\u00a0EUR"},"basePrice":"","baseLot":null,"baseUnit":null,"baseSinglePrice":null,"minimumOrderQuantity":0,"contactClassDiscount":{"percent":0,"amount":0},"categoryDiscount":{"percent":0,"amount":0},"currency":"EUR","lowestPrice":{"value":null,"formatted":""},"vat":{"id":2,"value":0},"isNet":false,"data":{"salesPriceId":3,"price":159.95,"priceNet":159.95,"basePrice":159.95,"basePriceNet":159.95,"unitPrice":159.95,"unitPriceNet":159.95,"lowestPrice":null,"lowestPriceNet":null,"customerClassDiscountPercent":0,"customerClassDiscount":0,"customerClassDiscountNet":0,"categoryDiscountPercent":0,"categoryDiscount":0,"categoryDiscountNet":0,"vatId":2,"vatValue":0,"currency":"EUR","interval":"none","conversionFactor":1,"minimumOrderQuantity":"0.00","updatedAt":"2023-08-24 10:50:38","type":"default","pricePosition":1}},"rrp":{"price":{"value":159.95,"formatted":"159,95\u00a0EUR"},"unitPrice":{"value":159.95,"formatted":"159,95\u00a0EUR"},"basePrice":"","baseLot":null,"baseUnit":null,"baseSinglePrice":null,"minimumOrderQuantity":0,"contactClassDiscount":{"percent":0,"amount":0},"categoryDiscount":{"percent":0,"amount":0},"currency":"EUR","lowestPrice":{"value":null,"formatted":""},"vat":{"id":2,"value":0},"isNet":false,"data":{"salesPriceId":2,"price":159.95,"priceNet":159.95,"basePrice":159.95,"basePriceNet":159.95,"unitPrice":159.95,"unitPriceNet":159.95,"lowestPrice":null,"lowestPriceNet":null,"customerClassDiscountPercent":0,"customerClassDiscount":0,"customerClassDiscountNet":0,"categoryDiscountPercent":0,"categoryDiscount":0,"categoryDiscountNet":0,"vatId":2,"vatValue":0,"currency":"EUR","interval":"none","conversionFactor":1,"minimumOrderQuantity":"0.00","updatedAt":"2023-08-24 10:50:38","type":"rrp","pricePosition":0}},"set":null,"specialOffer":null,"graduatedPrices":[{"price":{"value":159.95,"formatted":"159,95\u00a0EUR"},"unitPrice":{"value":159.95,"formatted":"159,95\u00a0EUR"},"basePrice":"","baseLot":null,"baseUnit":null,"baseSinglePrice":null,"minimumOrderQuantity":0,"contactClassDiscount":{"percent":0,"amount":0},"categoryDiscount":{"percent":0,"amount":0},"currency":"EUR","lowestPrice":{"value":null,"formatted":""},"vat":{"id":2,"value":0},"isNet":false,"data":{"salesPriceId":3,"price":159.95,"priceNet":159.95,"basePrice":159.95,"basePriceNet":159.95,"unitPrice":159.95,"unitPriceNet":159.95,"lowestPrice":null,"lowestPriceNet":null,"customerClassDiscountPercent":0,"customerClassDiscount":0,"customerClassDiscountNet":0,"categoryDiscountPercent":0,"categoryDiscount":0,"categoryDiscountNet":0,"vatId":2,"vatValue":0,"currency":"EUR","interval":"none","conversionFactor":1,"minimumOrderQuantity":"0.00","updatedAt":"2023-08-24 10:50:38","type":"default","pricePosition":1}}]},"facets":[],"attributes":[]}
Jack&Jones Erik Royal Men Jeans dark blue Knopfleiste Anti-fit