// angular routing // ############################################ realdApp.config(["$routeProvider", function ($routeProvider) { $routeProvider.caseInsensitiveMatch = true; // determine the base controller being used var controller = window.location.pathname; var defaultLocation = ""; switch(controller.toLowerCase()) { case "/luxe": defaultLocation = "/luxe"; break; default: defaultLocation = "/home"; break; }; $routeProvider. when("/home", { templateUrl: "/partials/index/home", controller: "PartialCtrl" }). when("/movies", { templateUrl: "/partials/index/movies", controller: "PartialCtrl" }). when("/leadership", { templateUrl: "/partials/index/leadership", controller: "PartialCtrl" }). when("/movies/insurgent3d", { templateUrl: "/partials/index/insurgent3d", controller: "PartialCtrl" }). when("/movies/spongebob3d", { templateUrl: "/partials/index/spongebob3d", controller: "PartialCtrl" }). when("/movies/insideout3d", { templateUrl: "/partials/index/insideout3d", controller: "PartialCtrl" }). when("/movies/minions3d", { templateUrl: "/partials/index/minions3d", controller: "PartialCtrl" }). when("/movies/home3d", { templateUrl: "/partials/index/home3d", controller: "PartialCtrl" }). when("/movies/seventhson3d", { templateUrl: "/partials/index/seventhson3d", controller: "PartialCtrl" }). when("/movies/jupiterascending3d", { templateUrl: "/partials/index/jupiterascending3d", controller: "PartialCtrl" }). when("/movies/jurassicworld3d", { templateUrl: "/partials/index/jurassicworld3d", controller: "PartialCtrl" }). when("/movies/sanandreas3d", { templateUrl: "/partials/index/sanandreas3d", controller: "PartialCtrl" }). when("/movies/ageofultron3d", { templateUrl: "/partials/index/ageofultron3d", controller: "PartialCtrl" }). when("/movies/furyroad3d", { templateUrl: "/partials/index/furyroad3d", controller: "PartialCtrl" }). when("/movies/terminatorgenisys3d", { templateUrl: "/partials/index/terminatorgenisys3d", controller: "PartialCtrl" }). when("/theatrelocator/:postalcode?/:movie?/:countrycode?/:distance?", { templateUrl: "/partials/index/theatrelocator", controller: "PartialCtrl" }). when("/whoweare", { templateUrl: "/partials/index/whoweare", controller: "PartialCtrl" }). when("/cultureandcareers", { templateUrl: "/partials/index/cultureandcareers", controller: "PartialCtrl" }). when("/whatwedo", { templateUrl: "/partials/index/whatwedo", controller: "PartialCtrl" }). when("/howrealdworks", { templateUrl: "/partials/index/howrealdworks", controller: "PartialCtrl" }). when("/contact", { templateUrl: "/partials/index/contact", controller: "PartialCtrl" }). when("/termsofuse", { templateUrl: "/partials/index/termsofuse", controller: "PartialCtrl" }). when("/privacypolicy", { templateUrl: "/partials/index/privacypolicy", controller: "PartialCtrl" }). when("/luxe", { templateUrl: "/partials/index/luxe", controller: "PartialCtrl" }). when("/xl", { templateUrl: "/partials/index/xl", controller: "PartialCtrl" }). when("/gamingrdk", { templateUrl: "/partials/index/gamingrdk", controller: "PartialCtrl" }). when("/patents", { templateUrl: "/partials/index/patents", controller: "PartialCtrl" }). when("/trueimage", { templateUrl: "/partials/index/trueimage", controller: "PartialCtrl" }). when("/intelilight", { templateUrl: "/partials/index/intelilight", controller: "PartialCtrl" }). when("/intelilight", { templateUrl: "/partials/index/intelilight", controller: "PartialCtrl" }). when("/press", { templateUrl: "/partials/index/press", controller: "PartialCtrl" }). when("/movies/poltergeist3d", { templateUrl: "/partials/index/poltergeist3d", controller: "PartialCtrl" }). when("/zh-hans", { templateUrl: "/partials/index/luxechina", controller: "PartialCtrl" }). when("/movies/pixels3d", { templateUrl: "/partials/index/pixels3d", controller: "PartialCtrl" }). when("/movies/antman3d", { templateUrl: "/partials/index/antman3d", controller: "PartialCtrl" }). when("/movies/hotel_t_2_3d", { templateUrl: "/partials/index/hotel_t_2_3d", controller: "PartialCtrl" }). when("/movies/thewalk", { templateUrl: "/partials/index/thewalk", controller: "PartialCtrl" }). when("/movies/underdogs3d", { templateUrl: "/partials/index/underdogs3d", controller: "PartialCtrl" }). when("/movies/everest3d", { templateUrl: "/partials/index/everest3d", controller: "PartialCtrl" }). when("/movies/gooddino3d", { templateUrl: "/partials/index/gooddino3d", controller: "PartialCtrl" }). when("/movies/thegooddinosaur3d", { templateUrl: "/partials/index/thegooddinosaur3d", controller: "PartialCtrl" }). when("/movies/themartian3d", { templateUrl: "/partials/index/themartian3d", controller: "PartialCtrl" }). when("/movies/goosebumps3d", { templateUrl: "/partials/index/goosebumps3d", controller: "PartialCtrl" }). when("/movies/pan3d", { templateUrl: "/partials/index/pan3d", controller: "PartialCtrl" }). when("/movies/starwars3d", { templateUrl: "/partials/index/starwars3d", controller: "PartialCtrl" }). when("/movies/peanuts3d", { templateUrl: "/partials/index/peanuts3d", controller: "PartialCtrl" }). when("/movies/intheheartofthesea3d", { templateUrl: "/partials/index/intheheartofthesea3d", controller: "PartialCtrl" }). when("/movies/pointbreak3d", { templateUrl: "/partials/index/pointbreak3d", controller: "PartialCtrl" }). when("/movies/paranormalactivity53d", { templateUrl: "/partials/index/paranormalactivity53d", controller: "PartialCtrl" }). when("/movies/kungfupanda33d", { templateUrl: "/partials/index/kungfupanda33d", controller: "PartialCtrl" }). when("/movies/bvs3d", { templateUrl: "/partials/index/bvs3d", controller: "PartialCtrl" }). when("/movies/junglebook3d", { templateUrl: "/partials/index/junglebook3d", controller: "PartialCtrl" }). when("/movies/captainamericacivilwar3d", { templateUrl: "/partials/index/captainamericacivilwar3d", controller: "PartialCtrl" }). when("/movies/finesthours3d_old", { templateUrl: "/partials/index/finesthours3d_old", controller: "PartialCtrl" }). when("/movies/thefinesthours3d", { templateUrl: "/partials/index/thefinesthours3d", controller: "PartialCtrl" }). when("/movies/zootopia3d", { templateUrl: "/partials/index/zootopia3d", controller: "PartialCtrl" }). when("/movies/angrybirds3d", { templateUrl: "/partials/index/angrybirds3d", controller: "PartialCtrl" }). when("/movies/xmen3d", { templateUrl: "/partials/index/xmen3d", controller: "PartialCtrl" }). when("/movies/godsofegypt3d", { templateUrl: "/partials/index/godsofegypt3d", controller: "PartialCtrl" }). when("/movies/thelittleprince3d", { templateUrl: "/partials/index/thelittleprince3d", controller: "PartialCtrl" }). when("/movies/ratchetandclank3d", { templateUrl: "/partials/index/ratchetandclank3d", controller: "PartialCtrl" }). when("/movies/alicettlg3d", { templateUrl: "/partials/index/alicettlg3d", controller: "PartialCtrl" }). when("/movies/warcraft3d", { templateUrl: "/partials/index/warcraft3d", controller: "PartialCtrl" }). when("/movies/independenceday3d", { templateUrl: "/partials/index/independenceday3d", controller: "PartialCtrl" }). when("/movies/zveropolis3d", { templateUrl: "/partials/index/zveropolis3d", controller: "PartialCtrl" }). when("/michaelvlewis", { templateUrl: "/partials/index/michaelvlewis", controller: "PartialCtrl" }). when("/movies/huntsmanwinterswar3drussia", { templateUrl: "/partials/index/huntsmanwinterswar3drussia", controller: "PartialCtrl" }). when("/ultimatescreen", { templateUrl: "/partials/index/ultimatescreen", controller: "PartialCtrl" }). when("/movies/tmnt3d", { templateUrl: "/partials/index/tmnt3d", controller: "PartialCtrl" }). when("/movies/findingdory3d", { templateUrl: "/partials/index/findingdory3d", controller: "PartialCtrl" }). when("/movies/thebfg3d", { templateUrl: "/partials/index/thebfg3d", controller: "PartialCtrl" }). when("/thelegendoftarzen3d", { templateUrl: "/partials/index//thelegendoftarzen3d", controller: "PartialCtrl" }). when("/movies/thelegendoftarzen3d", { templateUrl: "/partials/index/thelegendoftarzen3d", controller: "PartialCtrl" }). when("/movies/thelegendoftarzan3d", { templateUrl: "/partials/index/thelegendoftarzan3d", controller: "PartialCtrl" }). when("/movies/secretlifeofpets3d", { templateUrl: "/partials/index/secretlifeofpets3d", controller: "PartialCtrl" }). when("/movies/ghostbusters3d", { templateUrl: "/partials/index/ghostbusters3d", controller: "PartialCtrl" }). when("/movies/iceagecollisioncourse3d", { templateUrl: "/partials/index/iceagecollisioncourse3d", controller: "PartialCtrl" }). when("/movies/startrek3d", { templateUrl: "/partials/index/startrek3d", controller: "PartialCtrl" }). when("/mo", { templateUrl: "/partials/index//mo", controller: "PartialCtrl" }). when("/movies/suicidesquad3d", { templateUrl: "/partials/index/suicidesquad3d", controller: "PartialCtrl" }). when("/movies/petesdragon3d", { templateUrl: "/partials/index/petesdragon3d", controller: "PartialCtrl" }). when("/movies/benhur3d", { templateUrl: "/partials/index/benhur3d", controller: "PartialCtrl" }). when("/movies/kuboandthetwostrings3d", { templateUrl: "/partials/index/kuboandthetwostrings3d", controller: "PartialCtrl" }). when("/movies/storks3d", { templateUrl: "/partials/index/storks3d", controller: "PartialCtrl" }). when("/movies/missperegrineshome3d", { templateUrl: "/partials/index/missperegrineshome3d", controller: "PartialCtrl" }). when("/movies/doctorstrange3d", { templateUrl: "/partials/index/doctorstrange3d", controller: "PartialCtrl" }). when("/movies/trolls3d", { templateUrl: "/partials/index/trolls3d", controller: "PartialCtrl" }). when("/movies/thewildlife3d", { templateUrl: "/partials/index/thewildlife3d", controller: "PartialCtrl" }). when("/billylynn3d", { templateUrl: "/partials/index//billylynn3d", controller: "PartialCtrl" }). when("/movies/billylynn3d", { templateUrl: "/partials/index/billylynn3d", controller: "PartialCtrl" }). when("/movies/fantasticbeasts3d", { templateUrl: "/partials/index/fantasticbeasts3d", controller: "PartialCtrl" }). when("/movies/moana3d", { templateUrl: "/partials/index/moana3d", controller: "PartialCtrl" }). when("/movies/rogueone3d", { templateUrl: "/partials/index/rogueone3d", controller: "PartialCtrl" }). when("/truemotion", { templateUrl: "/partials/index/truemotion", controller: "PartialCtrl" }). when("/truemotiontou", { templateUrl: "/partials/index/truemotiontou", controller: "PartialCtrl" }). when("/movies/passengers3d", { templateUrl: "/partials/index/passengers3d", controller: "PartialCtrl" }). when("/movies/sing3d", { templateUrl: "/partials/index/sing3d", controller: "PartialCtrl" }). when("/movies/underworldbloodwars3d", { templateUrl: "/partials/index/underworldbloodwars3d", controller: "PartialCtrl" }). when("/movies/monstertrucks3d", { templateUrl: "/partials/index/monstertrucks3d", controller: "PartialCtrl" }). when("/movies/xxxthereturnofxandercage3d", { templateUrl: "/partials/index/xxxthereturnofxandercage3d", controller: "PartialCtrl" }). when("/movies/legobatman3d", { templateUrl: "/partials/index/legobatman3d", controller: "PartialCtrl" }). when("/movies/assassin3d", { templateUrl: "/partials/index/assassin3d", controller: "PartialCtrl" }). when("/movies/thegreatwall3d", { templateUrl: "/partials/index/thegreatwall3d", controller: "PartialCtrl" }). when("/movies/kongskullisland3d", { templateUrl: "/partials/index/kongskullisland3d", controller: "PartialCtrl" }). when("/movies/beautyandthebeast3d", { templateUrl: "/partials/index/beautyandthebeast3d", controller: "PartialCtrl" }). when("/movies/kingarthur3d", { templateUrl: "/partials/index/kingarthur3d", controller: "PartialCtrl" }). when("/movies/thebossbaby3d", { templateUrl: "/partials/index/thebossbaby3d", controller: "PartialCtrl" }). when("/movies/ghostintheshell3d", { templateUrl: "/partials/index/ghostintheshell3d", controller: "PartialCtrl" }). when("/movies/smurfslostvillage3d", { templateUrl: "/partials/index/smurfslostvillage3d", controller: "PartialCtrl" }). when("/movies/guardiansofthegalaxy23d", { templateUrl: "/partials/index/guardiansofthegalaxy23d", controller: "PartialCtrl" }). when("/movies/piratesdeadmentellnotales3d", { templateUrl: "/partials/index/piratesdeadmentellnotales3d", controller: "PartialCtrl" }). when("/movies/wonderwoman3d", { templateUrl: "/partials/index/wonderwoman3d", controller: "PartialCtrl" }). when("/movies/captainunderpants3d", { templateUrl: "/partials/index/captainunderpants3d", controller: "PartialCtrl" }). when("/movies/cars33d", { templateUrl: "/partials/index/cars33d", controller: "PartialCtrl" }). when("/movies/transformerslastknight3d", { templateUrl: "/partials/index/transformerslastknight3d", controller: "PartialCtrl" }). when("/movies/despicableme33d", { templateUrl: "/partials/index/despicableme33d", controller: "PartialCtrl" }). when("/movies/gotgdoublefeature", { templateUrl: "/partials/index/247742", controller: "PartialCtrl" }). when("/movies/spidermanhomecoming3d", { templateUrl: "/partials/index/spidermanhomecoming3d", controller: "PartialCtrl" }). when("/movies/warfortheplanet3d", { templateUrl: "/partials/index/warfortheplanet3d", controller: "PartialCtrl" }). when("/movies/valerian3d", { templateUrl: "/partials/index/valerian3d", controller: "PartialCtrl" }). when("/movies/themummy3d", { templateUrl: "/partials/index/themummy3d", controller: "PartialCtrl" }). when("/realdmeinfo", { templateUrl: "/partials/index/realdmeinfo", controller: "PartialCtrl" }). when("/realdme", { templateUrl: "/partials/index/realdme", controller: "PartialCtrl" }). when("/reald3d", { templateUrl: "/partials/index/reald3d", controller: "PartialCtrl" }). when("/realdcinema", { templateUrl: "/partials/index/realdcinema", controller: "PartialCtrl" }). when("/realdme_leadership", { templateUrl: "/partials/index/realdme_leadership", controller: "PartialCtrl" }). when("/wonderwoman_imc", { templateUrl: "/partials/index/wonderwoman_imc", controller: "PartialCtrl" }). when("/movies/emojimovie3d", { templateUrl: "/partials/index/emojimovie3d", controller: "PartialCtrl" }). when("/movies/nutjob23d", { templateUrl: "/partials/index/nutjob23d", controller: "PartialCtrl" }). when("/movies/terminator23d", { templateUrl: "/partials/index/terminator23d", controller: "PartialCtrl" }). when("/spiderman_imc", { templateUrl: "/partials/index/spiderman_imc", controller: "PartialCtrl" }). when("/movies/thelegoninjagomovie3d", { templateUrl: "/partials/index/thelegoninjagomovie3d", controller: "PartialCtrl" }). when("/movies/bladerunner2049_3d", { templateUrl: "/partials/index/bladerunner2049_3d", controller: "PartialCtrl" }). when("/movies/geostorm_3d", { templateUrl: "/partials/index/geostorm_3d", controller: "PartialCtrl" }). when("/truemotionfaq", { templateUrl: "/partials/index/truemotionfaq", controller: "PartialCtrl" }). when("/truemotionreleasenotes", { templateUrl: "/partials/index/truemotionreleasenotes", controller: "PartialCtrl" }). when("/truemotiondownload", { templateUrl: "/partials/index/truemotiondownload", controller: "PartialCtrl" }). when("/realdbrandguidelines", { templateUrl: "/partials/index/brandguidelines", controller: "PartialCtrl" }). when("/movies/ferdinand3d", { templateUrl: "/partials/index/ferdinand3d", controller: "PartialCtrl" }). when("/movies/coco3d", { templateUrl: "/partials/index/coco3d", controller: "PartialCtrl" }). when("/movies/thelastjedi3d", { templateUrl: "/partials/index/thelastjedi3d", controller: "PartialCtrl" }). when("/movies/thor_ragnarok3d", { templateUrl: "/partials/index/thor_ragnarok3d", controller: "PartialCtrl" }). when("/movies/justiceleague3d", { templateUrl: "/partials/index/justiceleague3d", controller: "PartialCtrl" }). when("/movies/jumanji3d", { templateUrl: "/partials/index/jumanji3d", controller: "PartialCtrl" }). when("/movies/blackpanther3d", { templateUrl: "/partials/index/blackpanther3d", controller: "PartialCtrl" }). when("/movies/alpha3d", { templateUrl: "/partials/index/alpha3d", controller: "PartialCtrl" }). when("/movies/tombraider3d", { templateUrl: "/partials/index/tombraider3d", controller: "PartialCtrl" }). when("/movies/awrinkleintime3d", { templateUrl: "/partials/index/awrinkleintime3d", controller: "PartialCtrl" }). when("/movies/readyplayerone3d", { templateUrl: "/partials/index/readyplayerone3d", controller: "PartialCtrl" }). when("/movies/pacificrimuprising3d", { templateUrl: "/partials/index/pacificrimuprising3d", controller: "PartialCtrl" }). when("/movies/avengersinfinitywar", { templateUrl: "/partials/index/avengersinfinitywar", controller: "PartialCtrl" }). when("/movies/incredibles2_3d", { templateUrl: "/partials/index/incredibles2_3d", controller: "PartialCtrl" }). otherwise({ redirectTo: defaultLocation }); }]);