From 4a62fe6388e75ed11f61dab23c63721fa52aa54e Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 25 Feb 2015 11:06:59 -0500 Subject: Stuff --- www/2015 FRC Team Safety Manual- FINAL 2.6.15.pdf | Bin 0 -> 1113019 bytes www/4272_Safety_Manual.pdf | Bin 0 -> 1238775 bytes www/Emergency_Procedures.html | 20 ++ www/FIRST_Safety_Manual.pdf | 1 + www/MSDS.html.in | 17 ++ www/MSDS/3-IN-ONE_oil.pdf | Bin 0 -> 124788 bytes www/MSDS/Alcohol_Prep_Pads.pdf | Bin 0 -> 29278 bytes www/MSDS/Baking_Soda.pdf | Bin 0 -> 49206 bytes www/MSDS/Burn_Cream.pdf | Bin 0 -> 94042 bytes www/MSDS/Expo_Dry_Erase_Cleaner.pdf | Bin 0 -> 84107 bytes www/MSDS/Hand_Sanitizer.pdf | Bin 0 -> 114857 bytes www/MSDS/Hydrogen_Peroxide.pdf | Bin 0 -> 55081 bytes www/MSDS/Krazy_Glue.pdf | Bin 0 -> 108765 bytes www/MSDS/Lead_Free_Solder.pdf | Bin 0 -> 29907 bytes www/MSDS/MK-Battery.pdf | Bin 0 -> 105088 bytes www/MSDS/Metalset_A-4_Epoxy.pdf | Bin 0 -> 844820 bytes www/MSDS/Neosporin_Ointment.pdf | Bin 0 -> 19569 bytes www/MSDS/Paint_Thinner.pdf | Bin 0 -> 26104 bytes www/MSDS/Scotch-Weld.pdf | Bin 0 -> 62097 bytes www/MSDS/SightSavers_Lens_Cleaner.pdf | Bin 0 -> 56616 bytes www/MSDS/WD-40.pdf | Bin 0 -> 98989 bytes www/Member_Health_Information.pdf | Bin 0 -> 3116749 bytes www/PPE_Information.html | 40 ++++ www/alert.html | 19 ++ www/css/index.scss | 213 +++++++++++++++++----- www/find.html | 0 www/img/Fire_Escape_Layout.jpg | Bin 0 -> 117950 bytes www/img/Tornado_Layout.jpg | Bin 0 -> 116689 bytes www/img/logo.png | Bin 21814 -> 255390 bytes www/img/screen-landscape.png | Bin 0 -> 508989 bytes www/img/screen-portrait.png | Bin 0 -> 534536 bytes www/index.html | 67 +++---- www/js/report.js | 41 +++++ www/report.html | 37 ++++ 34 files changed, 379 insertions(+), 76 deletions(-) create mode 100644 www/2015 FRC Team Safety Manual- FINAL 2.6.15.pdf create mode 100644 www/4272_Safety_Manual.pdf create mode 100644 www/Emergency_Procedures.html create mode 120000 www/FIRST_Safety_Manual.pdf create mode 100644 www/MSDS.html.in create mode 100644 www/MSDS/3-IN-ONE_oil.pdf create mode 100644 www/MSDS/Alcohol_Prep_Pads.pdf create mode 100644 www/MSDS/Baking_Soda.pdf create mode 100644 www/MSDS/Burn_Cream.pdf create mode 100644 www/MSDS/Expo_Dry_Erase_Cleaner.pdf create mode 100644 www/MSDS/Hand_Sanitizer.pdf create mode 100644 www/MSDS/Hydrogen_Peroxide.pdf create mode 100644 www/MSDS/Krazy_Glue.pdf create mode 100644 www/MSDS/Lead_Free_Solder.pdf create mode 100644 www/MSDS/MK-Battery.pdf create mode 100644 www/MSDS/Metalset_A-4_Epoxy.pdf create mode 100644 www/MSDS/Neosporin_Ointment.pdf create mode 100644 www/MSDS/Paint_Thinner.pdf create mode 100644 www/MSDS/Scotch-Weld.pdf create mode 100644 www/MSDS/SightSavers_Lens_Cleaner.pdf create mode 100644 www/MSDS/WD-40.pdf create mode 100644 www/Member_Health_Information.pdf create mode 100644 www/PPE_Information.html create mode 100644 www/alert.html create mode 100644 www/find.html create mode 100644 www/img/Fire_Escape_Layout.jpg create mode 100644 www/img/Tornado_Layout.jpg create mode 100644 www/img/screen-landscape.png create mode 100644 www/img/screen-portrait.png create mode 100644 www/js/report.js create mode 100644 www/report.html (limited to 'www') diff --git a/www/2015 FRC Team Safety Manual- FINAL 2.6.15.pdf b/www/2015 FRC Team Safety Manual- FINAL 2.6.15.pdf new file mode 100644 index 0000000..d244936 Binary files /dev/null and b/www/2015 FRC Team Safety Manual- FINAL 2.6.15.pdf differ diff --git a/www/4272_Safety_Manual.pdf b/www/4272_Safety_Manual.pdf new file mode 100644 index 0000000..788142c Binary files /dev/null and b/www/4272_Safety_Manual.pdf differ diff --git a/www/Emergency_Procedures.html b/www/Emergency_Procedures.html new file mode 100644 index 0000000..2729093 --- /dev/null +++ b/www/Emergency_Procedures.html @@ -0,0 +1,20 @@ + + + + + + + + + + + FRC Team 4272 Safety + + +

