@@ -19,15 +19,15 @@ class jqapi.Entry
1919 document .title = " #{ entry .title } - jQAPI" # set a new title
2020
2121 loadContent : (slug ) ->
22- $ .getJSON " / docs/entries/#{ slug} .json" , (data ) => # fetch from json file
22+ $ .getJSON " docs/entries/#{ slug} .json" , (data ) => # fetch from json file
2323 data .slug = slug
2424 @ parseEntry data # parse what was received
2525 jqapi .events .trigger ' entry:done' , [data] # let the app know that a new entry is loaded
2626 @el .removeClass ' loading'
2727
2828 parseEntry : (entry ) ->
2929 el = $ templates .entry (entry) # generate element from template
30-
30+
3131 # @insertCategories entry, el # generate and insert categories
3232 @ insertEntries entry, el # generate entries and insert
3333
@@ -36,7 +36,7 @@ class jqapi.Entry
3636 @ highlightCode ()
3737 @ adjustCodeHeight () # set equal heights for the code boxes
3838 @ fixLinks ()
39-
39+
4040 insertCategories : (entry , el ) ->
4141 catsEl = $ (' #categories' , el) # cache categories list
4242
@@ -143,7 +143,7 @@ class jqapi.Entry
143143 playH -= cssEl .height () if cssEl .length
144144 playH += 100 if playH < 100
145145 playH = 130 if playH < 0
146-
146+
147147 sandboxEl .children (' .play' ).height playH
148148
149149 fixLinks : ->
@@ -161,9 +161,9 @@ class jqapi.Entry
161161 if hrefArr[2 ] is ' api.jquery.com'
162162 href = hrefArr[hrefArr .length - 1 ]
163163 href = hrefArr[hrefArr .length - 2 ] if href .length is 0
164-
164+
165165 el .attr ' href' , " #p=#{ href} "
166-
166+
167167 buildLiveExamples : ->
168168 sandboxEls = $ (' .sandbox' , @el )
169169
@@ -178,5 +178,5 @@ class jqapi.Entry
178178 js : el .find (' .js pre' ).text ()
179179 css : el .find (' .css pre' ).text ()
180180 external :
181- js : [' / assets/jquery.js' ]
181+ js : [' assets/jquery.js' ]
182182 el : $ (' .play' , sandboxEl).text (' ' )
0 commit comments