head_javascript.tt2 2.87 KB
Newer Older
1
<!-- head_javascript.tt2 -->
2
3
4
5
[%#
## DEVELOPMENT WARNING
## Don't add javascript to this file, except if you need to initialize
## variables using TT2 parsing.
6
## Use the js/sympa.js file instead of writing your scripts.
sikeda's avatar
sikeda committed
7
## This script only contains variable initializations.
8
9
10
#%]
<script>
<!--
sikeda's avatar
sikeda committed
11
[%# A few configuration settings and miscellaneous vars. ~%]
12
var sympa = {
13
14
    backText:           '[%"Back"|loc|escape_cstr%]',
    calendarButtonText: '[%"Calendar"|loc|escape_cstr%]',
sikeda's avatar
sikeda committed
15
    calendarFirstDay:   0,
16
17
18
19
20
21
22
23
24
25
    closeText:          '[%"Close"|loc|escape_cstr%]',
    dayNames:           '[%"Sunday:Monday:Tuesday:Wednesday:Thursday:Friday:Saturday"|loc|escape_cstr%]'.split(":"),
    dayNamesMin:        '[%"Su:Mo:Tu:We:Th:Fr:Sa"|loc|escape_cstr%]'.split(":"),
    home_url:           '[% path_cgi | escape_cstr %]/',
    icons_url:          '[% icons_url | escape_cstr %]',
    lang:               '[% lang | escape_cstr %]',
    loadingText:        '[%"Please Wait..."|loc|escape_cstr%]',
    monthNamesShort:    '[%"Jan:Feb:Mar:Apr:May:Jun:Jul:Aug:Sep:Oct:Nov:Dec"|loc|escape_cstr%]'.split(":"),
    openInNewWinText:   '[%"Open in a new window"|loc|escape_cstr%]',
    resetText:          '[%"Reset"|loc|escape_cstr%]'
26
};
sikeda's avatar
sikeda committed
27
28
[%# Variable for backward compatibility. ~%]
var lang = '[% lang %]';
29
30
31
//-->
</script>

sikeda's avatar
sikeda committed
32
[%# Now retrieving the javascript files ~%]
IKEDA Soji's avatar
IKEDA Soji committed
33
<script src="[% static_content_url %]/js/jquery.js?v3.6.0"></script>
34
35
<script src="[% static_content_url %]/js/jquery-migrate.js?v1.4.1"></script>
<script src="[% static_content_url %]/js/jquery-ui/jquery-ui.js?v1.12.1"></script>
36
[%# jqPlot ~%]
37
38
39
40
41
<script src="[% static_content_url %]/js/jqplot/jquery.jqplot.min.js?v1.0.8"></script>
<script src="[% static_content_url %]/js/jqplot/jqplot.categoryAxisRenderer.min.js?v1.0.8"></script>
<script src="[% static_content_url %]/js/jqplot/jqplot.barRenderer.min.js?v1.0.8"></script>
<script src="[% static_content_url %]/js/jqplot/jqplot.canvasAxisTickRenderer.min.js?v1.0.8"></script>
<script src="[% static_content_url %]/js/jqplot/jqplot.canvasTextRenderer.min.js?v1.0.8"></script>
42
43
44
[%# Color picker ~%]
<script src="[% static_content_url %]/js/jquery-minicolors/jquery.minicolors.min.js?v2.3.1"></script>
[%# Sympa ~%]
45
<script src="[% static_content_url %]/js/sympa.js?v[% version %]"></script>
46

sikeda's avatar
sikeda committed
47
[%# Foundation and other ui adaptation ~%]
48
<!--[if lt IE 9]>
Luc Didry's avatar
Luc Didry committed
49
    <script type="text/javascript" src="[% static_content_url %]/js/html5shiv/html5shiv.js?v3.7.2"></script>
50
<![endif]-->
51
52
<script type="text/javascript" src="[% static_content_url %]/js/respondjs/respond.min.js?v1.4.2"></script>
<script src="[% static_content_url %]/js/foundation/js/vendor/what-input.js?v4.2.0"></script>
53
<script src="[% static_content_url %]/js/foundation/js/foundation.min.js?v6.4.2"></script>
54
55
56
57
58
59
60
61
62
63

[% IF use_html_editor -%]
<script src="[% html_editor_url %]"></script>
<script>
<!--
[% html_editor_init %];
//-->
</script>
[% END -%]
<!-- end head_javascript.tt2 -->