From cfb528255da8bedbbc61dec38feca4ee2e64778b Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 3 Mar 2017 23:23:02 -0500 Subject: add checklists --- .gitignore | 1 + Makefile | 6 ++-- www/checklists.html.in | 20 +++++++++++ www/checklists/Pit_Safety_Checklist.html | 42 ++++++++++++++++++++++ www/checklists/Pre-match_Robot_Checklist.html | 37 +++++++++++++++++++ www/css/index.scss | 52 +++++++++++++++++++++++++-- www/index.html | 2 +- 7 files changed, 155 insertions(+), 5 deletions(-) create mode 100644 www/checklists.html.in create mode 100644 www/checklists/Pit_Safety_Checklist.html create mode 100644 www/checklists/Pre-match_Robot_Checklist.html diff --git a/.gitignore b/.gitignore index d1517e5..7a4e5fc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /www/FIRST_Safety_Manual.pdf /www/MSDS.html +/www/checklists.html /www/css/index.css /www/pdfjs diff --git a/Makefile b/Makefile index 99c650e..5a04222 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,8 @@ sources = \ www/FIRST_Safety_Manual.pdf \ www/pdfjs \ www/css/index.css \ - www/MSDS.html + www/MSDS.html \ + www/checklists.html browser-targets = platforms/browser/build/package.zip @@ -93,7 +94,8 @@ www/pdfjs: $(notdir $(pdfjs)) www/MSDS.html: www/MSDS.html.in www/MSDS Makefile ls www/MSDS | $(GSED) 'p;s/_/ /g' | $(GSED) -r 'N;s,^(.*)\n(.*)\.pdf,\2,' | $(GSED) $$'/@list@/{ s/@list@//; r/dev/stdin\n}' www/MSDS.html.in > $@ - +www/checklists.html: www/checklists.html.in www/checklists Makefile + ls www/checklists | $(GSED) 'p;s/_/ /g' | $(GSED) -r 'N;s,^(.*)\n(.*)\.html,\2,' | $(GSED) $$'/@list@/{ s/@list@//; r/dev/stdin\n}' www/checklists.html.in > $@ platforms/android/res/drawable/icon.png: www/img/logo.png | platforms/android mkdir -p $(@D) diff --git a/www/checklists.html.in b/www/checklists.html.in new file mode 100644 index 0000000..b12f7a3 --- /dev/null +++ b/www/checklists.html.in @@ -0,0 +1,20 @@ + + + + + + + + + + + FRC Team 4272 Safety - Pit Checklists + + +
+ +

Pit Checklists

+
+ @list@ + + diff --git a/www/checklists/Pit_Safety_Checklist.html b/www/checklists/Pit_Safety_Checklist.html new file mode 100644 index 0000000..2cfc1bb --- /dev/null +++ b/www/checklists/Pit_Safety_Checklist.html @@ -0,0 +1,42 @@ + + + + + + + + + + + + FRC Team 4272 Safety - Pit Safety Checklist + + +
+ +

Pit Safety Checklist

+
+
+
Reason:
    +
  • +
  • +
  • +
  • +
+ + + + + +
+ + diff --git a/www/checklists/Pre-match_Robot_Checklist.html b/www/checklists/Pre-match_Robot_Checklist.html new file mode 100644 index 0000000..0cec5f3 --- /dev/null +++ b/www/checklists/Pre-match_Robot_Checklist.html @@ -0,0 +1,37 @@ + + + + + + + + + + + + FRC Team 4272 Safety - Pre-match Robot Checklist + + +
+ +

Pre-match Robot Checklist

+
+
+ + + + + +
+ + diff --git a/www/css/index.scss b/www/css/index.scss index 514865d..748dcd3 100644 --- a/www/css/index.scss +++ b/www/css/index.scss @@ -47,7 +47,10 @@ html { color: $red; } } - input[type=text], input[type=password], input[type=email], select { + input, select, textarea { + font-size: 4vw; + } + input[type=text], input[type=password], input[type=email], input[type=number], select { padding: 0 0.25em; border: none; background: bottom left linear-gradient(#a9a9a9, #a9a9a9) no-repeat, @@ -66,6 +69,7 @@ html { option[disabled] { display: none; } } } + body#index { height: 100%; table { @@ -211,4 +215,48 @@ body#emergency { width: 100%; height: auto; } -} \ No newline at end of file +} + +body#checklist { + margin: 0.5em; + form { + width: 100%; + label { + margin-bottom: 0.25em; + } + ul { + padding: 0; + } + li { + list-style-type: none; + text-indent: -2em; + padding-left: 2em; + } + div { + text-indent: -2em; + padding-left: 2em; + ul { + display: inline; + li { + display: inline-block; + } + } + } + & > label { + display: table; + widht: 100%; + span { + display: table-cell; + width: 8em; + } + input { + display: table-cell; + width: 100%; + } + } + input[type=submit] { + width: 100%; + height: 3em; + } + } +} diff --git a/www/index.html b/www/index.html index f362ed0..defe821 100644 --- a/www/index.html +++ b/www/index.html @@ -21,7 +21,7 @@
Member Health Information
- +
MSDS
-- cgit v1.2.3