-
Notifications
You must be signed in to change notification settings - Fork 241
Expand file tree
/
Copy pathmodlmf-index.html
More file actions
151 lines (128 loc) · 4.37 KB
/
Copy pathmodlmf-index.html
File metadata and controls
151 lines (128 loc) · 4.37 KB
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
{% extends "homepage.html" %}
{% block content %}
<div>
{{ KNOWL_INC('dq.modlmf.extent') }}
</div>
<style type="text/css">
.error_message {
padding: 4px;
color: {{color.red}};
font-size: 120%;
font-weight: bold;
margin: 20px;
}
</style>
{% if err_msg %}
<p class="error_message">
{{err_msg}}
</p>
<p>
<input type=button value="Search again" onClick="history.go(-1)">
</p>
{% endif %}
<h2> Browse {{ KNOWL('modlmf.definition', title='mod ℓ modular forms') }}</h2>
<p>
By {{ KNOWL('modlmf.characteristic', title='characteristic') }}:
{% for rnge in info.characteristic_list %}
<a href="?characteristic={{rnge}}">{{rnge}}</a>
{% endfor %}
</p>
<p>
By {{ KNOWL('modlmf.level', title='Level') }}:
{% for rnge in info.level_list %}
<a href="?level={{rnge}}">{{rnge}}</a>
{% endfor %}
</p>
<p>
By {{ KNOWL('modlmf.weight_grading', title='Weight grading') }}:
{% for rnge in info.weight_list %}
<a href="?weight_grading={{rnge}}">{{rnge}}</a>
{% endfor %}
</p>
<p>
Some of our favorite {{ KNOWL('modlmf.definition', title="mod ℓ modular forms") }}:
{% for rnge in info.label_list%}
<a href="?label={{rnge}}"> {{rnge}} </a>
{% endfor %}
</p>
<p>A <a href={{url_for('.random_modlmf')}}>random mod ℓ modular form</a> from the database.
<br>
</p>
<h2> Find a specific {{ KNOWL('modlmf.definition', title='mod ℓ modular form') }} by {{KNOWL('modlmf.label', title='label')}}</h2>
<form>
<input type='text' name='label' placeholder='2.1.1.0.1.1'>
<button type='submit'>Label</button>
<br><span class="formexample">e.g. 2.1.1.0.1.1</span>
</form>
<h2> Search</h2>
<form>
<button type='submit' value='Search'>Search</button>
<table>
<tr>
<td align= right>{{ KNOWL('modlmf.characteristic', title='Field characteristic') }}:</td>
<td><input type='text' name='characteristic' placeholder='3' size=10>
<td><span class="formexample"> e.g. 3 </td>
</tr>
<tr>
<td align= right>{{ KNOWL('modlmf.deg', title='Field degree') }}:</td>
<td><input type='text' name='deg' placeholder='1' size=10>
<td><span class="formexample"> e.g. 1 </td>
</tr>
<tr>
<td align= right>{{ KNOWL('modlmf.level', title='Level') }}:</td>
<td><input type='text' name='level' placeholder='3' size=10>
<td><span class="formexample"> e.g. 3 or 40-100</td>
</tr>
</tr>
<tr>
<td align= right>{{ KNOWL('modlmf.weight_grading', title='Weight grading') }}:</td>
<td><input type='text' name='weight_grading' placeholder='2' size=10>
<td><span class="formexample"> e.g. 2</td>
</tr>
</tr>
<tr>
<td align= right>{{ KNOWL('modlmf.dirchar', title='Character label') }}:</td>
<td><input type='text' name='dirchar' placeholder='1.1' size=10>
<td><span class="formexample"> e.g. 1.1</td>
</tr>
<tr>
<td align= right>Group:</td><td> <select name='group'>
<option value="gamma0" selected >Gamma_0</option>
<option value="gamma1">Gamma_1</option>
</select></td>
</tr>
</table>
<table id="a_n">
<tr>
<td> {{KNOWL('modlmf.q_expansion', title='Coefficient')}} of <i>q<sup>n</sup></i> for <i>n=</i><input type='text' name='index_coeff' size=5 placeholder=5> is <input type='text' name='req_coeff' size='3' placeholder=3 ></td><td> as an {{KNOWL('finite_fields.structure', title='element of <i><span style="text-decoration: overline"> 𝔽</span><sub>ℓ</sub></i>')}}
</td><td>
<button type='button' id='more_modp_button'>more</button>
</td>
</tr>
</table>
<!--<table>-->
<!--<tr>-->
<!--<td colspan=3 align= right>Up to twists: <select name='twist'>-->
<!-- <option value="no" selected="no" >no</option>-->
<!-- <option value="yes">yes</option>-->
<!-- </select></td>-->
<!--</tr>-->
<!--</table>-->
<p>Maximum number of mod ℓ modular forms to display <input type='text' name='count' value=50 size='5'/></p>
</form>
<script>
//Try to get tbody first with jquery children. works faster!
var tbody = $('#a_n').children('tbody');
//Then if no tbody just select your table
var table = tbody.length ? tbody : $('#a_n');
$('#more_modp_button').click(function(){
//Add row
table.append("<tr><td align='right'><i>n=</i><input type='text' name='index_coeff' size=5 placeholder=5> is <input type='text' name='req_coeff' size=3 placeholder=3></td><td><button type='button' value='Delete Row' onclick='deleteRow(this)'>less</button></td></tr>");
return false;
})
function deleteRow(btn) {
var row = btn.parentNode.parentNode;
row.parentNode.removeChild(row);
}
</script>
{% endblock %}