Emergency Procedures

+

Fire Escape

+ +

Tornado

+ + + diff --git a/www/FIRST_Safety_Manual.pdf b/www/FIRST_Safety_Manual.pdf new file mode 120000 index 0000000..918ba1a --- /dev/null +++ b/www/FIRST_Safety_Manual.pdf @@ -0,0 +1 @@ +2015 FRC Team Safety Manual- FINAL 2.6.15.pdf \ No newline at end of file diff --git a/www/MSDS.html.in b/www/MSDS.html.in new file mode 100644 index 0000000..4bfc689 --- /dev/null +++ b/www/MSDS.html.in @@ -0,0 +1,17 @@ + + + + + + + + + + + FRC Team 4272 Safety - Report an injury + + +

MSDS

+ @list@ + + diff --git a/www/MSDS/3-IN-ONE_oil.pdf b/www/MSDS/3-IN-ONE_oil.pdf new file mode 100644 index 0000000..c42c851 Binary files /dev/null and b/www/MSDS/3-IN-ONE_oil.pdf differ diff --git a/www/MSDS/Alcohol_Prep_Pads.pdf b/www/MSDS/Alcohol_Prep_Pads.pdf new file mode 100644 index 0000000..d465b11 Binary files /dev/null and b/www/MSDS/Alcohol_Prep_Pads.pdf differ diff --git a/www/MSDS/Baking_Soda.pdf b/www/MSDS/Baking_Soda.pdf new file mode 100644 index 0000000..a82d791 Binary files /dev/null and b/www/MSDS/Baking_Soda.pdf differ diff --git a/www/MSDS/Burn_Cream.pdf b/www/MSDS/Burn_Cream.pdf new file mode 100644 index 0000000..3d7c6e9 Binary files /dev/null and b/www/MSDS/Burn_Cream.pdf differ diff --git a/www/MSDS/Expo_Dry_Erase_Cleaner.pdf b/www/MSDS/Expo_Dry_Erase_Cleaner.pdf new file mode 100644 index 0000000..3f21abd Binary files /dev/null and b/www/MSDS/Expo_Dry_Erase_Cleaner.pdf differ diff --git a/www/MSDS/Hand_Sanitizer.pdf b/www/MSDS/Hand_Sanitizer.pdf new file mode 100644 index 0000000..31965e1 Binary files /dev/null and b/www/MSDS/Hand_Sanitizer.pdf differ diff --git a/www/MSDS/Hydrogen_Peroxide.pdf b/www/MSDS/Hydrogen_Peroxide.pdf new file mode 100644 index 0000000..5b3ff5f Binary files /dev/null and b/www/MSDS/Hydrogen_Peroxide.pdf differ diff --git a/www/MSDS/Krazy_Glue.pdf b/www/MSDS/Krazy_Glue.pdf new file mode 100644 index 0000000..913fb38 Binary files /dev/null and b/www/MSDS/Krazy_Glue.pdf differ diff --git a/www/MSDS/Lead_Free_Solder.pdf b/www/MSDS/Lead_Free_Solder.pdf new file mode 100644 index 0000000..1f13ef9 Binary files /dev/null and b/www/MSDS/Lead_Free_Solder.pdf differ diff --git a/www/MSDS/MK-Battery.pdf b/www/MSDS/MK-Battery.pdf new file mode 100644 index 0000000..d9538c9 Binary files /dev/null and b/www/MSDS/MK-Battery.pdf differ diff --git a/www/MSDS/Metalset_A-4_Epoxy.pdf b/www/MSDS/Metalset_A-4_Epoxy.pdf new file mode 100644 index 0000000..e898f0b Binary files /dev/null and b/www/MSDS/Metalset_A-4_Epoxy.pdf differ diff --git a/www/MSDS/Neosporin_Ointment.pdf b/www/MSDS/Neosporin_Ointment.pdf new file mode 100644 index 0000000..0403c4e Binary files /dev/null and b/www/MSDS/Neosporin_Ointment.pdf differ diff --git a/www/MSDS/Paint_Thinner.pdf b/www/MSDS/Paint_Thinner.pdf new file mode 100644 index 0000000..9c4144f Binary files /dev/null and b/www/MSDS/Paint_Thinner.pdf differ diff --git a/www/MSDS/Scotch-Weld.pdf b/www/MSDS/Scotch-Weld.pdf new file mode 100644 index 0000000..c31590d Binary files /dev/null and b/www/MSDS/Scotch-Weld.pdf differ diff --git a/www/MSDS/SightSavers_Lens_Cleaner.pdf b/www/MSDS/SightSavers_Lens_Cleaner.pdf new file mode 100644 index 0000000..6513263 Binary files /dev/null and b/www/MSDS/SightSavers_Lens_Cleaner.pdf differ diff --git a/www/MSDS/WD-40.pdf b/www/MSDS/WD-40.pdf new file mode 100644 index 0000000..b5c06c8 Binary files /dev/null and b/www/MSDS/WD-40.pdf differ diff --git a/www/Member_Health_Information.pdf b/www/Member_Health_Information.pdf new file mode 100644 index 0000000..e276760 Binary files /dev/null and b/www/Member_Health_Information.pdf differ diff --git a/www/PPE_Information.html b/www/PPE_Information.html new file mode 100644 index 0000000..d26af6e --- /dev/null +++ b/www/PPE_Information.html @@ -0,0 +1,40 @@ + + + + + + + + + + + FRC Team 4272 Safety + + +

