|
7 | 7 | var _data = {
|
8 | 8 | 'default': {
|
9 | 9 | steps:[],
|
10 |
| - showStepNumbers: false, |
| 10 | + showStepNumbers: true, |
11 | 11 | exitOnOverlayClick: true,
|
12 | 12 | exitOnEsc:true,
|
13 |
| - nextLabel: '<strong>Next</strong>', |
14 |
| - prevLabel: '<span style="color:green">Previous</span>', |
15 |
| - skipLabel: 'Exit', |
16 |
| - doneLabel: 'Thanks' |
| 13 | + nextLabel: 'Next', |
| 14 | + prevLabel: 'Back', |
| 15 | + skipLabel: 'Skip', |
| 16 | + doneLabel: 'Finish' |
17 | 17 | },
|
18 | 18 | profile: {
|
19 | 19 | about: {
|
20 | 20 | steps: [
|
21 | 21 | {
|
22 |
| - intro: "Welcome to the new Topcoder Profile. To make this the premier place to showcase skills, we have reimagined this page and introduced several new features." |
23 |
| - } |
24 |
| - ,{ |
25 |
| - element: "#skills", |
26 |
| - intro: "The quickest way to understand a member’s skills. It includes languages, environments, frameworks, libraries, platforms, tools, and any other technologies that you know well.", |
27 |
| - position: "top" |
28 |
| - } |
29 |
| - ,{ |
30 |
| - element: "#tcActivity", |
31 |
| - intro: "Topcoder activity, ratings and other statistics now live in this section. See the active sub-tracks and click on them for even more details and history.", |
32 |
| - position: "top" |
33 |
| - } |
34 |
| - ,{ |
35 |
| - element: "#externalLinks", |
36 |
| - intro: "Best of member’s presence on the web will be highlighted here. Show off your work and experience outside of Topcoder by connecting accounts or adding links.", |
37 |
| - position: "top" |
| 22 | + intro: 'Welcome to the new Topcoder Profile. To make this the premier place to showcase skills, we have reimagined this page and introduced several new features.' |
| 23 | + }, |
| 24 | + { |
| 25 | + element: '#skills', |
| 26 | + intro: 'The quickest way to understand a member’s skills. It includes languages, environments, frameworks, libraries, platforms, tools, and any other technologies that you know well.', |
| 27 | + position: 'top' |
| 28 | + }, |
| 29 | + { |
| 30 | + element: '#tcActivity', |
| 31 | + intro: 'Topcoder activity, ratings and other statistics now live in this section. See the active sub-tracks and click on them for even more details and history.', |
| 32 | + position: 'top' |
| 33 | + }, |
| 34 | + { |
| 35 | + element: '#externalLinks', |
| 36 | + intro: 'Best of member’s presence on the web will be highlighted here. Show off your work and experience outside of Topcoder by connecting accounts or adding links.', |
| 37 | + position: 'top' |
38 | 38 | }
|
39 | 39 | ]
|
40 | 40 | },
|
41 | 41 | subTrack: {
|
42 | 42 | steps: [
|
43 | 43 | {
|
44 |
| - intro: "Welcome to the new Sub-track details page. This page contains activity in this track and in-depth metrics in an easy-to-understand way." |
45 |
| - } |
46 |
| - ,{ |
47 |
| - element: "#metrics", |
48 |
| - intro: "Find the most important metrics here to understand performance in a glance.", |
49 |
| - position: "top" |
50 |
| - } |
51 |
| - ,{ |
52 |
| - element: "#challenges", |
53 |
| - intro: "This sections contains all the completed challenges, in order of success.", |
54 |
| - position: "top" |
55 |
| - } |
56 |
| - ,{ |
57 |
| - element: "#stats", |
58 |
| - intro: "This sections contains charts and more in-depth metrics to get a very granular understanding of the activity in this sub-track.", |
59 |
| - position: "top" |
60 |
| - } |
61 |
| - // ,{ |
62 |
| - // element: "#navigation", |
63 |
| - // intro: "And finally, go from one active sub-track to another by opening the profile navigation here", |
64 |
| - // position: "bottom" |
| 44 | + intro: 'Welcome to the new Sub-track details page. This page contains activity in this track and in-depth metrics in an easy-to-understand way.' |
| 45 | + }, |
| 46 | + { |
| 47 | + element: '#metrics', |
| 48 | + intro: 'Find the most important metrics here to understand performance in a glance.', |
| 49 | + position: 'top' |
| 50 | + }, |
| 51 | + { |
| 52 | + element: '#challenges', |
| 53 | + intro: 'This sections contains all the completed challenges, in order of success.', |
| 54 | + position: 'top' |
| 55 | + }, |
| 56 | + { |
| 57 | + element: '#stats', |
| 58 | + intro: 'This sections contains charts and more in-depth metrics to get a very granular understanding of the activity in this sub-track.', |
| 59 | + position: 'top' |
| 60 | + }, |
| 61 | + // { |
| 62 | + // element: '#navigation', |
| 63 | + // intro: 'And finally, go from one active sub-track to another by opening the profile navigation here', |
| 64 | + // position: 'bottom' |
65 | 65 | // }
|
66 | 66 | ]
|
67 | 67 | }
|
68 | 68 | },
|
69 | 69 | dashboard: {
|
70 | 70 | steps: [
|
71 | 71 | {
|
72 |
| - intro: "Welcome to the your new Topcoder Dashboard. We have revamped the dashboard to bring to fore the information that matters to you. Let us walk you through some of the new things to help you keep on top of your TopCoder activity." |
73 |
| - } |
74 |
| - ,{ |
75 |
| - element: "#metrics", |
76 |
| - intro: "Quickly glance your active challenges and money earned, and click on them to see more in detail.", |
77 |
| - position: "bottom" |
78 |
| - } |
79 |
| - ,{ |
80 |
| - element: "#stats", |
81 |
| - intro: "Keep on top of how you are faring vs rest of the community with the rating here.", |
82 |
| - position: "top" |
83 |
| - } |
84 |
| - ,{ |
85 |
| - element: "#challenges", |
86 |
| - intro: "All your active challenges can be found here. See the phase, and activity on here, or click on them to go to the challenge details. You can view these in a grid or list view.", |
87 |
| - position: "top" |
88 |
| - } |
89 |
| - ,{ |
90 |
| - element: "#viewAllChallenges", |
91 |
| - intro: "Want to see more of the challenges? Or look up a past one? Click on the buttons here to see all of your challenges.", |
92 |
| - position: "top" |
93 |
| - },{ |
94 |
| - element: "#srms", |
95 |
| - intro: "Keep track of the SRMs being scheduled, and find easy links to past problems, editorial and the Arena.", |
96 |
| - position: "top" |
97 |
| - },{ |
98 |
| - element: "#community", |
99 |
| - intro: "Don’t miss out on the latest happenings in our community. Blogs, Events, Member Programs and more!", |
100 |
| - position: "top" |
| 72 | + intro: 'Welcome to your new Topcoder Dashboard. We have revamped the dashboard to bring to fore the information that matters to you. Let us walk you through some of the new things to help you keep on top of your Topcoder activity.' |
| 73 | + }, |
| 74 | + { |
| 75 | + element: '#metrics', |
| 76 | + intro: 'Quickly glance your active challenges and money earned, and click on them to see more in detail.', |
| 77 | + position: 'bottom' |
| 78 | + }, |
| 79 | + { |
| 80 | + element: '#stats', |
| 81 | + intro: 'Keep on top of how you are faring vs rest of the community with the rating here.', |
| 82 | + position: 'top' |
| 83 | + }, |
| 84 | + { |
| 85 | + element: '#challenges', |
| 86 | + intro: 'All your active challenges can be found here. See the phase, and activity on here, or click on them to go to the challenge details. You can view these in a grid or list view.', |
| 87 | + position: 'top' |
| 88 | + }, |
| 89 | + { |
| 90 | + element: '#viewAllChallenges', |
| 91 | + intro: 'Want to see more of the challenges? Or look up a past one? Click on the buttons here to see all of your challenges.', |
| 92 | + position: 'top' |
| 93 | + }, |
| 94 | + { |
| 95 | + element: '#srms', |
| 96 | + intro: 'Keep track of the SRMs being scheduled, and find easy links to past problems, editorial and the Arena.', |
| 97 | + position: 'top' |
| 98 | + }, |
| 99 | + { |
| 100 | + element: '#community', |
| 101 | + intro: 'Don’t miss out on the latest happenings in our community. Blogs, Events, Member Programs and more!', |
| 102 | + position: 'top' |
101 | 103 | }
|
102 | 104 | ]
|
103 | 105 | }
|
|
107 | 109 | var service = {
|
108 | 110 | getIntroData: getIntroData
|
109 | 111 | };
|
| 112 | + |
110 | 113 | return service;
|
111 | 114 |
|
112 | 115 | /////////////////
|
| 116 | + |
113 | 117 | function getIntroData(stateName) {
|
114 | 118 | // verfiy that state exists
|
115 | 119 | var stateData = _.get(_data, stateName, null);
|
116 |
| - if (!stateData) |
| 120 | + |
| 121 | + if (!stateData) { |
117 | 122 | return null;
|
| 123 | + } |
| 124 | + |
118 | 125 | var mergedData = _.clone(_data['default'], true);
|
119 | 126 | mergedData = _.merge(mergedData, stateData);
|
| 127 | + |
120 | 128 | return mergedData;
|
121 | 129 | }
|
122 | 130 | }
|
|
0 commit comments