|
|
@ -1,14 +1,8 @@
|
|
|
|
#= require views/pages/base
|
|
|
|
#= require views/pages/simple
|
|
|
|
|
|
|
|
|
|
|
|
class app.views.JqueryPage extends app.views.BasePage
|
|
|
|
class app.views.JqueryPage extends app.views.SimplePage
|
|
|
|
@demoClassName: '_jquery-demo'
|
|
|
|
@demoClassName: '_jquery-demo'
|
|
|
|
|
|
|
|
|
|
|
|
prepare: ->
|
|
|
|
|
|
|
|
for el in @findAllByClass 'syntaxhighlighter'
|
|
|
|
|
|
|
|
language = if el.classList.contains('javascript') then 'javascript' else 'markup'
|
|
|
|
|
|
|
|
@highlightCode el, language
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
afterRender: ->
|
|
|
|
afterRender: ->
|
|
|
|
# Prevent jQuery Mobile's demo iframes from scrolling the page
|
|
|
|
# Prevent jQuery Mobile's demo iframes from scrolling the page
|
|
|
|
for iframe in @findAllByTag 'iframe'
|
|
|
|
for iframe in @findAllByTag 'iframe'
|
|
|
|