PageSourceSearch

https://intern.katholikentag.de/wilma/static/public/shop/style/kat/cart.js

js katholikentag.de collected 2026-09-26 03:59:38 UTC 1,611 bytes, 47 lines download raw bytes

1/*
2 * FRED SHOP
3 * (C) Copyright 2019 eGenius GmbH (http://www.egenius.de) and others.
4 */
5
6var app = app || {};
7
8/*******************************************************************
9 *	CART VIEW
10 *******************************************************************/
11app.ShoppingCartView = Backbone.View.extend({  
12    btnTemplate: Handlebars.compile($("#btnShoppingCartTemplate").html()),
13    itemsTemplate: Handlebars.compile($("#itemsShoppingCartTemplate").html()),
14    timeout: null,
15    initialize: function(){
16        this.btnEl = $("#btnShoppingCart");
17        this.itemsEl = $("#cart_items");
18        this.collection.on("render", this.render, this);
19    },      
20    render: function () {
21        console.log("kat shopping cart render");
22
23        var view = this;
24
25        view.collection.deferred.then(function () {
26            var templateData = {
27                items: view.collection.toArray(),
28                totalGross: view.collection.totalGross,
29                freeShippingFromRevenue: PebblesConfig.freeShippingFromRevenue,
30                shippingCosts: view.collection.shippingCosts,
31                subTotal: view.collection.subTotal,
32                itemQuantitySum: view.collection.getItemQuantitySum()
33            };
34
35            var btnRendered = view.btnTemplate(templateData);
36            view.btnEl.html(btnRendered);
37
38            var itemsRendered = view.itemsTemplate(templateData);
39            view.itemsEl.html(itemsRendered);
40
41            // view.items = $("#cart_items");            
42        });
43
44        return view;
45    }
46});
47

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.