Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function makeSidebar() {
- var html = "";
- for (var i=0; i<gmarkers.length; i++) {
- if (!gmarkers[i].isHidden()) {
- html += '<a href="javascript:myclick(' + i + ')">' + gmarkers[i].myteam + '</a><br>';
- }
- }
- document.getElementById("side_bar").innerHTML = html;
- }
- function compare(a, b) {
- if (a.myteam < b.myteam) return -1;
- if (a.myteam > b.myteam) return 1;
- return 0;
- }
- gmarkers.sort(compare);
- function makeSidebar() {
- var html = "";
- for (var i=0; i<gmarkers.length; i++) {
- if (!gmarkers[i].isHidden()) {
- html += '<a href="javascript:myclick(' + i + ')">' + gmarkers[i].myteam + '</a><br>';
- }
- }
- document.getElementById("side_bar").innerHTML = html;
- }
Add Comment
Please, Sign In to add comment