-
Notifications
You must be signed in to change notification settings - Fork 0
/
temp.html
168 lines (130 loc) · 5.26 KB
/
temp.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Alchemy</title>
<link rel="stylesheet" type="text/css" href="static/styles.css" />
<style type="text/css">
#list { margin-left:500px;}
#list ul {
list-style-image: url("static/bulletin.png") ; color:#eee; font-size:15px; }
#list ul li { line-height:40px; }
iframe {
width: 150px;
height: 150px;
margin: 0 auto;
border-color: #718693;
border-width:0px;
}</style>
<link rel="stylesheet" href="static/style2.css" type="text/css" media="screen">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript">
jQuery(window).load(function() {
$("#nav > li > a").click(function (e) { // binding onclick
if ($(this).parent().hasClass('selected')) {
$("#nav .selected div div").slideUp(100); // hiding popups
$("#nav .selected").removeClass("selected");
} else {
$("#nav .selected div div").slideUp(100); // hiding popups
$("#nav .selected").removeClass("selected");
if ($(this).next(".subs").length) {
$(this).parent().addClass("selected"); // display popup
$(this).next(".subs").children().slideDown(200);
}
}
e.stopPropagation();
});
$("body").click(function () { // binding onclick to body
$("#nav .selected div div").slideUp(100); // hiding popups
$("#nav .selected").removeClass("selected");
});
});
</script>
</head>
<body>
<div id="page">
<h1>ALCHEMY</h1>
<form id="searchForm" method="get" action="/">
<fieldset>
<input id="s" type="text" name="input"/>
<input type="submit" value="Submit" id="submitButton" onclick="redirect()"/>
<div id="searchInContainer">
<input type="radio" name="check" value="place1" id="place1" checked />
<label for="place1" style='span
'>New York</label>
<input type="radio" name="check" value="place2" id="place2" />
<label for="place2">Banglore</label>
<input type="radio" name="check" value="place3" id="place3" />
<label for="place3">Afghanistan</label>
</div>
<!--
<ul class="icons">
<li class="web" title="Web Search" data-searchType="web">Web</li>
<li class="images" title="Image Search" data-searchType="images">Images</li>
<li class="news" title="News Search" data-searchType="news">News</li>
<li class="videos" title="Video Search" data-searchType="video">Videos</li>
</ul> -->
</fieldset>
</form>
<div id="resultsDiv"><div class="pageContainer">
{{values1['query'] if defined('values1') else ''}}
{{values1['sentiment'] if defined('values1') else ''}}
</div>
</div>
<div class="example">
<div class="menu">
<span>
<ul id="nav">
<li><a href="#"><img src="static/arrow.png" style="height:30px;width:30px;"></a>
<div class="subs">
<div>
<ul>
<li><h3>Expanded Sentinents</h3>
<ul>
<li><a href="#">
{{values1['var2a'] if defined('values1') else ''}}
</a></li>
<li><a href="#">
{{values1['var2b'] if defined('values1') else ''}}
</a></li>
<li><a href="#">
{{values1['var2c'] if defined('values1') else ''}}
</a></li>
<li><a href="#">
{{values1['var2d'] if defined('values1') else ''}}
</a></li>
<li><a href="#">
{{values1['var2e'] if defined('values1') else ''}}
</a></li>
</ul>
</li>
</ul>
</div>
</div>
</li>
</span>
</div>
</div>
<div class="loader"> <iframe src="loader.html" style='display:block;'></iframe></div>
</div>
<br><br>
<div id="list">
<ul>
<li>Java</li>
<li>.NET</li>
<li>C++</li>
<li>PHP</li>
</ul>
</div>
<br>
<!-- It would be great if you leave the link back to the tutorial. Thanks! -->
<p class="credit"><a href="#">Powered by Bluemix</a></p>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="static/script.js"></script>
<script type="text/javascript" >
function redirect(){
$('.loader').show();
}
</script>
</body>
</html>