This repository has been archived by the owner on Mar 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
99 lines (97 loc) · 4.35 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
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
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<title>Sage | Teaching Tips from CS Mentors</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Lato|Nunito" rel="stylesheet">
<link rel="stylesheet" href="thirdparty/normalize.css">
<link rel="stylesheet" href="thirdparty/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/skeleton.css">
<link rel="stylesheet" href="css/thematic.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/tip.css">
</head>
<body>
<div id="app">
<div class="nav">
<div v-on:click="resetGlobalState()" class="title logo">Sage</div>
<div class="search-container" :class="{active: globalState.showSearch}">
<label for="search-input">
<i class="fa fa-search" aria-hidden="true"></i>
</label>
<input v-model="keywords" id="search-input" v-on:keyup.enter="runSearch()" placeholder="Search...">
<div class="title nav-title">
<span v-on:click="globalState.showSearch = true" class="show-search">
<i class="fa fa-arrow-left" aria-hidden="true"></i>
<i class="show-search fa fa-search fa-2x" aria-hidden="true"></i>
</span>
<h4>Tips {{tipLabel}}</h4>
</div>
</div>
</div>
<div class="menu">
<a v-on:click.stop.prevent="toggleMenu" class="jump-to" :class="{active: showMenu}" href="#" v-html="toggleLabel"></a>
<div class="menu-content" :class="{active: showMenu}">
<div v-for="category in categories">
<h5 class="jump-title">{{category.title}}</h5>
<ul>
<li class="jump" v-on:click="jump(sub)" v-for="sub in category.sub">{{sub}}<span class="arrow">></span></li>
</ul>
</div>
</div>
</div>
<div class="content">
<div v-if="globalState.showFlow" class="flow-container" :class="{flipped: frontFlipping}">
<div class="flow-flip">
<div class="front">
<div class="full-height" v-if="useFront">
<h4 class="flow-q">{{currPoint.text}}</h4>
<div v-if="currPointId != 1" v-on:click.stop="flowNext()" class="back-button"><i class="fa fa-repeat" aria-hidden="true"></i> Restart</div>
<div class="flow-options">
<a class="btn flow-button" v-for="option in currPoint.options" v-on:click.stop="flowNext(option)">
<div class="option-text">{{option.text}}</div>
<div v-if="option.subtext" class="option-sub">{{option.subtext}}</div>
</a>
</div>
</div>
</div>
<div class="back">
<div class="full-height" v-if="!useFront">
<h4 class="flow-q">{{currPoint.text}}</h4>
<div v-if="currPointId != 1" v-on:click.stop="flowNext()" class="back-button"><i class="fa fa-repeat" aria-hidden="true"></i> Restart</div>
<div class="flow-options">
<a class="btn flow-button" v-for="option in currPoint.options" v-on:click.stop="flowNext(option)">
<div class="option-text">{{option.text}}</div>
<div v-if="option.subtext" class="option-sub">{{option.subtext}}</div>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="tipList" v-if="globalState.showTips">
<div class="tip-container" v-for="tip in filteredTips()">
<div class="tip-title">{{tip.title}}</div>
<div class="tip-subtext-container">
<div class="tip-subtext" :class="{subtext2: subtext.level == 2}" v-for="subtext in tip.subtexts">
{{subtext.text}}
</div>
</div>
</div>
<div v-if="foundNone" class="tip-container">
<div class="tip-title">Couldn't find any matching tips</div>
</div>
</div>
</div>
</div>
<script src="thirdparty/vue.min.js"></script>
<script src="thirdparty/lodash.core.min.js"></script>
<script src="thirdparty/jquery-3.2.1.min.js"></script>
<script src="js/globalState.js"></script>
<script src="js/menu.js"></script>
<script src="js/nav.js"></script>
<script src="js/flow.js"></script>
<script src="js/tipList.js"></script>
</body>