12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
;; a function <pagename>-action is called on POST
(define (index-action action)
(case (string->symbol action)
((filter)
(let ((target-type (s:get-input 'target-type))
(target-filter (s:get-input 'tfilter))
(target (s:get-input 'target)))
(s:session-var-set! "target-type" target-type)
(s:set! "tfilter" target-filter)
(s:session-var-set! "target" target)
(s:session-var-set! "target-filter" target-filter)))))
(define index:kickstart-junk
#<<EOF
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="" />
|
|
>
>
>
>
>
>
>
>
>
>
>
|
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
40
41
|
;; a function <pagename>-action is called on POST
(define (index-action action)
(case (string->symbol action)
((filter)
(let ((target-type (s:get-input 'target-type))
(target-filter (s:get-input 'tfilter))
(target (s:get-input 'target))
(row-or-col (s:get-input 'row-or-col)))
;; should not be using session vars for these, session vars are not multi-tab
;; resistant (thinking of you Jeff!)
(s:session-var-set! "row-or-col" (if (list? row-or-col)
(string-intersperse row-or-col ",")
row-or-col))
(s:session-var-set! "target-type" target-type)
(s:set! "tfilter" target-filter)
(s:session-var-set! "target" target)
(s:session-var-set! "target-filter" target-filter)))))
;;======================================================================
;; Below are the raw chunks of html, css and jquery stuff needed to make
;; html kickstart and other useful things work
;;======================================================================
(define index:kickstart-junk
#<<EOF
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="" />
|
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
EOF
#<<EOF
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
EOF
))
(define index:javascript
#<<EOF
<script type="text/javascript" src="/js/prettify.js"></script> <!-- PRETTIFY -->
<script type="text/javascript" src="/js/kickstart.js"></script> <!-- KICKSTART -->
EOF
)
|
<
|
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
EOF
#<<EOF
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
EOF
))
(define index:javascript
#<<EOF
<script type="text/javascript" src="/js/prettify.js"></script> <!-- PRETTIFY -->
<script type="text/javascript" src="/js/kickstart.js"></script> <!-- KICKSTART -->
EOF
)
|