mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 14:03:28 -04:00
Add autocomplete and slider to design elements view, limit showing javascript widgets automagically
This commit is contained in:
parent
93b9aa3c2c
commit
5941c4b27f
2 changed files with 36 additions and 4 deletions
app
|
@ -406,7 +406,7 @@
|
|||
a#tooltips.panel-title(href="#tooltips") Tooltips
|
||||
|
||||
.panel-body
|
||||
button#tooltip.btn.btn-default(title="tooltip text!", data-placement="right", data-trigger="manual") Button w/Tooltip
|
||||
button#tooltip.btn.btn-default(title="tooltip text!", data-placement="right", data-trigger="click") Button w/Tooltip
|
||||
|
||||
.col-sm-3
|
||||
.panel.panel-default
|
||||
|
@ -414,7 +414,7 @@
|
|||
a#popovers.panel-title(href="#popovers") Popovers
|
||||
|
||||
.panel-body
|
||||
button#popover.btn.btn-default(title="Popover title" data-content="Popover content" data-trigger="manual") Button w/Popover
|
||||
button#popover.btn.btn-default(title="Popover title" data-content="Popover content" data-trigger="click") Button w/Popover
|
||||
|
||||
|
||||
h1 jQuery UI
|
||||
|
@ -426,6 +426,7 @@
|
|||
a#autocomplete.panel-title(href="#autocomplete") Autocomplete
|
||||
|
||||
.panel-body
|
||||
input#tags
|
||||
|
||||
.col-sm-3
|
||||
.panel.panel-default
|
||||
|
@ -433,6 +434,7 @@
|
|||
a#slider.panel-title(href="#slider") Slider
|
||||
|
||||
.panel-body
|
||||
#slider-example
|
||||
|
||||
h1 Other
|
||||
|
||||
|
|
|
@ -12,5 +12,35 @@ module.exports = class DesignElementsView extends RootView
|
|||
document.location.hash = ''
|
||||
setTimeout((-> document.location.hash = hash), 10)
|
||||
@$('#modal-2').find('.background-wrapper').addClass('plain')
|
||||
setTimeout((=> @$('#tooltip').tooltip('show')), 20)
|
||||
setTimeout((=> @$('#popover').popover('show')), 20)
|
||||
if hash is '#tooltips'
|
||||
setTimeout((=> @$('#tooltip').tooltip('show')), 20)
|
||||
if hash is '#popovers'
|
||||
setTimeout((=> @$('#popover').popover('show')), 20)
|
||||
tags = [
|
||||
"ActionScript",
|
||||
"AppleScript",
|
||||
"Asp",
|
||||
"BASIC",
|
||||
"C",
|
||||
"C++",
|
||||
"Clojure",
|
||||
"COBOL",
|
||||
"ColdFusion",
|
||||
"Erlang",
|
||||
"Fortran",
|
||||
"Groovy",
|
||||
"Haskell",
|
||||
"Java",
|
||||
"JavaScript",
|
||||
"Lisp",
|
||||
"Perl",
|
||||
"PHP",
|
||||
"Python",
|
||||
"Ruby",
|
||||
"Scala",
|
||||
"Scheme"
|
||||
]
|
||||
@$('#tags').autocomplete({source: tags})
|
||||
if hash is '#autocomplete'
|
||||
setTimeout((=> @$('#tags').autocomplete("search", "t")), 20)
|
||||
@$('#slider-example').slider()
|
Loading…
Add table
Add a link
Reference in a new issue