searchbox.html
4.9 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
$var title: Searchbox
$var mod = 'searchbox';
<script language="javascript">
function toggle() {
var ele = document.getElementById("toggleText");
var text = document.getElementById("displayText");
if(ele.style.display == "block") {
ele.style.display = "none";
text.innerHTML = "custom";
}
else {
ele.style.display = "block";
text.innerHTML = "random";
}
}
</script>
<form action="apprec" enctype="multipart/form-data" method="post" name="weboptions">
<fieldset>
<legend>Your packages</legend>
<div>
<label>Upload file</label><input type="file" id="pkgs_file" name="pkgs_file" size="18"/>
</div>
<div>
<label>Packages list</label><textarea rows="2" cols="33" name="pkgs_list" id="pkgs_list"></textarea>
</div>
<div style="text-align: right;"><input type="submit"></div>
</fieldset>
<div id="toggleText" style="display: none">
<fieldset>
<legend>General</legend>
<div>
<label><input type="hidden">Profile size:</label>
</div>
<div>
<label class="special"><input type="text" name="profile_size" value="10" size="4"></label>
</div>
<div>
<label><input type="hidden">Recommendations:</label>
</div>
<div>
<label class="special"><input type="text" name="limit" value="10" size="4"></label>
</div>
<div>
<label><input type="hidden">Weighting:</label>
</div>
<div>
<label class="special"><input type="radio" name="weight" value="BM25" checked="checked"> BM25</label>
</div>
<div>
<label class="special"><input type="radio" name="weight" value="trad"> Traditional</label>
</div>
<div>
<label><input type="hidden">Strategy:</label>
</div>
<div>
<label class="special"><input type="radio" name="strategy" value="content" checked="checked"> Content-based</label>
</div>
<div>
<label class="special"><input type="radio" name="strategy" value="collab"> Collaborative</label>
</div>
<div>
<label class="special"><input type="radio" name="strategy" value="hybrid"> Hybrid</label>
</div>
</fieldset>
<fieldset>
<legend>Tuning up</legend>
<div>
<label><input type="hidden" class="DEPENDS ON strategy BEING content OR strategy BEING hybrid">Content representation:</label>
</div>
<div>
<label class="special"><input type="radio" name="content" value="tag" class="DEPENDS ON strategy BEING content OR strategy BEING hybrid"> tag</label>
</div>
<div>
<label class="special"><input type="radio" name="content" value="desc" class="DEPENDS ON strategy BEING content OR strategy BEING hybrid"> description</label>
</div>
<div>
<label class="special"><input type="radio" name="content" value="full" class="DEPENDS ON strategy BEING content OR strategy BEING hybrid"> both</label>
</div>
<div>
<label><input type="hidden" class="DEPENDS ON strategy BEING collab OR strategy BEING hybrid">Clustering:</label>
</div>
<div>
<label class="special"><input type="radio" name="cluster" value="yes" class="DEPENDS ON strategy BEING collab OR strategy BEING hybrid"> yes</label>
</div>
<div>
<label class="special"><input type="radio" name="cluster" value="no" class="DEPENDS ON strategy BEING collab OR strategy BEING hybrid"> no</label>
</div>
<div>
<label><input type="hidden" class="DEPENDS ON strategy BEING hybrid">Neighborhood:</label>
</div>
<div>
<label class="special"><input type="text" name="neighbours" class="DEPENDS ON strategy BEING hybrid" value="50" size="4"></label>
</div>
<div>
<label><input type="hidden" class="DEPENDS ON strategy BEING hybrid">Personal profile:</label>
</div>
<div>
<label class=special><input type="checkbox" name="profile_desktop" class="DEPENDS ON strategy BEING hybrid" > Desktop</label>
</div>
<div>
<label class=special><input type="checkbox" name="profile_admin" class="DEPENDS ON strategy BEING hybrid" > Admin</label>
</div>
<div>
<label class=special><input type="checkbox" name="profile_devel" class="DEPENDS ON strategy BEING hybrid" > Devel</label>
</div>
<div>
<label class=special><input type="checkbox" name="profile_science" class="DEPENDS ON strategy BEING hybrid" > Science</label>
</div>
<div>
<label class=special><input type="checkbox" name="profile_arts" class="DEPENDS ON strategy BEING hybrid" > Arts</label>
</div>
</fieldset>
<div style="text-align: right;"><input type="submit"></div>
</div>
Want to try a <a id="displayText"
href="javascript:toggle();">custom</a> query setup?
</form>