-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalpha.html
More file actions
89 lines (78 loc) · 4.35 KB
/
alpha.html
File metadata and controls
89 lines (78 loc) · 4.35 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
<div class="alpha-controls" id="alpha-controls">
<div class="letter" id="see-all" onclick="alpha.search('');">See All</div>
<div class="letter" id="letter-a" onclick="alpha.search('a');">a</div>
<div class="letter" id="letter-b" onclick="alpha.search('b');">b</div>
<div class="letter" id="letter-c" onclick="alpha.search('c');">c</div>
<div class="letter" id="letter-d" onclick="alpha.search('d');">d</div>
<div class="letter" id="letter-e" onclick="alpha.search('e');">e</div>
<div class="letter" id="letter-f" onclick="alpha.search('f');">f</div>
<div class="letter" id="letter-g" onclick="alpha.search('g');">g</div>
<div class="letter" id="letter-h" onclick="alpha.search('h');">h</div>
<div class="letter" id="letter-i" onclick="alpha.search('i');">i</div>
<div class="letter" id="letter-j" onclick="alpha.search('j');">j</div>
<div class="letter" id="letter-k" onclick="alpha.search('k');">k</div>
<div class="letter" id="letter-l" onclick="alpha.search('l');">l</div>
<div class="letter" id="letter-m" onclick="alpha.search('m');">m</div>
<div class="letter" id="letter-n" onclick="alpha.search('n');">n</div>
<div class="letter" id="letter-o" onclick="alpha.search('o');">o</div>
<div class="letter" id="letter-p" onclick="alpha.search('p');">p</div>
<div class="letter" id="letter-p" onclick="alpha.search('q');">q</div>
<div class="letter" id="letter-r" onclick="alpha.search('r');">r</div>
<div class="letter" id="letter-s" onclick="alpha.search('s');">s</div>
<div class="letter" id="letter-t" onclick="alpha.search('t');">t</div>
<div class="letter" id="letter-u" onclick="alpha.search('u');">u</div>
<div class="letter" id="letter-v" onclick="alpha.search('v');">v</div>
<div class="letter" id="letter-w" onclick="alpha.search('w');">w</div>
<div class="letter" id="letter-x" onclick="alpha.search('x');">x</div>
<div class="letter" id="letter-y" onclick="alpha.search('y');">y</div>
<div class="letter" id="letter-z" onclick="alpha.search('z');">z</div>
</div>
<script>
(function() {
window.alpha = window.alpha || {};
alpha.globals = {
"alphaControlsId": "alpha-controls",
"alphaActiveLetterAttr": "data-active-letter"
}
alpha.clearSelectedLetter = function () {
var alphaControls = document.getElementById(alpha.globals.alphaControlsId);
var activeLetterId = alphaControls.getAttribute(alpha.globals.alphaActiveLetterAttr);
if(activeLetterId) {
var activeLetter = document.getElementById(activeLetterId);
if(activeLetter) {
activeLetter.className = activeLetter.className.split(' ')[0];
}
}
};
alpha.search = function(letter) {
var alphaControls = document.getElementById(alpha.globals.alphaControlsId);
var currentLetterId = "letter-" + letter;
var activeLetterId = alphaControls.getAttribute(alpha.globals.alphaActiveLetterAttr);
var searchKeyword, searchKeywordDefaultValue, searchFilter, searchBoxInput, updateParts, filter;
alpha.clearSelectedLetter();
if(letter === "" || letter.length === 0 || currentLetterId === activeLetterId) {
filter = "";
alphaControls.setAttribute(alpha.globals.alphaActiveLetterAttr, "");
}
else {
//if not the same letter - set a new letter
var currentLetter = document.getElementById(currentLetterId);
currentLetter.className = currentLetter.className + " active";
alphaControls.setAttribute(alpha.globals.alphaActiveLetterAttr, currentLetterId);
filter = "LastName:" + letter + "*";
}
updateParts = { k: filter, s: "" };
ajaxNavigate.update(null, updateParts);
}
})();
</script><html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><head>
<!--[if gte mso 9]><xml>
<mso:CustomDocumentProperties>
<mso:i0352c37ab274162b438da5dfcdbe0a6 msdt:dt="string">Project Documentation|4d0ce455-6d67-44a6-90b4-85260c7c194c</mso:i0352c37ab274162b438da5dfcdbe0a6>
<mso:TaxCatchAll msdt:dt="string">5;#Project Documentation|4d0ce455-6d67-44a6-90b4-85260c7c194c</mso:TaxCatchAll>
<mso:_dlc_DocId msdt:dt="string">EHC7P3542PFA-1220750779-55</mso:_dlc_DocId>
<mso:_dlc_DocIdItemGuid msdt:dt="string">d7f256fb-7850-456a-ac35-c8457fe2896a</mso:_dlc_DocIdItemGuid>
<mso:_dlc_DocIdUrl msdt:dt="string">http://sharepoint/search/_layouts/15/DocIdRedir.aspx?ID=EHC7P3542PFA-1220750779-55, EHC7P3542PFA-1220750779-55</mso:_dlc_DocIdUrl>
</mso:CustomDocumentProperties>
</xml><![endif]-->
</head>