PPE Information

+ Safety glasses assignments: + + + diff --git a/www/alert.html b/www/alert.html new file mode 100644 index 0000000..14195e9 --- /dev/null +++ b/www/alert.html @@ -0,0 +1,19 @@ + + + + + + + + + + + FRC Team 4272 Safety + + +

Safety Committee Members

+ Adi + Cassie + Hunter + + diff --git a/www/css/index.scss b/www/css/index.scss index 81d5a1a..ccacc30 100644 --- a/www/css/index.scss +++ b/www/css/index.scss @@ -1,61 +1,188 @@ $yellow: #E5B217; $red: #80181A; -html, body, table { +* { + box-sizing: border-box; +} + +html { height: 100%; - padding: 0; - margin: 0; + body { + margin: 0; + padding: 0; + + background-color: $red; + color: $yellow; + font-family: sans-serif; + font-weight: bolder; + h1 { + text-align: center; + } + a { + text-decoration: none; + color: $yellow; + /* no :hover or :focus because touch screens */ + &:active { + text-decoration: underline; + background-color: $yellow; + color: $red; + } + } + input[type=text], input[type=password], input[type=email], select { + padding: 0 0.25em; + border: none; + background: bottom left linear-gradient(#a9a9a9, #a9a9a9) no-repeat, + bottom center linear-gradient(#a9a9a9, #a9a9a9) repeat-x, + bottom right linear-gradient(#a9a9a9, #a9a9a9) no-repeat; + background-size: 1px 6px, 1px 1px, 1px 6px; + color: $yellow; + &:hover, &:active, &:focus { + background: bottom left linear-gradient($yellow, $yellow) no-repeat, + bottom center linear-gradient($yellow, $yellow) repeat-x, + bottom right linear-gradient($yellow, $yellow) no-repeat; + background-size: 1px 6px, 1px 1px, 1px 6px; + color: $yellow; + } + } + option[disabled] { display: none; } + } +} +body#index { + height: 100%; + table { + height: 100%; + padding: 0; + margin: 0; - background-color: $red; - color: $yellow; + width: 100%; + border-collapse: collapse; + td, th { + border: solid 1px $yellow; + } + td { + text-align: center; + vertical-align: middle; + } - font-family: sans-serif; - font-weight: bolder; + thead { + height: 10%; + background-color: $yellow; + color: $red; + } + tbody { + td { + width: 33%; + max-width: 33%; + height: 30%; + div { + /* A wrapper round cell contents allowing us to use fancy + table-positioning inside of the cell */ + display: table; + width: 100%; + height: 100%; + a { + display: table-cell; + height: 100%; + width: 100%; + vertical-align: middle; + } + &.logo { + background-image: url("../img/logo.png"); + background-size: auto 100%; + background-position: center center; + background-repeat: no-repeat; + } + } + } + } + } } -table { - width: 100%; - border-collapse: collapse; - td, th { - border: solid 1px $yellow; +body#report { + margin: 0.5em; + form { + width: 100%; + label { + display: table; + //border: solid 1px #0000FF; + width: 100%; + margin-bottom: 0.25em; + span { + display: table-cell; + width: 8em; + } + input, select { + display: table-cell; + width: 100%; + } + textarea { + display: inline-block; + width: 100%; + height: 3em; + border: 0; + } + } + input[type=submit] { + width: 100%; + height: 3em; + } } - td { + #camera-ui { + border: solid 1px $yellow; text-align: center; - vertical-align: middle; + button { + display: block; + margin-left: auto; + margin-right: auto; + } + img { + display: block; + margin-left: auto; + margin-right: auto; + max-width: 50%; + height: auto; + } } + & > video { + /* Camera feed for browser */ + position: absolute; + left: 0; + width: 100%; - thead { - height: 10%; - background-color: $yellow; - color: $red; + top: 0; + height: auto; + max-height: 100%; + display: block; } - tbody { - td { - width: 33%; - height: 30%; - div { - /* A wrapper round cell contents allowing us to use fancy - table-positioning inside of the cell */ - display: table; - width: 100%; - height: 100%; - a { - display: table-cell; - height: 100%; - width: 100%; - vertical-align: middle; - } - } - } + & > button { + /* Camera capture button for browser */ + position: absolute; + left: 0; + width: 100%; + + bottom: 0; + height: 3em; } } -a { - text-decoration: none; - color: $yellow; - &:hover, &:active, &:focus { - text-decoration: underline; - background-color: $yellow; - color: $red; +body#msds, body#alert { + a { + display: inline-block; + width: 100%; + padding-left: 1em; + line-height: 3em; + border: solid 1px #a9a9a9; + margin-top: -1px; } } + +body#ppe { + margin: 1em; +} + +body#emergency { + img { + width: 100%; + height: auto; + } +} \ No newline at end of file diff --git a/www/find.html b/www/find.html new file mode 100644 index 0000000..e69de29 diff --git a/www/img/Fire_Escape_Layout.jpg b/www/img/Fire_Escape_Layout.jpg new file mode 100644 index 0000000..09c3879 Binary files /dev/null and b/www/img/Fire_Escape_Layout.jpg differ diff --git a/www/img/Tornado_Layout.jpg b/www/img/Tornado_Layout.jpg new file mode 100644 index 0000000..73ece59 Binary files /dev/null and b/www/img/Tornado_Layout.jpg differ diff --git a/www/img/logo.png b/www/img/logo.png index 9519e7d..cabed2b 100644 Binary files a/www/img/logo.png and b/www/img/logo.png differ diff --git a/www/img/screen-landscape.png b/www/img/screen-landscape.png new file mode 100644 index 0000000..66c2346 Binary files /dev/null and b/www/img/screen-landscape.png differ diff --git a/www/img/screen-portrait.png b/www/img/screen-portrait.png new file mode 100644 index 0000000..a2d42e6 Binary files /dev/null and b/www/img/screen-portrait.png differ diff --git a/www/index.html b/www/index.html index fa3cb54..d66b84d 100644 --- a/www/index.html +++ b/www/index.html @@ -1,36 +1,37 @@ - - - - - - - - Hello World - - - - - - - - - - - - - - - - - - - - - - - -
4272 Safety
- + + + + + + + + + FRC Team 4272 Safety + + + + + + + + + + + + + + + + + + + + + + + +
4272 Safety
+ diff --git a/www/js/report.js b/www/js/report.js new file mode 100644 index 0000000..661d63f --- /dev/null +++ b/www/js/report.js @@ -0,0 +1,41 @@ +document.addEventListener("deviceready", onDeviceReady, false); +function onDeviceReady() { + var ui = document.getElementById("camera-ui"); + if (navigator.camera) { + ui.innerHTML = "" + } else { + ui.innerHTML = "Camera not supported on your device"; + } +} +function takePhoto(firstrun) { + var options = { + /*quality: 50,*/ + destinationType: Camera.DestinationType.DATA_URL, /* DATA_URL, FILE_URI, NATIVE_URI */ + sourceType: Camera.PictureSourceType.CAMERA, /* PHOTOLIBRARY, CAMERA, SAVEDPHOTOALBUM */ + allowEdit: true, + encodingType: Camera.EncodingType.JPEG, /* JPEG, PNG */ + /*targetWidth: 300,*/ + /*targetHeight: 300,*/ + mediaType: Camera.MediaType.PICTURE, /* PICTURE, VIDEO, ALLMEDIA */ + correctOrientation: true, + /* saveToPhotoAlbum: false, */ + /* popoverOptions: (iOS only), */ + cameraDirection: Camera.Direction.BACK /* BACK, FRONT */ + }; + navigator.camera.getPicture( + function(imgData) { + if (firstrun) { + var ui = document.getElementById("camera-ui"); + ui.innerHTML = "" + } + var input = document.getElementById("photo"); + var img = document.getElementById("thumbnail"); + img.src = "data:image/jpeg;base64,"+imgData; + input.value = imgData; + }, + function() { + alert("Error taking picture", "Error"); + }, + options); + return false; +} diff --git a/www/report.html b/www/report.html new file mode 100644 index 0000000..7a853f6 --- /dev/null +++ b/www/report.html @@ -0,0 +1,37 @@ + + + + + + + + + + + + FRC Team 4272 Safety - Report an injury + + +

Report an Injury

+
+ + + + + + +
Loading Camera...
+ +
+ + -- cgit v1.2.3-54-g00ecf