-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
135 lines (120 loc) · 5 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Home</title>
<link rel="stylesheet" href="./css/style.css" />
<link rel="stylesheet" href="./css/bootstrap.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="./css/basetheme.css" />
<link rel="stylesheet" href="./css/dark.css" />
<link rel="stylesheet" href="./css/slidertoggle.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.slim.min.js" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" crossorigin="anonymous"></script>
<script src="./js/handle_state.js"></script>
<script src="./js/handle_switches.js"></script>
</head>
<body>
<button type="button" class="menu-btn fa fa-plus" data-toggle="modal" onclick="startAddingCard()" data-target="#editModal" tabindex="-1"></button>
<button type="button" class="menu-btn fa fa-cog" data-toggle="modal" data-target="#settingsModal" tabindex="-1"></button>
<div id="editModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Add Card</h4>
<button type="button" class="close" data-dismiss="modal">×</button>
</div>
<div class="modal-body" id="settings-modal-body">
<div class="form-group">
<label for="title">Title</label>
<input type="text" class="form-control" id="card_title">
</div>
<div class="form-group">
<label for="description">Description</label>
<textarea class="form-control" rows="1" id="description"></textarea>
</div>
<div class="form-group">
<label for="button_url">Button URL</label>
<input type="text" class="form-control" id="button_url">
</div>
<div class="form-group">
<label for="button_label">Button Label</label>
<input type="text" class="form-control" id="button_label">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"></button>
</div>
</div>
</div>
</div>
<div id="settingsModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Settings</h4>
<button type="button" class="close" data-dismiss="modal">×</button>
</div>
<div class="modal-body">
<div class="setting">
<h5>Theme</h5>
<label class="switch theme-switch">
<input id="theme-input" type="checkbox" onclick="setTheme(this.checked)">
<span class="slider round"></span>
<span class="setting-desc" id="theme-state-desc"></span>
</label>
</div>
<br />
<div class="setting">
<h5>Donation Button</h5>
<label class="switch donation-switch">
<input id="donation-input" type="checkbox" onclick="setDonationVisible(this.checked)" checked>
<span class="slider round"></span>
<span class="setting-desc" id="donation-state-desc"></span>
</label>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="container">
<div class="input-group mb-3" searchbase="https://duckduckgo.com/&q=">
<img class="searchEngineIcon" src="https://duckduckgo.com/favicon.ico" width="40" height="40" />
<input type="text" class="form-control" id="searchbar" placeholder="Search DuckDuckGo" aria-label="Search DuckDuckGo" aria-describedby="basic-addon2" onkeypress="actionOnEnter(event)" autofocus>
<div class="input-group-append" style="background-color: white;" onclick="buttonQuerySite(this)">
<button class="btn btn-outline-secondary" tabIndex="-1" type="button">Search</button>
</div>
</div>
<div class="row" id="primaryRow"></div>
<div class="row" id="userRow"></div>
</div>
<script src="./js/fade_helpers.js"></script>
<script src="./js/card_helpers.js"></script>
<script src="./js/card_model.js"></script>
<script src="./js/favicon_grabber.js"></script>
<script src="./js/handle_view.js"></script>
<script>
loadSettings();
loadSavedState();
</script>
<script src="./js/handle_search.js"></script>
<script src="./js/handle_buttons.js"></script>
<div id="coffee-btn" style="display: none; position: fixed; bottom: 10px; right: 5px;">
<script type='text/javascript' src='https://ko-fi.com/widgets/widget_2.js'></script>
<script type='text/javascript'>
if (getLocalBool(showDonationButtonTag)) {
setDonationVisible(true);
} else {
setDonationVisible(getLocalBool(showDonationButtonTag));
}
kofiwidget2.init('Support my coffee addiction', '#337AB7', 'R6R5FE86');
kofiwidget2.draw();
</script>
</div>
</body>
</html>