add antendance
This commit is contained in:
58
attendance/index.html
Normal file
58
attendance/index.html
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||||
|
<title>Attendance</title>
|
||||||
|
<style>
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
display: flex;
|
||||||
|
min-height: 100vh;
|
||||||
|
background: #0b1220;
|
||||||
|
}
|
||||||
|
.container {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
.wrapper {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
iframe {
|
||||||
|
border: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100vh;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
.header {
|
||||||
|
padding: 12px 16px;
|
||||||
|
color: #e6edf3;
|
||||||
|
font-family:
|
||||||
|
system-ui,
|
||||||
|
-apple-system,
|
||||||
|
Segoe UI,
|
||||||
|
Roboto,
|
||||||
|
Ubuntu,
|
||||||
|
Cantarell,
|
||||||
|
Noto Sans,
|
||||||
|
sans-serif;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<div class="header">Attendance Sheet</div>
|
||||||
|
<div class="wrapper">
|
||||||
|
<iframe
|
||||||
|
src="https://docs.google.com/spreadsheets/d/e/2PACX-1vSYaal3P7aplc7kuJj8zbeXboJjbos69DJyyxXu8JUCArWSPDCeubqMnmAAg_LFAZ8t-L_Pkpbv1MFG/pubhtml?gid=2023471118&single=true&widget=true&headers=false"
|
||||||
|
></iframe>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
58
attendance/submit/index.html
Normal file
58
attendance/submit/index.html
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
||||||
|
<title>Submit Attendance</title>
|
||||||
|
<style>
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
display: flex;
|
||||||
|
min-height: 100vh;
|
||||||
|
background: #0b1220;
|
||||||
|
}
|
||||||
|
.container {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
.wrapper {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
iframe {
|
||||||
|
border: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
.header {
|
||||||
|
padding: 12px 16px;
|
||||||
|
color: #e6edf3;
|
||||||
|
font-family:
|
||||||
|
system-ui,
|
||||||
|
-apple-system,
|
||||||
|
Segoe UI,
|
||||||
|
Roboto,
|
||||||
|
Ubuntu,
|
||||||
|
Cantarell,
|
||||||
|
Noto Sans,
|
||||||
|
sans-serif;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<div class="header">Submit Attendance</div>
|
||||||
|
<div class="wrapper">
|
||||||
|
<iframe
|
||||||
|
src="https://docs.google.com/forms/d/e/1FAIpQLSf3qmcbINKS78SzDoI1aAYSNlSLufVD0PboHxGjMjoxXuhTjw/viewform?embedded=true"
|
||||||
|
allowfullscreen
|
||||||
|
></iframe>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -2,11 +2,8 @@
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
HOST="${1:-}"
|
HOST="${1:-}"
|
||||||
DEST="${2:-}"
|
DEST="${2:-}"
|
||||||
TMP="/tmp/masha_site_$(date +%s)"
|
TMP="$DEST.new"
|
||||||
mkdir -p "$TMP"
|
ssh -o StrictHostKeyChecking=no "$HOST" "rm -rf '$TMP' && mkdir -p '$TMP'"
|
||||||
cp -a index.html "$TMP/index.html"
|
tar -cz --exclude .git --exclude Jenkinsfile --exclude deploy -C . . | ssh -o StrictHostKeyChecking=no "$HOST" "tar -xz -C '$TMP'"
|
||||||
ssh -o StrictHostKeyChecking=no "$HOST" "mkdir -p '$DEST'"
|
ssh -o StrictHostKeyChecking=no "$HOST" "mkdir -p '$DEST'; rm -rf '${DEST}.prev'; mv '$DEST' '${DEST}.prev' 2>/dev/null || true; mv '$TMP' '$DEST'"
|
||||||
scp -q "$TMP/index.html" "$HOST":"$DEST/.index.html.new"
|
|
||||||
ssh -o StrictHostKeyChecking=no "$HOST" "mv '$DEST/.index.html.new' '$DEST/index.html'"
|
|
||||||
rm -rf "$TMP"
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user