Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function(t, e, n) {
- "use strict";
- function r(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- function i(t, e, n, r, i, o) {
- var a = this
- , u = t.path().split("/")[1]
- , s = u.replace("/", "");
- this.quiz = u.replace("/", "").replace("-", " "),
- this.quizIntroContent = v["default"][s],
- this.quizReady = !1,
- this.fawkesUrl = o.fawkes.url,
- n.getQuizDeck(s).then(function(t) {
- return r.initialise({
- type: s,
- length: t.length
- }),
- t
- }).then(function(t) {
- i.addQuestions(t)
- }).then(function() {
- return a.quizReady = !0
- }),
- this.startQuiz = function() {
- r.nextStep(),
- e.go("question.answer", {
- type: s,
- step: r.getActiveStep(),
- answer: 1
- })
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var o = n(59)
- , a = n(12)
- , u = r(a)
- , s = n(132)
- , c = r(s)
- , l = n(134)
- , f = r(l)
- , p = n(136)
- , h = r(p)
- , d = n(137)
- , v = r(d);
- e["default"] = (0,
- o.controller)("IntroPage", ["$location", "$state", "quizRepository", "quizStore", "questionStore", "config", i], [c["default"], f["default"], h["default"], u["default"]])
- }
- , function(t, e, n) {
- "use strict";
- function r(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- function i(t, e) {
- function n() {
- return t.random(1, 10)
- }
- this.getQuizDeck = function(t) {
- return e.get("api/quiz/" + t + "/" + n()).then(function(t) {
- return t.data
- })
- }
- ,
- this.getOutcome = function(t, n) {
- return e.post("api/quiz/" + t, n).then(function(t) {
- return t.data.outcome
- })
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var o = n(2)
- , a = r(o)
- , u = n(133)
- , s = r(u);
- e["default"] = a["default"].module("service.quizRepository", [s["default"]]).service("quizRepository", ["_", "$http", i]).name
- }
- , function(t, e, n) {
- "use strict";
- function r(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var i = n(79)
- , o = r(i)
- , a = n(59);
- e["default"] = (0,
- a.factory)("_", [function() {
- return o["default"]
- }
- ])
- }
- , function(t, e, n) {
- "use strict";
- function r(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var i = n(59)
- , o = n(135)
- , a = r(o);
- e["default"] = (0,
- i.factory)("quizStore", ["sessionStorageFactory", function(t) {
- var e = t("quiz-in-progress");
- return {
- initialise: function(t) {
- e.put("type", t.type),
- e.put("length", t.length),
- e.put("step", 0)
- },
- getActiveStep: function() {
- var t = e.get("length")
- , n = e.get("step");
- return n > t ? "outcome" : n
- },
- nextStep: function() {
- var t = e.get("step") || 0;
- e.put("step", t + 1),
- e.put("answerDirection", null )
- },
- initAnswers: function(t) {
- e.put("answer", t.answerNumber),
- e.put("answerLength", t.length)
- },
- getActiveAnswer: function() {
- return e.get("answer")
- },
- getAnswerLength: function() {
- return e.get("answerLength")
- },
- getAnswerDirection: function() {
- return e.get("answerDirection")
- },
- previousAnswer: function() {
- var t = e.get("answer")
- , n = e.get("answerLength")
- , r = t - 1;
- 0 >= r && (r = n),
- e.put("answer", r),
- e.put("answerDirection", "previous")
- },
- nextAnswer: function() {
- var t = e.get("answer")
- , n = e.get("answerLength")
- , r = t + 1;
- r > n && (r = 1),
- e.put("answer", r),
- e.put("answerDirection", "next")
- },
- getQuizType: function() {
- return e.get("type")
- },
- reset: function() {
- return e.clearAll()
- }
- }
- }
- ], [a["default"]])
- }
- , function(t, e, n) {
- "use strict";
- function r(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- function i(t, e) {
- if (!(t instanceof e))
- throw new TypeError("Cannot call a class as a function")
- }
- function o(t, e) {
- var n = l(t.getItem(e)) || {};
- return new (function() {
- function r() {
- i(this, r)
- }
- return a(r, [{
- key: "put",
- value: function(r, i) {
- n[r] = i,
- t.setItem(e, f(n))
- }
- }, {
- key: "get",
- value: function(t) {
- return n[t]
- }
- }, {
- key: "getAll",
- value: function() {
- return n
- }
- }, {
- key: "info",
- value: function() {
- return {
- id: e,
- size: Object.keys(n).length
- }
- }
- }, {
- key: "clear",
- value: function() {
- t.removeItem(e)
- }
- }, {
- key: "clearAll",
- value: function() {
- t.clear()
- }
- }]),
- r
- }())
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var a = function() {
- function t(t, e) {
- for (var n = 0; n < e.length; n++) {
- var r = e[n];
- r.enumerable = r.enumerable || !1,
- r.configurable = !0,
- "value" in r && (r.writable = !0),
- Object.defineProperty(t, r.key, r)
- }
- }
- return function(e, n, r) {
- return n && t(e.prototype, n),
- r && t(e, r),
- e
- }
- }()
- , u = n(2)
- , s = r(u)
- , c = n(59)
- , l = s["default"].fromJson
- , f = s["default"].toJson;
- e["default"] = (0,
- c.factory)("sessionStorageFactory", ["$window", function(t) {
- return function(e) {
- return new o(t.sessionStorage,e)
- }
- }
- ])
- }
- , function(t, e, n) {
- "use strict";
- function r(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var i = n(59)
- , o = n(135)
- , a = r(o);
- e["default"] = (0,
- i.factory)("questionStore", ["sessionStorageFactory", "quizStore", function(t, e) {
- var n = void 0;
- return Boolean(e.getQuizType()) && (n = t(e.getQuizType())),
- {
- addQuestions: function(r) {
- n = n || t(e.getQuizType()),
- r.forEach(function(t, e) {
- n.put(e + 1, t)
- })
- },
- getQuestion: function() {
- return n.get(e.getActiveStep())
- }
- }
- }
- ], [a["default"]])
- }
- , function(t, e) {
- "use strict";
- Object.defineProperty(e, "__esModule", {
- value: !0
- }),
- e["default"] = {
- wand: {
- storyTitle: "Mr Ollivander",
- storyUri: "https://www.pottermore.com/writing-by-jk-rowling/mr-ollivander",
- quizTitle: "The Wand Ceremony",
- quizIntroText: "Take your time and answer honestly - your answers are final."
- },
- "sorting-hat": {
- storyTitle: "The Sorting Hat",
- storyUri: "https://www.pottermore.com/writing-by-jk-rowling/the-sorting-hat",
- quizTitle: "The Sorting Ceremony",
- quizIntroText: "Answer truthfully, after all the hat's decision is final."
- },
- "ilvermorny-sorting": {
- storyTitle: "Ilvermorny School of Witchcraft and Wizardry",
- storyUri: "https://www.pottermore.com/collection-episodic/ilvermorny-school-of-witchcraft-and-wizardry",
- quizTitle: "The Ilvermorny Sorting Ceremony",
- quizIntroText: "Where do you belong? Horned Serpent, Wampus, Thunderbird or Pukwudgie..."
- }
- }
- }
- , function(t, e) {
- t.exports = '<div class=quiz> <div class=quiz-intro> <section class=quiz-intro__section> <h2 class=quiz-intro__section-title>{{ctrl.quizIntroContent.storyTitle}}</h2> <h3 class=quiz-intro__section-sub-title>By J.K. Rowling</h3> <p> <a href={{ctrl.quizIntroContent.storyUri}} class=btn>Read the story</a> </p> </section> <span class=quiz-intro__divider>OR</span> <section class=quiz-intro__section> <h2 class=quiz-intro__section-title>{{ctrl.quizIntroContent.quizTitle}}</h2> <h3 class=quiz-intro__section-sub-title>{{ctrl.quizIntroContent.quizIntroText}}</h3> <button class="quiz-intro__button btn" data-r-btn=begin ng-disabled=!ctrl.quizReady ng-click=ctrl.startQuiz()>Begin the experience</button> </section> </div> </div>'
- }
- , function(t, e, n) {
- "use strict";
- function r(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- function i(t, e) {
- var n = void 0
- , r = void 0;
- return u["default"].isNumber(t) ? (n = "question.answer",
- r = {
- step: t,
- answer: 1
- }) : (n = "result",
- r = {
- type: e
- }),
- {
- id: n,
- params: r
- }
- }
- function o(t, e, n, r, o) {
- function a(t) {
- var e = i(t, r.getQuizType());
- n.go(e.id, e.params)
- }
- var u = void 0
- , s = void 0;
- u = parseInt(e.step, 10),
- s = r.getActiveStep(),
- u !== s && a(s);
- var c = o.getQuestion();
- this.question = c.question,
- this.theme = c.theme,
- this.nextQuestion = function() {
- t.scrollTo(0, 0),
- r.nextStep(),
- a(r.getActiveStep())
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var a = n(2)
- , u = r(a)
- , s = n(59)
- , c = n(140)
- , l = r(c)
- , f = n(145)
- , p = r(f)
- , h = n(146)
- , d = r(h)
- , v = n(148)
- , $ = r(v)
- , m = n(152)
- , g = r(m)
- , y = n(134)
- , w = r(y)
- , b = n(136)
- , x = r(b);
- e["default"] = (0,
- s.controller)("QuestionPage", ["$window", "$stateParams", "$state", "quizStore", "questionStore", o], [g["default"], d["default"], l["default"], w["default"], x["default"], p["default"], $["default"]])
- }
- , function(t, e, n) {
- "use strict";
- function r(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var i = n(2)
- , o = r(i)
- , a = n(134)
- , u = r(a)
- , s = n(141)
- , c = r(s)
- , l = n(144)
- , f = r(l);
- e["default"] = o["default"].module("directive.pmIndicator", [u["default"]]).directive("pmIndicator", function() {
- return {
- restrict: "E",
- replace: !0,
- scope: {},
- controller: ["$scope", "quizStore", c["default"]],
- controllerAs: "ctrl",
- template: f["default"]
- }
- }).name
- }
- , function(t, e, n) {
- "use strict";
- function r(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- function i(t) {
- return function(e) {
- return t((0,
- u["default"])(1, e + 1))
- }
- }
- function o(t, e) {
- var n = this;
- t.$watch(function() {
- return e.getAnswerLength()
- }, i(function(t) {
- n.dots = t
- })),
- this.isActive = function(t) {
- return t === e.getActiveAnswer()
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var a = n(142)
- , u = r(a);
- e["default"] = o
- }
- , function(t, e, n) {
- function r(t, e, n) {
- n && i(t, e, n) && (e = n = void 0),
- t = +t || 0,
- n = null == n ? 1 : +n || 0,
- null == e ? (e = t,
- t = 0) : e = +e || 0;
- for (var r = -1, u = a(o((e - t) / (n || 1)), 0), s = Array(u); ++r < u; )
- s[r] = t,
- t += n;
- return s
- }
- var i = n(143)
- , o = Math.ceil
- , a = Math.max;
- t.exports = r
- }
- , function(t, e, n) {
- function r(t, e, n) {
- if (!a(n))
- return !1;
- var r = typeof e;
- if ("number" == r ? i(n) && o(e, n.length) : "string" == r && e in n) {
- var u = n[e];
- return t === t ? t === u : u !== u
- }
- return !1
- }
- var i = n(103)
- , o = n(50)
- , a = n(28);
- t.exports = r
- }
- , function(t, e) {
- t.exports = '<div class=indicator> <em class=indicator__dot ng-class="{\'is-selected\': ctrl.isActive(dot) }" ng-repeat="dot in ctrl.dots">•</em> </div>'
- }
- , function(t, e, n) {
- "use strict";
- function r(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var i = n(2)
- , o = r(i);
- e["default"] = o["default"].module("directive.goToAnswer", []).directive("pmGoToAnswer", ["$window", "$interval", function(t, e) {
- return {
- restrict: "A",
- replace: !0,
- scope: {
- question: "@"
- },
- link: function(n, r) {
- var i = function() {
- var n = t.scrollY
- , r = e(function() {
- n < t.innerHeight ? (n += 10,
- t.scrollTo(0, n)) : e.cancel(r)
- }, 1)
- }
- ;
- ["click", "touchstart"].forEach(function(t) {
- r[0].addEventListener(t, i, !1)
- })
- }
- }
- }
- ]).name
- }
- , function(t, e, n) {
- "use strict";
- function r(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var i = n(2)
- , o = r(i)
- , a = n(147)
- , u = r(a);
- e["default"] = o["default"].module("directive.quizQuestion", []).directive("pmQuizQuestion", [function() {
- return {
- restrict: "E",
- replace: !0,
- scope: {
- question: "@"
- },
- template: u["default"]
- }
- }
- ]).name
- }
- , function(t, e) {
- t.exports = "<p class=quiz-question>{{ question }}</p>"
- }
- , function(t, e, n) {
- "use strict";
- function r(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- function i(t, e) {
- return function(n) {
- n.keyCode === t && e()
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var o = n(2)
- , a = r(o)
- , u = n(81)
- , s = r(u)
- , c = n(149)
- , l = r(c)
- , f = n(134)
- , p = r(f)
- , h = n(151)
- , d = r(h)
- , v = s["default"].ENTER;
- e["default"] = a["default"].module("directive.pmQuizAnswerChooser", [l["default"], p["default"]]).directive("pmQuizAnswerChooser", ["quizStore", "domEvent", function(t, e) {
- return {
- replace: !0,
- restrict: "E",
- scope: {
- type: "@",
- onChoose: "&",
- onMatch: "&",
- style: "="
- },
- template: d["default"],
- link: function(n, r) {
- n.clickHandler = function() {
- n.onChoose()
- }
- ,
- n.keyUpHandler = i(v, function() {
- n.onChoose()
- }),
- t.getAnswerDirection() === n.type && e.focus(r)
- }
- }
- }
- ]).name
- }
- , function(t, e, n) {
- "use strict";
- function r(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var i = n(150)
- , o = r(i);
- e["default"] = o["default"]
- }
- , function(t, e, n) {
- "use strict";
- function r(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var i = n(9)
- , o = r(i);
- e["default"] = o["default"].module("utils.domEvent", []).factory("domEvent", [function() {
- return {
- focus: function(t) {
- return t[0].focus()
- }
- }
- }
- ]).name
- }
- , function(t, e) {
- t.exports = '<a data-r-answer-navigation="{{ type }}" ng-click=clickHandler() ng-keyup=keyUpHandler($event) role=button> <span ng-style=style></span> </a>'
- }
- , function(t, e, n) {
- "use strict";
- function r(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var i = n(2)
- , o = r(i)
- , a = n(153)
- , u = r(a);
- e["default"] = o["default"].module("directive.sortingIllustration", []).directive("pmSortingIllustration", [function() {
- return {
- transclude: !0,
- restrict: "E",
- replace: !0,
- scope: {
- illustration: "@"
- },
- template: u["default"]
- }
- }
- ]).name
- }
- , function(t, e) {
- t.exports = '<div class="quiz-illustration quiz-illustration--{{ illustration }}"> <div class=quiz-illustration__background></div> <div class=quiz-illustration__middleground></div> <div class=quiz-illustration__foreground></div> <div class=quiz-illustration__content ng-transclude></div> </div>'
- }
- , function(t, e) {
- t.exports = '<div class="quiz quiz--questions"> <div class=quiz__question> <pm-sorting-illustration illustration="{{ ctrl.theme }}"> <pm-quiz-question question="{{ ctrl.question }}"></pm-quiz-question> </pm-sorting-illustration> <a pm-go-to-answer class=quiz-question__nav><span class=circle></span></a> </div> <div class=quiz__answer> <pm-indicator></pm-indicator> <div class=quiz__answer-wrapper> <div ui-view class=swap-animation ng-class="{previous: ctrl.previousTransition, next: ctrl.nextTransition}"></div> </div> <button class="btn quiz__accept-answer form__button form__button--hollow" data-r-btn=accept ng-click=ctrl.nextQuestion()>Select</button> </div> </div>'
- }
- , function(t, e, n) {
- "use strict";
- function r(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- function i(t, e, n, r, i) {
- function o() {
- var e = n.getActiveAnswer();
- t.go("question.answer", {
- answer: e
- })
- }
- var a = this
- , u = r.getQuestion()
- , s = parseInt(n.getActiveStep(), 10)
- , c = parseInt(e.answer, 10)
- , l = u.answers
- , f = l[c - 1];
- n.initAnswers({
- answerNumber: c,
- length: l.length
- }),
- this.previousTransition = !1,
- this.nextTransition = !1,
- this.answerText = f.answer,
- this.answerStyle = {
- "background-color": f.colour
- },
- this.toggleStyle = {
- "border-color": f.colour
- },
- i.setAnswer(s, f.id),
- this.previous = function() {
- a.previousTransition = !0,
- a.nextTransition = !1,
- n.previousAnswer(),
- o()
- }
- ,
- this.next = function() {
- a.previousTransition = !1,
- a.nextTransition = !0,
- n.nextAnswer(),
- o()
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var o = n(59)
- , a = n(130)
- , u = r(a)
- , s = n(134)
- , c = r(s)
- , l = n(136)
- , f = r(l)
- , p = n(156)
- , h = r(p);
- e["default"] = (0,
- o.controller)("Answer", ["$state", "$stateParams", "quizStore", "questionStore", "answerStore", i], [u["default"], c["default"], f["default"], h["default"]])
- }
- , function(t, e, n) {
- "use strict";
- function r(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var i = n(59)
- , o = n(79)
- , a = r(o)
- , u = n(135)
- , s = r(u);
- e["default"] = (0,
- i.factory)("answerStore", ["sessionStorageFactory", function(t) {
- var e = t("answers");
- return {
- setAnswer: function(t, n) {
- e.put(t, n)
- },
- getAnswers: function() {
- var t = e.info().size;
- return a["default"].range(t).map(function(t) {
- return e.get(t + 1)
- })
- }
- }
- }
- ], [s["default"]])
- }
- , function(t, e) {
- t.exports = '<div class=quiz-answer data-r-answers ng-style=ctrl.answerStyle> <pm-quiz-answer-chooser type=previous on-choose=ctrl.previous() class="quiz-answer__nav quiz-answer__nav--prev" tabindex=6 style="" title="previous option" aria-labelledby="previous option"></pm-quiz-answer-chooser> <span class=quiz-answer__text data-r-answer>{{ ctrl.answerText }}</span> <pm-quiz-answer-chooser type=next on-choose=ctrl.next() class="quiz-answer__nav quiz-answer__nav--next" tabindex=6 style="" title="next option" aria-labelledby="next option"></pm-quiz-answer-chooser> </div>'
- }
- , function(t, e, n) {
- "use strict";
- function r(t) {
- return t && t.__esModule ? t : {
- "default": t
- }
- }
- function i(t, e, n, r, i) {
- var o = this
- , a = e.getQuizType()
- , u = n.getAnswers();
- this.fawkesUrl = i.fawkes.url,
- t.getOutcome(a, u).then(function(t) {
- o.outcomeFor = "partial/" + a,
- o.outcome = t,
- t ? (o.outcome.displayName = t.displayName || "unthemed",
- r.name = t.urlFriendlyName || "unthemed") : r.name = "unthemed"
- }).then(function() {
- return e.reset()
- })
- }
- Object.defineProperty(e, "__esModule", {
- value: !0
- });
- var o = n(59)
- , a = n(12)
- , u = r(a)
- , s = n(132)
- , c = r(s)
- , l = n(134)
- , f = r(l)
- , p = n(156)
- , h = r(p);
- e["default"] = (0,
- o.controller)("OutcomePage", ["quizRepository", "quizStore", "answerStore", "theme", "config", i], [c["default"], f["default"], h["default"], u["default"]])
- }
- , function(t, e) {
- t.exports = "<div class=outcome ng-include=ctrl.outcomeFor></div>"
- }
- , function(t, e) {
- t.exports = '<div class=outcome__decision data-r-outcome-decision> <div class="outcome__badge {{ ctrl.outcome.urlFriendlyName }}"></div> <h1 class=outcome__decision-text data-r-outcome-decision-text>{{ ctrl.outcome.displayName }}</h1> </div> <div class=outcome__share> <p class=outcome__message data-r-outcome-message>Congratulations on being sorted into {{ ctrl.outcome.displayName }}</p> <div class=outcome__social data-r-outcome-social> <h2 class=outcome__social-title>Share your house</h2> <pm-social-share url="{{ ctrl.fawkesUrl }}/collection/all-about-{{ ctrl.outcome.urlFriendlyName }}" title="I am in {{ ctrl.outcome.displayName }}" text="I got sorted into {{ ctrl.outcome.displayName }} on #pottermore {{ ctrl.fawkesUrl }}/collection/all-about-{{ ctrl.outcome.urlFriendlyName }}"></pm-social-share> </div> </div> <div class=outcome__next-steps> <div class=outcome__next-step> <a href=user-profile class="form__button btn form__button--hollow" target=_self data-r-outcome-profile-link>Return to my profile</a> </div> <div class=outcome__next-step> <a href=/user-profile/my-house/ilvermorny class="btn form__button form__button--hollow" target=_self data-r-outcome-continue-link>More about my House</a> </div> </div>'
- }
- , function(t, e) {
- t.exports = '<div class=outcome__decision data-r-outcome-decision> <div class="outcome__badge {{ ctrl.outcome.urlFriendlyName }}"></div> <h1 class=outcome__decision-text data-r-outcome-decision-text>{{ ctrl.outcome.displayName }}</h1> </div> <div class=outcome__share> <p class=outcome__message data-r-outcome-message>Congratulations on being sorted into {{ ctrl.outcome.displayName }}</p> <div class=outcome__social data-r-outcome-social> <h2 class=outcome__social-title>Share your house</h2> <pm-social-share url="{{ ctrl.fawkesUrl }}/collection/all-about-{{ ctrl.outcome.urlFriendlyName }}" title="I am in {{ ctrl.outcome.displayName }}" text="I got sorted into {{ ctrl.outcome.displayName }} on #pottermore {{ ctrl.fawkesUrl }}/collection/all-about-{{ ctrl.outcome.urlFriendlyName }}"></pm-social-share> </div> </div> <div class=outcome__next-steps> <div class=outcome__next-step> <a href=user-profile class="form__button btn form__button--hollow" target=_self data-r-outcome-profile-link>Return to my profile</a> </div> <div class=outcome__next-step> <a href=/user-profile/my-house/hogwarts class="btn form__button form__button--hollow" target=_self data-r-outcome-continue-link>More about my House</a> </div> </div>'
- }
- , function(t, e) {
- t.exports = '<div class=outcome__decision data-r-outcome-decision> <div class=outcome__image> <picture class=wand data-r-outcome-image> <source data-r-responsive-image=enormous media="(min-width: 1450px)" ng-srcset="{{ ctrl.outcome.wand.image }}?h=225"/> <source data-r-responsive-image=huge media="(min-width: 1200px)" ng-srcset="{{ ctrl.outcome.wand.image }}?h=175"/> <source data-r-responsive-image=large media="(min-width: 992px)" ng-srcset="{{ ctrl.outcome.wand.image }}?h=150"/> <source data-r-responsive-image=medium media="(min-width: 768px)" ng-srcset="{{ ctrl.outcome.wand.image }}?h=75"/> <source data-r-responsive-image=small media="(min-width: 481px)" ng-srcset="{{ ctrl.outcome.wand.image }}?h=75"/> <source data-r-responsive-image=smallest media="(min-width: 321px)" ng-srcset="{{ ctrl.outcome.wand.image }}?h=75"/> <img data-r-responsive-image=default ng-src="{{ ctrl.outcome.wand.image }}" alt="Picture of wand"/> </picture> </div> <h1 class=outcome__decision-text data-r-outcome-decision-text>{{ ctrl.outcome.wand.wood.displayName }} wood with a {{ ctrl.outcome.wand.core.displayName | lowercase }} core, {{ ctrl.outcome.wand.length.displayName }} and {{ ctrl.outcome.wand.flexibility.displayName | lowercase }} flexibility</h1> </div> <div class=outcome__share> <p class=outcome__message data-r-outcome-message>Your wand has chosen you, spread the word...</p> <div class=outcome__social data-r-outcome-social> <h2 class=outcome__social-title>Share your wand</h2> <pm-social-share url="{{ ctrl.fawkesUrl }}{{ ctrl.outcome.wandDisplay.path }}" title="My wand is {{ctrl.outcome.wandDisplay.displayName}}" text="My wand, {{ctrl.outcome.wandDisplay.displayName}}, chose me on #pottermore {{ ctrl.fawkesUrl }}{{ ctrl.outcome.wandDisplay.path }}"></pm-social-share> </div> </div> <div class=outcome__next-steps> <div class=outcome__next-step> <a href=user-profile class="btn form__button form__button--hollow" target=_self data-r-outcome-profile-link>Return to my profile</a> </div> <div class=outcome__next-step> <a href=/user-profile/wand class="btn form__button form__button--hollow" target=_self data-r-outcome-continue-link>More about my Wand</a> </div> </div>'
- }
- , , function(t, e, n, r) {
- n(r),
- t.exports = angular
- }
- ]));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement