-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
66 lines (65 loc) · 2.92 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="main.css" rel="stylesheet" type="text/css" />
<script src="https://cdn.firebase.com/js/client/2.0.2/firebase.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.16/vue.js"></script>
<script src="https://cdn.jsdelivr.net/momentjs/2.10.6/moment-with-locales.min.js"></script>
<script src="https://cdn.jsdelivr.net/momentjs/2.10.6/locales.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.4/moment-timezone-with-data.min.js"></script>
<link href='https://fonts.googleapis.com/css?family=Codystar|Raleway:400,500,300,700' rel='stylesheet' type='text/css'>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body id="app">
<header>
<h1 style="font-family: 'Codystar', cursive;"><i class='fa fa-clock-o'></i>TeamLine</h1>
<div id='time_key'>
<div v-for="level in color_levels" class='key_pill' style="background-color:{{level.color}}">{{level.name}}</div>
</div>
</header>
<div>
<table class="teamline_grid">
<tr v-for="user in users" style="background-color:{{ user.hour | time_color}}">
<template v-if="filtered.indexOf($index) != -1">
<td><img class="avatar" :src="user.avatar"/></td>
<td><div class="name">{{ user.name }}</div></td>
<td><div class="userdata_container"><div class='location'>{{ user.timezone }}</div>{{ user.time }}</div></td>
<td>
<div class="time_bar" v-on:mousemove.stop.prevent="showPercentage">
<div class="time_block" v-for="h in user.hours" style="background-color:{{ h | time_color}}">{{h}}</div>
</div>
</td>
</template>
</tr>
</table>
<div class="strength_container">
<div class="strength_cell" v-for="column in column_strength" >
<div class="strength_bubble" style="width:{{column*2}}px; height:{{10}}px; margin-left:-{{column*2/2}}px;"></div>
</div>
</div>
<div>{{percentage}}</div>
<br /><input type=range min=0 max=24 step=1 v-model="range" debounce="10">
<br /><select v-model="filtered" class="user_select" multiple>
<option v-for="user in users" v-bind:value="$index">{{user.name}}</option>
</select>
<br />
<template v-for="pallete in palletes">
<input type="radio" id="{{pallete.name}}" v-bind:value="$index" v-model="current_pallete">
<label for="{{pallete.name}}">{{pallete.name}}</label>
<table class='time_key_mini'>
<tr>
<td v-for="level in pallete.colors" class='key_pill_mini' style="background-color:{{level.color}}"></td>
<tr>
</table>
<br />
</template>
<br /><select v-model="user_group_idx">
<option v-for="group in user_groups" v-bind:value="$index">{{group.name}}</option>
</select>
</div>
<script src="main.js"></script>
</body>
</html>