Skip to content

Instantly share code, notes, and snippets.

@inferno
Created August 12, 2014 07:38
Show Gist options
  • Select an option

  • Save inferno/a84dec9e6f8772321493 to your computer and use it in GitHub Desktop.

Select an option

Save inferno/a84dec9e6f8772321493 to your computer and use it in GitHub Desktop.
window && (window.__markets = [
{
name: 'markets.main.pass'
group_id: 1
template: 'simple_options_list'
rows: [
{ title: 'markets.main.pass_home', name: 'coeff_QS_1'}
{ title: 'markets.main.pass_away', name: 'coeff_QS_2'}
]
}
{
name: 'markets.main.outcome'
group_id: 1
template: 'simple_options_list'
sports: ['hockey']
rows: [
{ title: ('markets.home_victory'), name: 'coeff_HQ_1'}
{ title: ('markets.away_victory'), name: 'coeff_HQ_2'}
]
}
{
name: ('markets.exact_score')
group_id: 1
template: 'simple_exact_score'
}
{
name: ('markets.exact_score')
group_id: 1
sports: ['volleyball', 'tennis', 'table_tennis']
template: 'simple_exact_score_for_tennis'
}
{
name: ('markets.main.victory_style')
group_id: 1
template: 'simple_yes_no_with_groups',
sports: ['soccer'],
groups: [
{
name: ('markets.home_victory'),
mnemonics: [
{ title: ('markets.main.to_nil'), name: 'coeff_WIN_HOME_NO_AWAY_GOALS_' }
{ title: ('markets.main.one_goal'), name: 'coeff_WIN_HOME_EXACTLY_BY_1_' }
{ title: ('markets.main.two_goals'), name: 'coeff_WIN_HOME_EXACTLY_BY_2_' }
{ title: ('markets.main.three_goals'), name: 'coeff_WIN_HOME_EXACTLY_BY_3_' }
{ title: ('markets.main.volitional'), name: 'coeff_HOME_VOLITIONAL_WIN_' }
]
}
{
name: ('markets.away_victory'),
mnemonics: [
{ title: ('markets.main.to_nil'), name: 'coeff_WIN_AWAY_NO_HOME_GOALS_' }
{ title: ('markets.main.one_goal'), name: 'coeff_WIN_AWAY_EXACTLY_BY_1_' }
{ title: ('markets.main.two_goals'), name: 'coeff_WIN_AWAY_EXACTLY_BY_2_' }
{ title: ('markets.main.three_goals'), name: 'coeff_WIN_AWAY_EXACTLY_BY_3_' }
{ title: ('markets.main.volitional'), name: 'coeff_AWAY_VOLITIONAL_WIN_' }
]
}
{
name: ('markets.main.draw_wg'),
mnemonics: 'coeff_DRAW_WITH_GOALS_'
}
]
}
{
name: ('markets.main.victory_or_draw')
group_id: 1
template: 'simple_yes_no',
sports: ['soccer', 'hockey', 'ball_hockey', 'olympic_games'],
rows: [
{
title: ('markets.home_victory_one_ball_or_draw')
name: 'coeff_WIN_HOME_BY_1_OR_DRAW_'
},
{
title: ('markets.away_victory_one_ball_or_draw')
name: 'coeff_WIN_AWAY_BY_1_OR_DRAW_'
}
]
}
{
name: ('markets.main.time_match')
sports: ['soccer']
group_id: 1
template: 'simple_options_list',
rows: [
{ title: ('markets.soccer.home_fh_win'), name: 'coeff_HTFT_HH' }
{ title: ('markets.soccer.home_fh_draw'), name: 'coeff_HTFT_HD' }
{ title: ('markets.soccer.home_fh_lose'), name: 'coeff_HTFT_HA' }
{ title: ('markets.soccer.draw_fh_home_win'), name: 'coeff_HTFT_DH' }
{ title: ('markets.soccer.draw_fh_draw'), name: 'coeff_HTFT_DD' }
{ title: ('markets.soccer.draw_fh_home_lose'), name: 'coeff_HTFT_DA' }
{ title: ('markets.soccer.away_fh_win'), name: 'coeff_HTFT_AA' }
{ title: ('markets.soccer.away_fh_draw'), name: 'coeff_HTFT_AD' }
{ title: ('markets.soccer.away_fh_lose'), name: 'coeff_HTFT_AH' }
]
}
{
name: ('markets.main.first_half')
sports: ['basketball']
group_id: 1
template: 'simple_options_list',
rows: [
{ title: ('markets.basketball.home_fh_win'), name: 'coeff_HTFT_HH' }
{ title: ('markets.basketball.home_fh_draw'), name: 'coeff_HTFT_HD' }
{ title: ('markets.basketball.home_fh_lose'), name: 'coeff_HTFT_HA' }
{ title: ('markets.basketball.draw_fh_home_win'), name: 'coeff_HTFT_DH' }
{ title: ('markets.basketball.draw_fh_draw'), name: 'coeff_HTFT_DD' }
{ title: ('markets.basketball.draw_fh_home_lose'), name: 'coeff_HTFT_DA' }
{ title: ('markets.basketball.away_fh_win'), name: 'coeff_HTFT_AA' }
{ title: ('markets.basketball.away_fh_draw'), name: 'coeff_HTFT_AD' }
{ title: ('markets.basketball.away_fh_lose'), name: 'coeff_HTFT_AH' }
]
}
{
name: ('markets.soccer.w_more_goals')
sports: ['soccer']
group_id: 1
template: 'simple_columns_list'
columns: [
{ title: ('markets.soccer.f_time'), name: 'coeff_T1T2_T1GT2'}
{ title: ('markets.soccer.same'), name: 'coeff_T1T2_T1ET2'}
{ title: ('markets.soccer.s_time'), name: 'coeff_T1T2_T1LT2'}
]
}
{
name: ('markets.soccer.outcome_total')
group_id: 1
sports: ['soccer'],
template: 'simple_yes_no',
rows: [
{ title: ('markets.soccer.home_win_l25'), name: 'coeff_HOME_WIN_AND_TOTAL_LESS_2_5_'}
{ title: ('markets.soccer.home_win_g25'), name: 'coeff_HOME_WIN_AND_TOTAL_MORE_2_5_'}
{ title: ('markets.soccer.away_win_l25'), name: 'coeff_AWAY_WIN_AND_TOTAL_LESS_2_5_'}
{ title: ('markets.soccer.away_win_g25'), name: 'coeff_AWAY_WIN_AND_TOTAL_MORE_2_5_'}
{ title: ('markets.soccer.draw_l25'), name: 'coeff_DRAW_AND_TOTAL_LESS_2_5_'}
{ title: ('markets.soccer.draw_g25'), name: 'coeff_DRAW_AND_TOTAL_MORE_2_5_'}
{ title: ('markets.soccer.home_no_lose_l25'), name: 'coeff_HOME_NOT_LOST_AND_TOTAL_LESS_2_5_'}
{ title: ('markets.soccer.home_no_lose_g25'), name: 'coeff_HOME_NOT_LOST_AND_TOTAL_MORE_2_5_'}
{ title: ('markets.soccer.away_no_lose_l25'), name: 'coeff_AWAY_NOT_LOST_AND_TOTAL_LESS_2_5_'}
{ title: ('markets.soccer.away_no_lose_g25'), name: 'coeff_AWAY_NOT_LOST_AND_TOTAL_MORE_2_5_'}
]
}
{
name: ('markets.add_time')
group_id: 1
sports: ['basketball'],
template: 'simple_yes_no',
rows: [
{ title: ('markets.added_time'), name: 'coeff_OVERTIME_'}
]
}
{
name: ('markets.soccer.oc_times')
group_id: 1
sports: ['soccer'],
template: 'simple_yes_no_with_groups',
groups: [
{
name: '{H}'
mnemonics: [
{ title: ('markets.soccer.both_times'), name: 'coeff_HOME_WIN_BOTH_HT_'}
{ title: ('markets.soccer.one_time'), name: 'coeff_WIN_HOME_ANY_HT_'}
]
}
{
name: '{A}'
mnemonics: [
{ title: ('markets.soccer.both_times'), name: 'coeff_AWAY_WIN_BOTH_HT_'}
{ title: ('markets.soccer.one_time'), name: 'coeff_WIN_AWAY_ANY_HT_'}
]
}
{
name: ('markets.draw')
mnemonics: [
{ title: ('markets.soccer.draw_one_time'), name: 'coeff_DRAW_IN_ANY_HT_'}
]
}
]
}
{
name: ('markets.main.result.title')
group_id: 1
sports: ['soccer', 'hockey', 'ball_hockey', 'olympic_games']
template: 'simple_options_list'
rows: [
{ name: 'coeff_MATCH_DECISION_HOME_WIN_MAIN_TIME', title: ('markets.main.result.home_win_main_time') }
{ name: 'coeff_MATCH_DECISION_AWAY_WIN_MAIN_TIME', title: ('markets.main.result.away_win_main_time') }
{ name: 'coeff_MATCH_DECISION_HOME_WIN_OVERTIME', title: ('markets.main.result.home_win_overtime') }
{ name: 'coeff_MATCH_DECISION_AWAY_WIN_OVERTIME', title: ('markets.main.result.away_win_overtime') }
{ name: 'coeff_MATCH_DECISION_HOME_WIN_PENALTY', title: ('markets.main.result.home_win_penalty') }
{ name: 'coeff_MATCH_DECISION_AWAY_WIN_PENALTY', title: ('markets.main.result.away_win_penalty') }
]
}
{
name: ('markets.main.points')
group_id: 1
sports: ['soccer', 'hockey']
template: 'simple_yes_no_with_groups',
groups: [
{
name: '{H}',
mnemonics: ['1.5', '2.5', '3.5', '4.5', '5.5', '6.5', '7.5'].map (index) -> { title: window.t && window.t('templates.more_than', number: index), name: "coeff_TOTAL_POINTS_HOME_MORE_" + index.replace('.', '_') + "_" }
}
{
name: '{A}',
mnemonics: ['1.5', '2.5', '3.5', '4.5', '5.5', '6.5', '7.5'].map (index) -> { title: window.t && window.t('templates.more_than', number: index), name: "coeff_TOTAL_POINTS_AWAY_MORE_" + index.replace('.', '_') + "_" }
}
]
}
{
name: ('markets.main.place_in_group')
group_id: 1
sports: ['soccer', 'hockey']
template: 'simple_yes_no_with_groups',
groups: [
{
name: '{H}',
mnemonics: ['2', '3', '4'].map (index) -> { title: ('markets.main.places.' + index), name: "coeff_HOME_PLACE_IN_GROUP_#{index}_" }
}
{
name: '{A}',
mnemonics: ['2', '3', '4'].map (index) -> { title: ('markets.main.places.' + index), name: "coeff_AWAY_PLACE_IN_GROUP_#{index}_" }
}
]
}
{
name: ('markets.main.place_in_tournament')
group_id: 1
sports: ['soccer', 'hockey']
template: 'simple_yes_no_with_groups',
groups: [
{
name: '{H}',
mnemonics: [
{ title: ('markets.main.places.2'), name: "coeff_HOME_PLACE_IN_TOURNAMENT_2_" }
{ title: ('markets.main.places.3'), name: "coeff_HOME_PLACE_IN_TOURNAMENT_3_" }
{ title: ('markets.main.places.1-3'), name: "coeff_HOME_PLACE_IN_TOURNAMENT_FROM_1_TO_3_" }
]
}
{
name: '{A}',
mnemonics: [
{ title: ('markets.main.places.2'), name: "coeff_AWAY_PLACE_IN_TOURNAMENT_2_" }
{ title: ('markets.main.places.3'), name: "coeff_AWAY_PLACE_IN_TOURNAMENT_3_" }
{ title: ('markets.main.places.1-3'), name: "coeff_AWAY_PLACE_IN_TOURNAMENT_FROM_1_TO_3_" }
]
}
]
}
{
name: ('markets.main.reach_home')
group_id: 1
sports: ['soccer', 'hockey']
template: 'simple_yes_no',
rows: [
{
title: '{H}'
name: "coeff_HOME_REACH_GROUP_"
}
]
}
{
name: ('markets.main.reach_quarterfinal')
group_id: 1
sports: ['soccer', 'hockey']
template: 'simple_yes_no',
rows: [
{
title: '{H}'
name: "coeff_HOME_REACH_QUARTERFINAL_"
}
{
title: '{A}'
name: "coeff_AWAY_REACH_QUARTERFINAL_"
}
]
}
{
name: ('markets.main.reach_semifinal')
group_id: 1
sports: ['soccer', 'hockey']
template: 'simple_yes_no',
rows: [
{
title: '{H}'
name: "coeff_HOME_REACH_SEMIFINAL_"
}
{
title: '{A}'
name: "coeff_AWAY_REACH_SEMIFINAL_"
}
]
}
{
name: ('markets.main.reach_final')
group_id: 1
sports: ['soccer', 'hockey']
template: 'simple_yes_no',
rows: [
{
title: '{H}'
name: "coeff_HOME_REACH_FINAL_"
}
{
title: '{A}'
name: "coeff_AWAY_REACH_FINAL_"
}
]
}
])
window && (window.__marketGroups = [
{ id: 1, name: 'Основные', order: 1 }
{ id: 2, name: 'Таймы', order: 2 }
{ id: 3, name: 'Тоталы', order: 3 }
{ id: 4, name: 'Форы', order: 4 }
{ id: 5, name: 'Голы', order: 5 }
{ id: 6, name: 'Другое', order: 6 }
{ id: 7, name: 'Половины', order: 7 }
{ id: 8, name: 'Четверти', order: 8 }
{ id: 9, name: 'Периоды', order: 9 }
{ id: 10, name: 'Партии', order: 10 }
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment