forked from jupiterjs/jmvcdoc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjmvcdoc.js
39 lines (37 loc) · 1.34 KB
/
jmvcdoc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
steal.plugins('jquery/controller','jquery/controller/history',
'jquery/view/ejs',
'jquery/model',
'jquery/lang/json',
'jquery/dom/cookie',
'phui/filler',
'phui/positionable',
'phui/menuable')
.resources(//'jsonp',
'helpers','highlight','languages/javascript','languages/www')
.models('favorites','search')
.controllers("documentation","iframe","demo")
.views('//jmvcdoc/views/attribute.ejs',
'//jmvcdoc/views/class.ejs',
'//jmvcdoc/views/constructor.ejs',
'//jmvcdoc/views/favorite.ejs',
'//jmvcdoc/views/function.ejs',
'//jmvcdoc/views/page.ejs',
'//jmvcdoc/views/results.ejs',
'//jmvcdoc/views/top.ejs',
'//jmvcdoc/views/iframe/init.ejs',
'//jmvcdoc/views/iframe/menu.ejs',
'//jmvcdoc/views/demo/init.ejs')
.then(function(){
var pageNameArr = window.location.href.match(/docs\/(.*)\.html/),
pageName = pageNameArr && pageNameArr[1]
if (pageName && location.hash == "") {
window.location.hash = "&who=" + pageName
}
})
if(typeof(COMMENTS_LOCATION) != "undefined"){
steal.css("http://mediacdn.disqus.com/1066/build/themes/narcissus.css?1281560657&",
"http://mediacdn.disqus.com/1066/styles/embed/thread.css?")
if (window.location.protocol == "file:" || window.location.hostname == "localhost") { // development
window.disqus_developer = 1
}
}