mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Consolidated extra resources.
This commit is contained in:
parent
bcbffd1f65
commit
899aae5798
3 changed files with 2 additions and 42 deletions
|
@ -10,30 +10,6 @@ if docs.length === 1
|
|||
div
|
||||
!= docs[0].html
|
||||
|
||||
if (!me.isPremium() || me.isAdmin()) && (me.get('preferredLanguage') || 'en-US').substr(0, 2) == 'en'
|
||||
hr
|
||||
h3 Want more programming lessons?
|
||||
ul
|
||||
li
|
||||
strong
|
||||
a(class="resource-link", data-resource="breakout-mentors", href='http://breakoutmentors.com/?referral=codecombat') Breakout Mentors
|
||||
| : Personalized code mentoring for kids from Stanford and UC Berkeley mentors, online or in person.
|
||||
li
|
||||
strong
|
||||
a(class="resource-link", data-resource="ostraining", href='https://www.ostraining.com/codecombat/') OSTraining
|
||||
| : Watch over 2600 videos on how to make great websites with Wordpress, Drupal, Joomla, and more.
|
||||
li
|
||||
strong
|
||||
a(class="resource-link", data-resource="one-month", href='http://mbsy.co/bVRtZ') One Month
|
||||
| : Learn any tech skill in 30 days with just 15 minutes a day.
|
||||
li
|
||||
strong
|
||||
a(class="resource-link", data-resource="code-school", href='http://mbsy.co/bVRsR') Code School
|
||||
| : Learn web technologies with video lessons, coding challenges, and screencasts.
|
||||
li
|
||||
strong
|
||||
a(class="resource-link", data-resource="pluralsight", href='http://shrsl.com/?~81i5') Pluralsight
|
||||
| : Unlock new tech skills with over 3000 online courses.
|
||||
else
|
||||
ul.nav.nav-tabs
|
||||
for doc in docs
|
||||
|
|
|
@ -15,7 +15,6 @@ module.exports = class LevelGuideView extends CocoView
|
|||
|
||||
events:
|
||||
'click .start-subscription-button': 'clickSubscribe'
|
||||
'click .resource-link': 'clickResourceLink'
|
||||
|
||||
constructor: (options) ->
|
||||
@levelSlug = options.level.get('slug')
|
||||
|
@ -78,13 +77,6 @@ module.exports = class LevelGuideView extends CocoView
|
|||
@openModalView new SubscribeModal()
|
||||
window.tracker?.trackEvent 'Show subscription modal', category: 'Subscription', label: 'help video clicked', level: level
|
||||
|
||||
clickResourceLink: (e) ->
|
||||
e.preventDefault()
|
||||
resource = $(e.target).data 'resource'
|
||||
url = $(e.target).attr 'href'
|
||||
window.tracker?.trackEvent 'Click resource', category: 'Resources', source: 'guide', level: @levelSlug, resource: resource
|
||||
window.open url, '_blank'
|
||||
|
||||
clickTab: (e) =>
|
||||
@$el.find('li.active').removeClass('active')
|
||||
@playSound 'guide-tab-switch'
|
||||
|
|
|
@ -720,17 +720,9 @@ sendNextStepsEmail = (user, now, daysAgo) ->
|
|||
isKid = not isAdult # Assume kid if not specified
|
||||
offers =
|
||||
'app-academy': isAdult and isVeryFast
|
||||
'designlab': isAdult and Math.random() < 0.25
|
||||
'tealeaf-academy': isAdult and isFast
|
||||
'talent-buddy': isAdult and Math.random() < 0.25
|
||||
'coding-campus': isAdult and Math.random() < 0.25 # TODO: geodetect UT and give priority
|
||||
'viking': isAdult and isFast
|
||||
'maker-square': isAdult and isFast
|
||||
'the-firehose-project': isAdult and isFast
|
||||
#'mv-code-club': isKid # TODO: geodetect, get landing page URL
|
||||
'breakout-mentors': isKid
|
||||
nAdditionalOffers = Math.max 0, 4 - _.filter(offers).length
|
||||
possibleAdditionalOffers = ['ostraining', 'code-school', 'one-month', 'pluralsight']
|
||||
nAdditionalOffers = Math.max 0, 1 - _.filter(offers).length
|
||||
possibleAdditionalOffers = ['bloc', 'tuts-plus', 'thinkful']
|
||||
for offer in _.sample possibleAdditionalOffers, nAdditionalOffers
|
||||
offers[offer] = true
|
||||
if user.isPremium()
|
||||
|
|
Loading…
Reference in a new issue