blob: 5c9a7279e0db4b4e832332f0bff6a3d86fcddbd5 (
plain)
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
|
#pragma once
#define DEFAULT_TEMPLATE \
"<!DOCTYPE html>\n<html lang = \"en\">\n<head>\n" \
"<title>Bootstrap Example</title>\n" \
"<meta charset = \"utf-8\"><meta name = \"viewport\" content = \"width=device-width, initial-scale=1\">\n" \
"<link rel = \"stylesheet\" href = \"https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css\">\n" \
"<script src = \"https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js\"></script>\n" \
"<script src = \"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js\"></script>\n" \
"<script src = \"https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js\"></script>\n" \
"</head>\n<body>\n\n" \
"<nav class = \"navbar navbar-expand-sm bg-light\">\n" \
"<ul class = \"navbar-nav\">\n<li class = \"nav-item\">\n" \
"<a class = \"nav-link\" href = \"#\">Link 1 </a>\n" \
"</li>\n<li class = \"nav-item\">\n" \
"<a class = \"nav-link\" href = \"#\">Link 2 </a>\n" \
"</li>\n<li class = \"nav-item\">\n" \
"<a class = \"nav-link\" href = \"#\">Link 3 </a>\n" \
"</li>\n<li class = \"nav-item\">\n" \
"<% STATUS %>" \
"</li>\n</ul>\n</nav>\n<br>\n\n" \
"<div class = \"container-fluid\">\n\n" \
"<% CONTENT %>\n\n" \
"</div>\n\n</body>\n</html>\n\n";
#define STATUS_OFFLINE \
"<span class=\"badge badge-pill badge-danger\">Offline</span>\n"
#define STATUS_ONLINE \
"<span class=\"badge badge-pill badge-success\">Online</span>\n"
#define STATUS_PROCESS \
"<span class=\"badge badge-pill badge-success\">PID <% PID %></span>\n"
#define PROCESS_FIND \
"<li class = \"nav-item\">\n" \
"</li>\n"
|