-
Notifications
You must be signed in to change notification settings - Fork 1
/
osc.html
136 lines (104 loc) · 4.38 KB
/
osc.html
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>OscProb.js</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous" />
<link rel="stylesheet" href="plot_styles.css" />
<!-- d3.js -->
<script src="https://d3js.org/d3.v5.min.js"></script>
<!-- Local code -->
<script src="prob3/prob3.js"></script>
<script src="tools/plot.js"></script>
<script src="tools/OscUtils.js"></script>
<script src="tools/OscConstraintWidget.js"></script>
<script src="tools/OscParamTableWidget.js"></script>
<script src="OscProbPlot.js"></script>
<script src="oscapp.js"></script>
<!-- MathJax -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
jax: ["input/TeX","output/SVG"],
extensions: [],
TeX: {
extensions: ["noErrors.js","noUndefined.js"]
},
skipStartupTypeset: true
});
MathJax.Hub.Register.StartupHook("End",function () {
var load_msg_elem = document.getElementById("mathjax_onload_message");
load_msg_elem.parentNode.removeChild(load_msg_elem);
var page_elem = document.getElementById("app_content");
page_elem.setAttribute("style","");
var app = new oscapp();
app.OscProbInit();
});
</script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-MML-AM_CHTML' async></script>
</head>
<body>
<h3 class="font-weight-light text-center text-lg-left mt-4 mb-0" id="mathjax_onload_message" >MathJax initializing...</h3>
<div class="container" id="app_content" style="display:none;">
<h1 class="font-weight-light text-center text-lg-left mt-4 mb-0">Oscillation Parameter Values</h1>
<hr class="mt-2 mb-5">
<h3 class="font-weight-light text-center text-lg-left mt-2 mb-1">Click on the plots to choose values</h3>
<hr class="mt-1 mb-2">
<div class="row" id="ConstraintControls"></div>
<h5 class="font-weight-light text-center text-lg-left mt-2 mb-1">Modify (plot or inline) or remove chosen values</h5>
<hr class="mt-1 mb-2">
<div class="row" >
<div class="col-12" id="OscParamTable" ></div>
</div>
<div class="row mt-2 mb-2">
<button id="add_btn" type="button" class="btn btn-primary ml-3 mr-3">Add series</button>
<button id="clear_btn" type="button" class="btn btn-primary ml-3 mr-3">Clear all</button>
</div>
<hr class="mt-2 mb-5">
<div class="row">
<div class="col-2">
<label for="neutrino_selector">Neutrino:</label>
<div id="neutrino_selector" class="btn-group">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">
Neutrino
</button>
<div class="dropdown-menu">
<p data-nutype="nu" class="dropdown-item">Neutrino</p>
<p data-nutype="nubar" class="dropdown-item">Anti-Neutrino</p>
</div>
</div>
</div>
<div class="col-6">
<div class="form-group">
<label for="baseline_input">Experimental baseline in km</label>
<input type="text" class="form-control" id="baseline_input" value="1300">
</div>
</div>
</div>
<div class="row">
<div class="col">
<div id="OscProbPlot_mu" style=""></div>
</div>
<div class="row">
<div class="col">
<div id="OscProbPlot_e" style=""></div>
</div>
</div>
</div>
</div>
<!--end container -->
<!--Bootstrap scripts-->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
</body>
</html>