-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtools.html
More file actions
193 lines (173 loc) · 9.07 KB
/
tools.html
File metadata and controls
193 lines (173 loc) · 9.07 KB
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tools - Cohesion</title>
<link rel="shortcut icon" href="cohesion/favicon.svg" type="image/x-icon" />
<!-- Primary Meta Tags -->
<meta name="title" content="Tools - Cohesion">
<meta name="description" content="Use Markdown with ease with the Cohesion Tool box, and try the Cohesion Markdown editor for free.">
<meta name="keywords" content="">
<meta name="language" content="en">
<meta name="author" content="Cohesion Team">
<meta name="robots" content="index, follow">
<!-- Open Graph -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://flarom.github.io/cohesion/tools.html">
<meta property="og:title" content="Tools - Cohesion">
<meta property="og:description" content="Use Markdown with ease with the Cohesion Tool box, and try the Cohesion Markdown editor for free.">
<meta property="og:image" content="https://flarom.github.io/cohesion/cohesion/cards/tools.png">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://flarom.github.io/cohesion/tools.html">
<meta property="twitter:title" content="Tools - Cohesion">
<meta property="twitter:description" content="Use Markdown with ease with the Cohesion Tool box, and try the Cohesion Markdown editor for free.">
<meta property="twitter:image" content="https://flarom.github.io/cohesion/cohesion/cards/tools.png">
<!-- Canonical URL -->
<link rel="canonical" href="https://flarom.github.io/cohesion/tools.html">
<!-- PWA meta tags -->
<meta name="application-name" content="Cohesion">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta content="#303030" name="theme-color" />
<link rel="manifest" href="/manifest.json" />
<link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="stylesheet" href="style/palette.css">
<link rel="stylesheet" href="style/share.css">
<link rel="stylesheet" href="style/prompts.css">
<link rel="stylesheet" href="style/landing.css">
<style>
.tool-item {
max-width: 391px;
background-color: var(--background-color-2);
overflow: hidden;
border-radius: 15px;
border: 1px solid var(--border-light-color);
img {
max-width: 100%;
border-bottom: 1px solid var(--border-light-color);
transition: filter .3s;
}
.tool-description {
padding: 0px 10px 10px 10px;
}
}
.tool-item img:hover {
filter: brightness(1.1);
}
</style>
</head>
<body class="theme-dark">
<header>
<div>
<a href="index.html" style="display: inline-flex; align-items: center; color: var(--text-color); text-decoration: none;">
<img src="cohesion/favicon.svg" alt="" width="48">
<h2 translate="no" class="header-text">Cohesion</h2>
</a>
</div>
<div style="display: flex; gap: 5px;">
<button class="secondary hide-on-mobile" data-locale="dialogs.landing.header.editor" onclick="window.open('app.html', '_self')">Editor</button>
<button class="secondary hide-on-mobile" data-locale="dialogs.landing.header.tools" onclick="window.open('tools.html', '_self')">Tools</button>
<button class="secondary hide-on-mobile" data-locale="dialogs.landing.header.documentation" onclick="window.open('https://github.com/flarom/cohesion/wiki')">Documentation</button>
<button class="secondary hide-on-mobile" data-locale="dialogs.landing.header.github" onclick="window.open('https://github.com/flarom/cohesion')">GitHub</button>
<button class="secondary" onclick="changeTheme();" style="font-size: large;" translate="no"><span class="icon">routine</span></button>
<button class="secondary hide-on-pc" onclick="handleMoreMenu();" style="font-size: large;" translate="no"><span class="icon">more_vert</span></button>
</div>
</header>
<section class="main" style="max-width: 1200px; margin: 0 auto; margin-top: 100px; padding: 10px;">
<h1>Tools</h1>
<div style="display: flex; gap: 10px; flex-wrap: wrap;">
<div class="tool-item">
<div>
<a href="tools/markdown-table-editor.html"><img src="cohesion/landing/table.png" alt=""></a>
</div>
<div class="tool-description">
<h2>Table editor</h2>
<p>Create and edit Markdown tables with ease.</p>
<div style="display: flex; align-items: center; justify-content: end;">
<button class="text-button" onclick="window.open('tools/markdown-table-editor.html', '_self')">Try it out</button>
</div>
</div>
</div>
<div style="display: flex; gap: 10px; flex-wrap: wrap;">
<div class="tool-item">
<div>
<a href="tools/markdown-tasklist-editor.html"><img src="cohesion/landing/tasklist.png" alt=""></a>
</div>
<div class="tool-description">
<h2>Task list editor</h2>
<p>Create and edit Markdown task lists with ease.</p>
<div style="display: flex; align-items: center; justify-content: end;">
<button class="text-button" onclick="window.open('tools/markdown-tasklist-editor.html', '_self')">Try it out</button>
</div>
</div>
</div>
</div>
<div style="display: flex; gap: 10px; flex-wrap: wrap;">
<div class="tool-item">
<div>
<a href="tools/markdown-reader.html"><img src="cohesion/landing/reader.png" alt=""></a>
</div>
<div class="tool-description">
<h2>Markdown reader</h2>
<p>Read markdown documents without distractions.</p>
<div style="display: flex; align-items: center; justify-content: end;">
<button class="text-button" onclick="window.open('tools/markdown-reader.html', '_self')">Try it out</button>
</div>
</div>
</div>
</div>
<div style="display: flex; gap: 10px; flex-wrap: wrap;">
<div class="tool-item">
<div>
<a href="tools/emoji-shortcodes.html"><img src="cohesion/landing/emoji.png" alt=""></a>
</div>
<div class="tool-description">
<h2>Emoji shortcodes</h2>
<p>Find emoji :shortcode: names.</p>
<div style="display: flex; align-items: center; justify-content: end;">
<button class="text-button" onclick="window.open('tools/emoji-shortcodes.html', '_self')">Try it out</button>
</div>
</div>
</div>
</div>
</div>
</section>
<script src="script/settings.js"></script>
<script src="script/prompts.js"></script>
<script>
// load settings
function loadSettings(){
const theme = Settings.getSetting("theme");
if (theme) document.body.className = theme;
const root = document.documentElement;
const editorFont = Settings.getSetting("editorFont");
const paragraphFont = Settings.getSetting("paragraphFont");
const titleFont = Settings.getSetting("titleFont");
if (editorFont) root.style.setProperty("--font-editor", editorFont);
if (paragraphFont) root.style.setProperty("--font-text", paragraphFont);
if (titleFont) root.style.setProperty("--font-title", titleFont);
}
async function handleMoreMenu() {
const selection = await promptSelect("More options", ["Editor", "Tools", "Documentation", "GitHub"]);
switch (selection) {
case 0: window.open('app.html', '_self'); break;
case 1: window.open('tools.html', '_self'); break;
case 2: window.open('https://github.com/flarom/cohesion/wiki'); break;
case 3: window.open('https://github.com/flarom/cohesion'); break;
}
}
function changeTheme() {
let current = Settings.getSetting('theme');
if (current === 'theme-dark') {
Settings.setSetting('theme', 'theme-light');
} else {
Settings.setSetting('theme', 'theme-dark');
}
loadSettings();
}
loadSettings();
</script>
</body>
</html>