-
Notifications
You must be signed in to change notification settings - Fork 10
/
cis89lists1.html
106 lines (101 loc) · 2.94 KB
/
cis89lists1.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
<!DOCTYPE html>
<html>
<head>
<title>cis89lists1 | Wolfgang C. Strack</title>
<script src="js/common-includes.js" type="text/javascript" charset="utf-8"></script>
<script>
(function() {
function defer_jQuery(method) {
if (window.jQuery)
method(jQuery);
else
setTimeout(function() { defer_jQuery(method); }, 50);
}
function main($) {
$(document).ready(function() {
var ordered_list_styles = [
'armenian', 'cjk-ideographic', 'decimal',
'georgian', 'hiragana', 'hiragana-iroha', 'katakana',
'katakana-iroha', 'lower-alpha', 'lower-greek',
'lower-roman', 'upper-alpha', 'upper-roman'
];
var unordered_list_styles = [
'square', 'circle', 'disc'
];
var i_o = 0;
var i_u = 0;
// every half second, change the ordered list list-style-type
// to the next style type in the array and loop indefinitely
window.setInterval(function() {
$("#assignment-lists ol").css("list-style-type", ordered_list_styles[i_o++]);
if (i_o >= ordered_list_styles.length) { i_o = 0; }
$("#assignment-lists ol ul").css("list-style-type", unordered_list_styles[i_u++]);
if (i_u >= unordered_list_styles.length) { i_u = 0; }
}, 500);
});
}
defer_jQuery(main);
})();
</script>
<style>
#assignment-lists ol {
list-style-type: katakana;
}
#assignment-lists ul {
list-style-type: none;
list-style-image: url(./images/plus.png);
}
#assignment-lists ol ul {
list-style-type: none;
list-style-image: none;
}
dd {
display: block;
margin-left: 40px;
}
</style>
</head>
<body>
<div class="content-container">
<section id="assignment-lists" class="content-column-left">
<h2>Ordered list with nested unordered lists:</h2>
<ol>
<li>much order</li>
<ul>
<li>hello world</li>
<li>rock star tech</li>
</ul>
<li>such list</li>
<li>very change</li>
<ul>
<li>waow so list</li>
<li>i kant</li>
</ul>
<li>so ol</li>
<li>wowe</li>
<ul>
<li>pls help</li>
<li>so html</li>
</ul>
</ol>
<br>
<h2>List with customized bullets:</h2>
<ul>
<li>such unorder</li>
<li>so plus</li>
<li>very url</li>
<li>waow</li>
<li>much custom</li>
</ul>
<br>
<h2>Description List:</h2>
<dl>
<dt>Doge</dt>
<dd><i><a href="https://upload.wikimedia.org/wikipedia/commons/2/20/Shiba_Inu.jpg" title="is Love">is Love</a></i></dd>
<dt>Doge</dt>
<dd><i><a href="https://upload.wikimedia.org/wikipedia/commons/5/58/Shiba_inu_taiki.jpg" title="is Life">is Life</a></i></dd>
</dl>
</section>
</div>
</body>
</html>