-
Notifications
You must be signed in to change notification settings - Fork 0
/
teamsTopDivs.php
executable file
·64 lines (55 loc) · 2.32 KB
/
teamsTopDivs.php
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
<div class="row">
<div class='small-12' id='titleBar'>
<a href="/ui/home">Home</a> |
<a href="/ui/wallet">Wallet</a> |
<span class='fi-refresh'> </span><a href="/ui/team" style="color: #000;">Teams</a>
</div>
</div>
<div id='helpPrompt' data-dropdown='helpMenu' data-options='is_hover:true; hover_timeout: 5000'>Help/FAQ</div>
<ul id='helpMenu' class='f-dropdown alignRight' data-dropdown-content>
<li><a href='/ui/home-faq'>FAQ</a></li>
<li>Tutorial (work in progress)</li>
<li><a href='https://github.com/siosonel/tatag-ui/issues'>Feature Requests, Bugs</a></li>
<li><a href='https://tatag.cc/api/ref/docs.html'>API Documentation</a></li>
<li><a href='https://github.com/siosonel/tatag-api/'>API source code</a></li>
<li><a href='https://github.com/siosonel/tatag-ui/'>Wallet source code</a></li>
</ul>
<style>
</style>
<div id='viewTypeDiv' class='row'>
<button id='my-teams' class='small-4 tiny'>My Teams</button>
<button id='teams-admin' class='small-4 tiny'>Admin</button>
<button id='teams-search' class='small-4 tiny'>Search</button>
<script>
$(document).ready(function () {
history.replaceState({}, "team", location.pathname + location.hash);
var view = location.pathname.replace("\/ui\/","");
$('#'+view).css({'color': '#ff0', 'opacity': 1, 'font-weight':700});
$('#viewTypeDiv').click(function resetTeamView (e) {
if (e.target.id=='addBrand') app.brands.clickHandler(e);
else window.location.href = window.location.origin +"/ui/"+ e.target.id;
});
});
</script>
</div>
<!--<div class='row'>
<div class='columns small-6'>
<select id='viewType'>
<option value='my-teams'>My teams</option>
<option value='teams-admin'>Administer</option>
<option value='teams-listing'>Brand Listing</option>
</select>
</div>
<div class='columns small-6'>
<button id='addBrand' class='right tiny'>+New Brand</button></div>
</div>
<script>
$(document).ready(function () { console.log(location.pathname);
history.replaceState({}, "team", location.pathname); console.log(location.pathname.replace("\/ui\/",""));
$('#viewType').val(location.pathname.replace("\/ui\/",""))
.change(function resetTeamView (e) {
window.location.href = window.location.origin +"/ui/"+ $('#viewType').val();
});
});
</script>
</div>-->