-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.htm
36 lines (33 loc) · 1.28 KB
/
index.htm
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Wikiquote API and GUI</title>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<link rel="stylesheet" media="screen" type="text/css" href="wiki-api-gui-styles.css" />
<script type="text/javascript" src="wikiquote-api-gui.js"></script>
<script>
$(document).ready(function() {
var myhandler = function(thequote){
$('#quote-of-day').html(thequote);
}
vpr={};
WikiquoteApi = new WikiquoteApiClass(vpr,$);
WikiquoteApi.selfConstruct({initsearch:'Einstein',
waiticon:'<span id="spinner" class="gnlv-blink">working!<span>',
thumbWidth:150,
containerDiv:'#quote-container',
clickHandler: myhandler
});
});
</script>
</head>
<body>
<h2>Quote of The Day</h2>
<div id="quote-of-day" style="width:50%;height:auto;border:thin dashed orange;padding:10px;font-size:23px;font-family:Impact, Charcoal;">pithy quote</div>
<h2>One DIV in your application holds the gui:</h2>
<div id="quote-wrapper" style="width:50%;height:500px;border:thin dashed orange;padding:5px;">
<div id="quote-container" class="gnlv-wikidiv"></div>
</div>
</body>
</html>