-
Notifications
You must be signed in to change notification settings - Fork 1
/
head.inc.php
122 lines (100 loc) · 4.5 KB
/
head.inc.php
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php
require("./server.php");
$url = $_SERVER["SERVER_NAME"].$_SERVER["SCRIPT_NAME"];
if(preg_match("/dev/i",$url))
require("./server_dev.php");
if(preg_match("/test/i",$url))
require("./server_test.php");
$menu[$knowthyself] = 'class="active"';
?>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>TSX</title>
<!-- general css libs -->
<link href="<?php print $TSX_root; ?>/css/bootstrap.min.css" rel="stylesheet">
<link href="<?php print $TSX_root; ?>/css/bootstrap-dialog.css" rel="stylesheet">
<?php
//Load the appropriate css (nodejs and require would be preferable...)
switch($knowthyself){
case "desk" : { ?>
<!-- desk css libs -->
<link href="<?php print $TSX_root; ?>/css/style.min.css" rel="stylesheet"/>
<?php break;}
case "transcribe" : {?>
<!-- transcribe css libs -->
<link href="<?php print $TSX_root; ?>/css/codemirror.css" rel="stylesheet"/>
<link href="<?php print $TSX_root; ?>/css/merge.css" rel="stylesheet"/>
<link href="<?php print $TSX_root; ?>/css/show-hint.css" rel="stylesheet"/>
<!-- <link href="<?php print $TSX_root; ?>/css/medium.css" rel="stylesheet"/> -->
<?php break;}
default: {}
}
?>
<!-- tsx css -->
<link href="<?php print $TSX_root; ?>/css/tsx.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<!-- general js libs -->
<script src="<?php print $TSX_root; ?>/js/jquery.min.js"></script>
<script src="<?php print $TSX_root; ?>/js/bootstrap.min.js"></script>
<script src="<?php print $TSX_root; ?>/js/bootstrap-dialog.js"></script>
<script src="<?php print $TSX_root; ?>/js/jquery.validate.min.js"></script>
<script src="<?php print $TSX_root; ?>/js/jquery.cookie.js"></script>
<script src="<?php print $TSX_root; ?>/js/xml2json.js"></script>
<script src="<?php print $TSX_root; ?>/js/css.min.js"></script>
<script src='https://www.google.com/recaptcha/api.js'></script>
<!-- GA -->
<script type="text/javascript">
/*
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-61018046-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
*/
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-61018046-1', 'auto');
ga('send', 'pageview');
</script>
<!-------->
<?php
//Load the appropriate js (nodejs and require would be preferable...)
switch($knowthyself){
case "desk" : { ?>
<!-- desk js libs -->
<script src="<?php print $TSX_root; ?>/js/jstree.min.js"></script>
<?php break;}
case "transcribe" : {?>
<!-- transcribe js libs -->
<script src="<?php print $TSX_root; ?>/js/raphael-min.js"></script>
<script src="<?php print $TSX_root; ?>/js/jquery.mousewheel.min.js"></script>
<script src="<?php print $TSX_root; ?>/js/codemirror.js"></script>
<script src="<?php print $TSX_root; ?>/js/diff_match_patch.js"></script>
<script src="<?php print $TSX_root; ?>/js/merge.js"></script>
<script src="<?php print $TSX_root; ?>/js/show-hint.js"></script>
<script src="<?php print $TSX_root; ?>/js/xml.js"></script>
<script src="<?php print $TSX_root; ?>/js/htr/require.custom.js"></script>
<!-- <script src="<?php print $TSX_root; ?>/js/rangy-core.js"></script>
<script src="<?php print $TSX_root; ?>/js/rangy-classapplier.js"></script>
<script src="<?php print $TSX_root; ?>/js/undo.js"></script>
<script src="<?php print $TSX_root; ?>/js/medium.min.js"></script> -->
<?php break;}
default: {}
}
?>
<!-- tsx js -->
<script src="<?php print $TSX_root; ?>/js/tsx.js"></script>
</head>