New language icons.
BIN
app/assets/images/common/code_languages/c_small.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 4.4 KiB |
BIN
app/assets/images/common/code_languages/cpp_small.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
app/assets/images/common/code_languages/csharp_small.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
app/assets/images/common/code_languages/go_small.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 2.8 KiB |
BIN
app/assets/images/common/code_languages/java_small.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 3.5 KiB |
BIN
app/assets/images/common/code_languages/php_small.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 4.1 KiB |
BIN
app/assets/images/common/code_languages/ruby_small.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
app/assets/images/common/code_languages/swift_small.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
|
@ -52,7 +52,7 @@ module.exports = class HomeView extends RootView
|
|||
@updateLanguageLogos codeLanguage
|
||||
|
||||
updateLanguageLogos: (codeLanguage) ->
|
||||
@$el.find('.game-mode-wrapper .code-language-logo').css('background-image', "url(/images/common/code_languages/#{codeLanguage}_small.png)").toggleClass 'inverted', (codeLanguage in ['io', 'coffeescript'])
|
||||
@$el.find('.game-mode-wrapper .code-language-logo').css('background-image', "url(/images/common/code_languages/#{codeLanguage}_small.png)")
|
||||
|
||||
onCodeLanguageSelected: (e) ->
|
||||
target = $(e.target).closest('.code-language')
|
||||
|
|