require([ "modules/jquery-mozu", "hyprlive", "modules/backbone-mozu", "modules/api"], function ($, Hypr, Backbone, api) { var fgdata = [{ "name": "Jelly Belly Offiziellen Sorten", "shopName": "50 Official", "category": "335", "guide": "original50", "description": "Unser erstaunliches Sortiment an köstlichen und hochwertigen Geleebonbons bietet reichhaltige Geschmackserlebnisse. Die 50 besten und beliebtesten Geschmacksrichtungen sind in der Komplett-Mischung enthalten, mit der du jede einzelne Sorte entdecken kannst. Was für Vorlieben du auch hast - hier findest du garantiert deinen Lieblingsgeschmack. Hinweise zum Genießen: Am besten genießt du die Beans einzeln. So erfährst du den einzigartigen, unverfälschten Geschmack jeder einzelnen Jelly Belly® Bean. Oder du probierst ein Jelly Belly® Rezept mit einer Kombination mehrerer Geschmacksrichtungen aus und schaffst dir so ein völlig neuartiges Geschmackserlebnis.", "childcategories": [{ "name": "Apfelkuchen", "slug": "Apple Pie Ice Cream", "image": "af_ApplePie.png" }, { "name": "Dreibeeren", "slug": "66", "image": "af_BerryBlue.png" }, { "name": "Geburtstagkuchen", "slug": "Birthday Cake", "image": "af_BirthdayCake.png" }, { "name": "Blaubeere", "slug": "67", "image": "af_Blueberry.png" }, { "name": "Kaugummi", "slug": "18", "image": "af_BubbleGum.png" }, { "name": "Butter-Popcorn", "slug": "68", "image": "af_ButteredPopcorn.png" }, { "name": "Honigmelone", "slug": "69", "image": "af_Cantaloupe.png" }, { "name": "Cappuccino", "slug": "70", "image": "Cappuccino.jpg" }, { "name": "Karamell-Popcorn", "slug": "71", "image": "af_CaramelCorn.png" }, { "name": "Kirsch-Cola", "slug": "Cherry Cola", "image": "af_CherryCola.png" }, { "name": "Kirsche Passionsfrucht", "slug": "Cherry Passion Fruit Smoothie", "image": "af_CherryPassionFruitSmoothie.png" }, { "name": "Schokoladenpudding", "slug": "266", "image": "af_ChocolatePudding.png" }, { "name": "Kokosnuss", "slug": "14", "image": "Coconut.jpg" }, { "name": "Zuckerwatte", "slug": "15", "image": "af_CottonCandy.png" }, { "name": "Ananas", "slug": "76", "image": "af_CrushedPineapple.png" }, { "name": "Traube", "slug": "Grape", "image": "af_Grape.png" }, { "name": "Grüner Apfel", "slug": "79", "image": "af_GreenApple.png" }, { "name": "Grüner Tee", "slug": "Green Tea", "image": "af_GreenTea.png" }, { "name": "Zimtzauber", "slug": "99", "image": "af_HotCinnamon.png" }, { "name": "Inselpunsch", "slug": "80", "image": "af_IslandPunch.png" }, { "name": "Saftige Birne", "slug": "81", "image": "af_JuicyPear.png" }, { "name": "Kiwi", "slug": "274", "image": "af_Kiwi.png" }, { "name": "Zitrone", "slug": "Lemon", "image": "af_Lemon.png" },{ "name": "Zitrone-Limone", "slug": "Lemon Lime", "image": "af_LemonLime.png" }, { "name": "Limone", "slug": "85", "image": "af_Lime.png" }, { "name": "Lakritze", "slug": "86", "image": "af_Liquorice.png" }, { "name": "Litschi", "slug": "Lychee", "image": "af_Lychee.png" }, { "name": "Mango", "slug": "87", "image": "af_Mango.png" }, { "name": "Margarita", "slug": "88", "image": "af_Margarita.png" }, { "name": "Schokoladen-Minze Eisbecher", "slug": "Mint Chip Ice Cream", "image": "af_MintChip.png" }, { "name": "Beerenmischung", "slug": "Mixed Berry Smoothie", "image": "af_MixedBerrySmoothie.png" }, { "name": "Orange", "slug": "Orange", "image": "af_Orange.png" }, { "name": "Orangensorbet", "slug": "91", "image": "af_OrangeSherbet.png" }, { "name": "Pfirsich", "slug": "92", "image": "af_Peach.png" }, { "name": "Pfirsich Bellini", "slug": "Peach Bellini", "image": "af_PeachBellini.png" }, { "name": "Piña Colada", "slug": "93", "image": "af_PinaColada.png" }, { "name": "Ananas Birne", "slug": "Pineapple Pear Smoothie", "image": "af_PineapplePearSmoothie.png" }, { "name": "Pink Grapefruit", "slug": "Pink Grapefruit", "image": "af_PinkGrapefruit.png" }, { "name": "Granatapfel", "slug": "96", "image": "af_Pomegranate.png" }, { "name": "Himbeere", "slug": "97", "image": "af_Raspberry.png" }, { "name": "Roter Apfel", "slug": "98", "image": "af_RedApple.png" }, { "name": "Erdbeer Banane", "slug": "Strawberry Banana Smoothie", "image": "af_StrawberryBananaSmoothie.png" }, { "name": "Erdbeer-Käsekuchen", "slug": "17", "image": "af_StrawberryCheesecake.png" }, { "name": "Erdbeer-Daiquiri", "slug": "100", "image": "af_StrawberryDaiquiri.png" }, { "name": "Erdbeer Eisbecher", "slug": "Strawberry Sundae Ice Cream", "image": "af_StrawberrySundaeIceCream.png" } { "name": "Mandarine", "slug": "102", "image": "af_Tangerine.png" }, { "name": "Geröstete Marshmallows", "slug": "103", "image": "Marshmallow.jpg" }, { "name": "Banane", "slug": "104", "image": "af_TopBanana.png" }, { "name": "Tutti-Frutti", "slug": "105", "image": "af_TuttiFruitti.png" }, { "name": "Vanille", "slug": "Vanilla", "image": "vanilla.jpg" },{ "name": "Kirsche", "slug": "106", "image": "af_VeryCherry.png" }, { "name": "Wassermelone", "slug": "107", "image": "af_Watermelon.png" }, { "name": "Brombeere", "slug": "108", "image": "af_WildBlackberry.png" } ] }, { "name": "Saure", "shopName": "Sours", "category": "293", "guide": "sours", "description": "Bring deine Geschmacksknospen in Fahrt mit den super-sauren Sorten von Jelly Belly®.", "childcategories": [{ "name": "Saurer Apfel", "slug": "293", "image": "sour_apple.jpg" }, { "name": "Saure Kirsche", "slug": "191", "image": "sour_cherry.jpg" }, { "name": "Saure Traube", "slug": "293", "image": "sour_grape.jpg" }, { "name": "Saure Zitrone", "slug": "293", "image": "sour_lemon.jpg" }, { "name": "Saurer Orange", "slug": "293", "image": "sour_orange.jpg" } ] }, { "name": "Frucht-Mischung", "shopName": "Fruit Mix", "category": "335", "guide": "fruitBowl", "description": "Saftig, intensiv und so perfekt, dass du deinen Geschmacksknospen nicht trauen wirst. Jede Geschmacksrichtung ist so besonders und einzigartig, dass du für das volle Geschmackserlebnis die Beans am besten einzeln genießt. Ohne Aromastoffe, sondern nur mit unseren allerbesten Fruchtsorten, von denen viele aus echtem Fruchtsaft, Püree und Geschmacksextrakt. Mit dieser Mischung genießt du die Sorten Blaubeere, Kokosnuss, Traube, Grüner Apfel, Saftige Birne, Limone, Zitrone, Pfirsich, Pink Grapefruit, Himbeere, Roter Apfel, Mandarine, Banane, Kirsche und Wassermelone.", "childcategories": [{ "name": "Blaubeere", "slug": "67", "image": "af_Blueberry.png" }, { "name": "Kokosnuss", "slug": "14", "image": "Coconut.jpg" }, { "name": "Traube", "slug": "Grape", "image": "af_Grape.png" }, { "name": "Grüner Apfel", "slug": "79", "image": "af_GreenApple.png" }, { "name": "Saftige Birne", "slug": "81", "image": "af_JuicyPear.png" }, { "name": "Zitrone", "slug": "276", "image": "af_Lemon.png" }, { "name": "Zitrone-Limone", "slug": "85", "image": "af_LemonLime.png" }, { "name": "Pfirsich", "slug": "92", "image": "af_Peach.png" }, { "name": "Pink Grapefruit", "slug": "94", "image": "af_PinkGrapefruit.png" }, { "name": "Granatapfel", "slug": "96", "image": "af_Pomegranate.png" }, { "name": "Himbeere", "slug": "97", "image": "af_Raspberry.png" }, { "name": "Roter Apfel", "slug": "98", "image": "af_RedApple.png" }, { "name": "Mandarine", "slug": "102", "image": "af_Tangerine.png" }, { "name": "Banane", "slug": "104", "image": "af_TopBanana.png" }, { "name": "Kirsche", "slug": "106", "image": "af_VeryCherry.png" }, { "name": "Wassermelone", "slug": "107", "image": "af_Watermelon.png" } ] }, { "name": "Tropische-Mischung", "shopName": "Tropical Mix", "category": "335", "guide": "tropical-mix", "description": "Diese Mischung lässt an warme Sandstrände denken, an kühle Meeresbrisen und den Duft exotischer Früchte, der in der Luft liegt. Deine ganz persönliche Reise ins Paradies! Diese Mischung enthält die Sorten Dreibeeren, Honigmelone, Kokosnuss, Ananas, Grüner Apfel, Inselpunsch, Kiwi, Limone, Zitrone, Mango, Pfirsich, Piña Colada, Pink Grapefruit, Erdbeer-Daiquiri, Mandarine und Banane.", "childcategories": [{ "name": "Dreibeeren", "slug": "Berry Blue", "image": "af_BerryBlue.png" }, { "name": "Honigmelone", "slug": "Cantaloupe", "image": "af_Cantaloupe.png" }, { "name": "Kirsche Passionsfrucht", "slug": "Cherry Passion Fruit Smoothie", "image": "af_CherryPassionFruitSmoothie.png" }, { "name": "Kokosnuss", "slug": "Coconut", "image": "coconut.jpg" }, { "name": "Ananas", "slug": "Crushed Pineapple", "image": "af_CrushedPineapple.png" }, { "name": "Grüner Apfel", "slug": "Green Apple", "image": "af_GreenApple.png" }, { "name": "Inselpunsch", "slug": "Island Punch", "image": "af_IslandPunch.png" }, { "name": "Kiwi", "slug": "Kiwi", "image": "af_Kiwi.png" }, { "name": "Zitrone", "slug": "Lemon", "image": "af_Lemon.png" }, { "name": "Zitrone-Limone", "slug": "Lemon Lime", "image": "af_LemonLime.png" }, { "name": "Mango", "slug": "Mango", "image": "af_Mango.png" }, { "name": "Pfirsich", "slug": "Peach", "image": "af_Peach.png" }, { "name": "Piña Colada", "slug": "Pina Colada", "image": "af_PinaColada.png" }, { "name": "Pink Grapefruit", "slug": "Pink Grapefruit", "image": "af_PinkGrapefruit.png" }, { "name": "Erdbeer-Daiquiri", "slug": "Strawberry Daiquiri", "image": "af_StrawberryDaiquiri.png" }, { "name": "Mandarine", "slug": "Tangerine", "image": "af_Tangerine.png" }, { "name": "Banane", "slug": "Top Banana", "image": "af_TopBanana.png" } ] }, { "name": "Smoothie Mischung", "shopName": "Smoothie Blend", "category": "335", "guide": "smoothie-blend", "description": "Gemischte Fruchtsäfte sind schon lange schwer angesagt. Diese erfrischenden Kombinationen verschiedener Sorten sind von unglaublich leckeren Säften inspiriert. Süß und intensiv, mit nur einem Hauch cremiger Samtheit. Mit den Kombinationen Kirsche Passionsfrucht, Mandarine Orange Mango, Beerenmischung, Ananas Birne und Erdbeer Banane.", "childcategories": [{ "name": "Kirsche Passionsfrucht", "slug": "Cherry Passion Fruit", "image": "af_CherryPassionFruitSmoothie.png" }, { "name": "Beerenmischung", "slug": "Mixed Berry Smoothie", "image": "af_MixedBerrySmoothie.png" }, { "name": "Orange", "slug": "Mandarin Orange Mango", "image": "af_OrangeSherbet.png" }, { "name": "Ananas Birne", "slug": "Pineapple Pear", "image": "af_PineapplePearSmoothie.png" }, { "name": "Erdbeer Banane", "slug": "Strawberry Banana", "image": "af_StrawberryBananaSmoothie.png" } ] }, { "name": "Eiscreme Mischung", "shopName": "Ice Cream Mix", "category": "157", "guide": "cold-stone-jelly-beans", "description": "Diese Mischung aus klassischen verführerischen Sorten ist wie ein Besuch in der Eisdiele. Cremig und süß - ein Fest für den Gaumen! Enthält die Sorten Apfelkuchen, Geburtstagskuchen, Schokoladen-Eisbecher, Schokoladen-Minze-Eisbecher und Erdbeer-Eisbecher.", "childcategories": [{ "name": "Apfelkuchen", "slug": "Apple Pie", "image": "af_ApplePie.png" }, { "name": "Geburtstagkuchen", "slug": "Birthday Cake", "image": "af_BirthdayCake.png" }, { "name": "Schokoladen Eisbecher", "slug": "Chocolate Chunk", "image": "af_ChocolatePudding.png" }, { "name": "Schokoladen-Minze Eisbecher", "slug": "Chocolate Mint", "image": "af_MintChip.png" }, { "name": "Orangensorbet", "slug": "91", "image": "af_OrangeSherbet.png" }, { "name": "Erdbeer Eisbecher", "slug": "Strawberry Sundae", "image": "af_StrawberrySundaeIceCream.png" } ] }, { "name": "Sunkist® Citrus Mischung", "shopName": "Citrus Mix", "category": "342", "guide": "citrus", "description": "Unsere leckersten Zitrusfrüchte in einer absolut köstlichen Mischung. Ein bisschen süß, ein bisschen sauer - und immer erfrischend und voller Sonne. Mit den Sorten Orange, Pink Grapefruit, Limone, Mandarine, Zitrone. Eine Erfrischung für die Geschmacksknospen!", "childcategories": [{ "name": "Sunkist Zitrone", "slug": "84", "image": "af_Lemon.png" }, { "name": "Sunkist Limone", "slug": "185", "image": "af_Lime.png" }, { "name": "Sunkist Orange", "slug": "90", "image": "af_Orange.png" }, { "name": "Sunkist Pink Grapefruit", "slug": "94", "image": "af_PinkGrapefruit.png" }, { "name": "Sunkist Mandarine", "slug": "102", "image": "af_Tangerine.png" } ] }, { "name": "Cocktail Classics® Mischung", "shopName": "Cocktail Classics®", "category": "335", "guide": "cocktail", "description": "Diese modernen Varianten klassischer Cocktails werden weder gerührt noch geschüttelt. Die ganze Geschmacksvielfalt ohne Alkohol - die ideale Mischung für jeden festlichen Anlass. Mit den Sorten Margarita, Mojito, Pfirsich Bellini, Piña Colada, Granatapfel Cosmo und Erdbeer-Daiquiri.", "childcategories": [{ "name": "Margarita", "slug": "88", "image": "af_Margarita.png" }, { "name": "Pfirsich Bellini", "slug": "209", "image": "af_PeachBellini.png" }, { "name": "Piña Colada", "slug": "93", "image": "af_PinaColada.png" }, { "name": "Granatapfel Cosmo", "slug": "208", "image": "af_Pomegranate.png" }, { "name": "Erdbeer-Daiquiri", "slug": "100", "image": "af_StrawberryDaiquiri.png" } ] }, { "name": "BeanBoozled®", "shopName": "BeanBoozled®", "category": "1", "guide": "beanboozled", "description": "

Warst du schon mal BeanBoozled®?

Eine völlig abgedrehte Mischung aus besonders leckeren und besonders verrückten Geschmacksrichtungen. Traust du dich, sie zu vergleichen? Aber aufgepasst - du kannst sie nicht unterscheiden! Die Tutti-Frutti-Bean sieht genauso aus wie die Stinkende-Socken-Bean! Die süße, köstliche Schokopudding-Bean könnte auch die Hundefutter-Bean sein. Du glaubst, du genießt gleich unsere weltberühmte Butter-Popcorn-Bean, aber das, was du da im Mund hast, könnte auch ein faules Ei sein. Es gibt nur einen Weg herauszufinden, was für eine Bean du bekommen hast: Du musst sie probieren! Die BeanBoozled®-Mischung von Jelly Belly® enthält zurzeit Beans in acht Farben und sechzehn Geschmacksrichtungen (acht "echte" und acht ... nun ja ... etwas andere). Mit dieser Mischung kannst du dir einen schrillen Spaß machen, indem du deinen Freunden Beans derselben Farbe anbietest und dann abwartest, welche sie nehmen. Aber du darfst dich nicht drücken - Mitmachen ist angesagt. Pass nur auf, dass Du nicht BeanBoozled wirst!", "childcategories": [{ "name": "Stinkende Socken", "slug": "1", "image": "tuttiFruitti.jpg" }, { "name": "Tutti-Frutti", "slug": "1", "image": "tuttiFruitti.jpg" }, { "name": "Gemähtes Gras", "slug": "1", "image": "lime.jpg" }, { "name": "Limone", "slug": "1", "image": "lime.jpg" }, { "name": "Faules Ei", "slug": "1", "image": "popcorn.jpg" }, { "name": "Butter-Popcorn", "slug": "1", "image": "popcorn.jpg" }, { "name": "Zahnpasta", "slug": "1", "image": "berryBlue.jpg" }, { "name": "Dreibeeren", "slug": "1", "image": "berryBlue.jpg" }, { "name": "Erbrochenes", "slug": "1", "image": "peach.jpg" }, { "name": "Pfirsich", "slug": "1", "image": "peach.jpg" }, { "name": "Nasenpopel", "slug": "1", "image": "pear.jpg" }, { "name": "Saftige Birne", "slug": "1", "image": "pear.jpg" }, { "name": "Baby-Windeln", "slug": "1", "image": "coconut.jpg" }, { "name": "Kokosnuss", "slug": "1", "image": "coconut.jpg" }, { "name": "Hundfutter", "slug": "1", "image": "chocolatePudding.jpg" }, { "name": "Schokoladenpudding", "slug": "1", "image": "chocolatePudding.jpg" } ] }, { "name": "Juwelen-Kollektion", "shopName": "Jewel Collection", "category": "46", "guide": "jewelBeans", "description": "Beliebte Jelly Belly Jelly Beans umhüllt von schönem Perlglanz!", "childcategories": [{ "name": "Juwel Blaubeere", "slug": "67", "image": "BlueberryJewelBean.png" }, { "name": "Juwel Kaugummi", "slug": "18", "image": "bubblegumJewelBean.png" }, { "name": "Juwel Saurer Apfel", "slug": "46", "image": "sourAppleJewelBean.png" }, { "name": "Juwel Cremesoda", "slug": "46", "image": "CreamSodaJewelBean.png" }, { "name": "Juwel Dreibeeren", "slug": "66", "image": "BerryBlueJewelBean.png" }, { "name": "Juwel Orange", "slug": "90", "image": "OrangeJewelBean.png" }, { "name": "Juwel Kirsche", "slug": "106", "image": "verCherryJewelBean.png" } ] }, { "name": "Harry Potter™ Bertie Bott's Every Flavour Beans™", "shopName": "Harry Potter™", "category": "344", "guide": "bertieBotts", "description": "Harry Potter's Lieblingssüßigkeit ist zurück! Hol´ dir eine Schachtel leckerer Jelly Beans, die mit ungewöhnlichen und wilden Sorten gemischt sind.", "childcategories": [{ "name": "Banane", "slug": "344", "image": "bb_banana.jpg" }, { "name": "Schwarzer Pfeffer", "slug": "344", "image": "bb_blackPepper.jpg" }, { "name": "Blaubeere", "slug": "344", "image": "bb_blueberry.jpg" }, { "name": "Nasenpopel", "slug": "344", "image": "bb_booger.jpg" }, { "name": "Zuckerwatte", "slug": "344", "image": "bb_candyFloss.jpg" }, { "name": "Kirsche", "slug": "344", "image": "bb_cherry.jpg" }, { "name": "Zimt", "slug": "344", "image": "bb_cinnamon.jpg" }, { "name": "Dreck", "slug": "344", "image": "bb_dirt.jpg" }, { "name": "Regenwurm", "slug": "344", "image": "bb_earthworm.jpg" }, { "name": "Ohrenschmalz", "slug": "344", "image": "bb_earwax.jpg" }, { "name": "Gras", "slug": "344", "image": "bb_grass.jpg" }, { "name": "Grüner Apfel", "slug": "344", "image": "bb_greenApple.jpg" }, { "name": "Zitrone", "slug": "344", "image": "bb_lemon.jpg" }, { "name": "Marshmallow", "slug": "344", "image": "bb_marshmallow.jpg" }, { "name": "Faules Ei", "slug": "344", "image": "bb_rottenEgg.jpg" }, { "name": "Wurst", "slug": "344", "image": "bb_sausage.jpg" }, { "name": "Seife", "slug": "344", "image": "bb_soap.jpg" }, { "name": "Tutti-Frutti", "slug": "344", "image": "bb_tuttiFrutti.jpg" }, { "name": "Erbrochenes", "slug": "344", "image": "bb_vomit.jpg" }, { "name": "Wassermelone", "slug": "344", "image": "bb_watermelon.jpg" } ] } ]; var flavour_Guides1 = ''; /** * Render model. * Rearange category. **/ $(document).ready(function () { $('#jb-childcategory-container').empty(); var category = fgdata; // var category = JSON.parse(flavour_Guides1); $(category).each(function (index, data) { $('#jb-childcategory-container').append(Hypr.getTemplate('pages/flavor-guides-item').render({ model: data })); }); /** * Add click handler **/ $(".jb-colapsing-title").bind("click", function (e) { $(this).parent().find(".jb_contentfolder").slideToggle(); if ($(this).find(".mz-mobile").css("display") == "block") { var temphtml = $(this).find(".mz-mobile").text(); if (temphtml == "+") { $(this).find(".mz-mobile").text("-"); } else { $(this).find(".mz-mobile").text("+"); } } }); /** * 1. Re-arange the order of items if URL has value of 'guide' * 1.1. currentItem = Get the first child. * 1.2. newItem = Get the URL referenced item * 1.3. newItem.insertBefore(currentItem); * 1.4. Open the new Item div. * 2. Else open the default first child item. **/ var guide = GetURLParameter('guide'); if (guide) { var currentFirstItem = $('#jb-childcategory-container').children()[0]; if ($('[data-mz-category-guide=' + guide + ']').length > 0) { $('[data-mz-category-guide=' + guide + ']').insertBefore(currentFirstItem); $('[data-mz-category-guide=' + guide + ']').find(".jb_contentfolder").slideToggle(); $('[data-mz-category-guide=' + guide + ']').find(".mz-mobile").text('-'); } else { $(currentFirstItem).find(".jb_contentfolder").slideToggle(); } } }); function GetURLParameter(sParam) { var sPageURL = window.location.search.substring(1); var sURLVariables = sPageURL.split('&'); for (var i = 0; i < sURLVariables.length; i++) { var sParameterName = sURLVariables[i].split('='); if (sParameterName[0] == sParam) { return sParameterName[1]; } } return ''; } });