From 4a62fe6388e75ed11f61dab23c63721fa52aa54e Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 25 Feb 2015 11:06:59 -0500 Subject: Stuff --- .gitignore | 12 +- Makefile | 91 ++++++++- config.xml | 6 +- hooks/after_platform_add/add_plugins | 2 + hooks/after_prepare/gen_resources | 3 + hooks/before_prepare/gen_sources | 2 + info.txt | 26 --- platforms/android/.gitignore | 14 -- platforms/android/.project | 71 -------- platforms/android/AndroidManifest.xml | 15 -- platforms/android/build.gradle | 94 ---------- platforms/android/custom_rules.xml | 22 --- platforms/android/project.properties | 14 -- platforms/android/settings.gradle | 18 -- platforms/browser/config.xml | 15 -- plugins/android.json | 36 ---- plugins/browser.json | 26 --- 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 ++++ 51 files changed, 489 insertions(+), 433 deletions(-) create mode 100755 hooks/after_platform_add/add_plugins create mode 100755 hooks/after_prepare/gen_resources create mode 100755 hooks/before_prepare/gen_sources delete mode 100644 info.txt delete mode 100644 platforms/android/.gitignore delete mode 100644 platforms/android/.project delete mode 100644 platforms/android/AndroidManifest.xml delete mode 100644 platforms/android/build.gradle delete mode 100644 platforms/android/custom_rules.xml delete mode 100644 platforms/android/project.properties delete mode 100644 platforms/android/settings.gradle delete mode 100644 platforms/browser/config.xml delete mode 100644 plugins/android.json delete mode 100644 plugins/browser.json 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 diff --git a/.gitignore b/.gitignore index 3d364dc..5b5b618 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,13 @@ /www/css/index.css +/www/MSDS.html +/www/pdfjs + *.css.map -/plugins/*/ -/platforms/*/*/ .sass-cache/ +/info.txt +/pdfjs-*.zip +hs_err_pid*.log + +/hooks/README.md +/plugins +/platforms diff --git a/Makefile b/Makefile index 1c1ed6c..576fc55 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,95 @@ SCSS = scss +CORDOVA = cordova -all: www/css/index.css +targets = \ + platforms/browser/build/package.zip \ + platforms/android/ant-build/CordovaApp-debug.apk + +sources = \ + www/pdfjs \ + \ + www/css/index.css \ + www/MSDS.html + +android_resources = \ + platforms/android/res/drawable/icon.png \ + platforms/android/res/drawable-ldpi/icon.png \ + platforms/android/res/drawable-mdpi/icon.png \ + platforms/android/res/drawable-hdpi/icon.png \ + platforms/android/res/drawable-xhdpi/icon.png \ + \ + platforms/android/res/drawable-land-ldpi/screen.png \ + platforms/android/res/drawable-land-mdpi/screen.png \ + platforms/android/res/drawable-land-hdpi/screen.png \ + platforms/android/res/drawable-land-xhdpi/screen.png \ + \ + platforms/android/res/drawable-port-ldpi/screen.png \ + platforms/android/res/drawable-port-mdpi/screen.png \ + platforms/android/res/drawable-port-hdpi/screen.png \ + platforms/android/res/drawable-port-xhdpi/screen.png +resources = $(android_resources) + +all: targets sources %.css: %.scss $(SCSS) $< $@ + +platforms/android/res/drawable/icon.png: www/img/logo.png + convert $< -resize 96x96 $@ +platforms/android/res/drawable-ldpi/icon.png: www/img/logo.png + convert $< -resize 36x36 $@ +platforms/android/res/drawable-mdpi/icon.png: www/img/logo.png + convert $< -resize 48x48 $@ +platforms/android/res/drawable-hdpi/icon.png: www/img/logo.png + convert $< -resize 72x72 $@ +platforms/android/res/drawable-xhdpi/icon.png: www/img/logo.png + convert $< -resize 96x96 $@ + +platforms/android/res/drawable-land-ldpi/screen.png: www/img/screen-landscape.png + convert $< -resize 320x200 $@ +platforms/android/res/drawable-land-mdpi/screen.png: www/img/screen-landscape.png + convert $< -resize 480x320 $@ +platforms/android/res/drawable-land-hdpi/screen.png: www/img/screen-landscape.png + convert $< -resize 800x480 $@ +platforms/android/res/drawable-land-xhdpi/screen.png: www/img/screen-landscape.png + convert $< -resize 1280x720 $@ + +platforms/android/res/drawable-port-ldpi/screen.png: www/img/screen-portrait.png + convert $< -resize 200x320 $@ +platforms/android/res/drawable-port-mdpi/screen.png: www/img/screen-portrait.png + convert $< -resize 320x480 $@ +platforms/android/res/drawable-port-hdpi/screen.png: www/img/screen-portrait.png + convert $< -resize 480x800 $@ +platforms/android/res/drawable-port-xhdpi/screen.png: www/img/screen-portrait.png + convert $< -resize 720x1280 $@ + +pdfjs = https://github.com/mozilla/pdf.js/releases/download/v1.0.907/pdfjs-1.0.907-dist.zip +$(notdir $(pdfjs)): + wget --no-use-server-timestamp $(pdfjs) + +www/pdfjs: $(notdir $(pdfjs)) + rm -rf -- $@ + mkdir -- $@ && bsdtar -xf $(abspath $<) -C $@ --strip-components 1 --exclude '*.pdf' || rm -rf -- $@ + +www/MSDS.html: www/MSDS.html.in www/MSDS Makefile + ls www/MSDS | sed 'p;s/_/ /g' | sed -r 'N;s,^(.*)\n(.*)\.pdf,\2,' | sed $$'/@list@/{ s/@list@//; r/dev/stdin\n}' www/MSDS.html.in > $@ + +info.txt: config.xml FORCE + $(CORDOVA) info + +sources: $(sources) +resources: $(resources) + +clean-sources: PHONY + rm -f -- $(sources) +clean-resources: PHONY + rm -f -- $(resources) +clean: PHONY clean-sources clean-resources + rm -f -- hs_err_pid*.log + +distclean: PHONY + rm -f -- $(targets) + +.PHONY: PHONY FORCE +.DELETE_ON_ERROR: +.SECONDARY: diff --git a/config.xml b/config.xml index 559b110..aaba61f 100644 --- a/config.xml +++ b/config.xml @@ -2,10 +2,10 @@ SafetyApp - A sample Apache Cordova application that responds to the deviceready event. + FRC team 4272's safety application - - Apache Cordova Team + + Luk Shumaker diff --git a/hooks/after_platform_add/add_plugins b/hooks/after_platform_add/add_plugins new file mode 100755 index 0000000..15c0af5 --- /dev/null +++ b/hooks/after_platform_add/add_plugins @@ -0,0 +1,2 @@ +#!/bin/sh +cordova plugin add org.apache.cordova.camera diff --git a/hooks/after_prepare/gen_resources b/hooks/after_prepare/gen_resources new file mode 100755 index 0000000..ac86515 --- /dev/null +++ b/hooks/after_prepare/gen_resources @@ -0,0 +1,3 @@ +#!/bin/sh +make clean-resources +make resources diff --git a/hooks/before_prepare/gen_sources b/hooks/before_prepare/gen_sources new file mode 100755 index 0000000..b25a53f --- /dev/null +++ b/hooks/before_prepare/gen_sources @@ -0,0 +1,2 @@ +#!/bin/sh +make sources diff --git a/info.txt b/info.txt deleted file mode 100644 index 9cd961b..0000000 --- a/info.txt +++ /dev/null @@ -1,26 +0,0 @@ -Node version: v0.12.0 - -Cordova version: 4.2.0 - -Config.xml file: - - - - SafetyApp - - A sample Apache Cordova application that responds to the deviceready event. - - - Apache Cordova Team - - - - - - -Plugins: - -org.apache.cordova.camera - -Error retrieving Android platform information: Error: android: Command failed with exit code ENOENT - diff --git a/platforms/android/.gitignore b/platforms/android/.gitignore deleted file mode 100644 index a1c8ff7..0000000 --- a/platforms/android/.gitignore +++ /dev/null @@ -1,14 +0,0 @@ -# Non-project-specific build files: -build.xml -local.properties -/gradlew -/gradlew.bat -/gradle -# Ant builds -ant-built -ant-gen -# Eclipse builds -gen -out -# Gradle builds -/build diff --git a/platforms/android/.project b/platforms/android/.project deleted file mode 100644 index 5e2a6bc..0000000 --- a/platforms/android/.project +++ /dev/null @@ -1,71 +0,0 @@ - - - SafetyApp - - - - - - com.android.ide.eclipse.adt.ResourceManagerBuilder - - - - - com.android.ide.eclipse.adt.PreCompilerBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - com.android.ide.eclipse.adt.ApkBuilder - - - - - - com.android.ide.eclipse.adt.AndroidNature - org.eclipse.jdt.core.javanature - - - - config.xml - 1 - $%7BPARENT-2-PROJECT_LOC%7D/config.xml - - - www - 2 - $%7BPARENT-2-PROJECT_LOC%7D/www - - - merges - 2 - $%7BPARENT-2-PROJECT_LOC%7D/merges - - - - - 1390880034107 - - 30 - - org.eclipse.ui.ide.multiFilter - 1.0-projectRelativePath-matches-false-true-^(build.xml|ant-gen|ant-build|custom_rules.xml|CordovaLib|platform_www|cordova) - - - - 1390880034108 - - 30 - - org.eclipse.ui.ide.multiFilter - 1.0-projectRelativePath-matches-false-true-^(assets/www|res/xml/config.xml) - - - - - diff --git a/platforms/android/AndroidManifest.xml b/platforms/android/AndroidManifest.xml deleted file mode 100644 index b7f945e..0000000 --- a/platforms/android/AndroidManifest.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/platforms/android/build.gradle b/platforms/android/build.gradle deleted file mode 100644 index 9d1d45a..0000000 --- a/platforms/android/build.gradle +++ /dev/null @@ -1,94 +0,0 @@ -import java.util.regex.Pattern - -apply plugin: 'android' - -buildscript { - repositories { - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:0.10.+' - } -} - -ext.multiarch=false - -dependencies { - compile fileTree(dir: 'libs', include: '*.jar') - for (subproject in getProjectList()) { - compile project(subproject) - } -} - -android { - sourceSets { - main { - manifest.srcFile 'AndroidManifest.xml' - java.srcDirs = ['src'] - resources.srcDirs = ['src'] - aidl.srcDirs = ['src'] - renderscript.srcDirs = ['src'] - res.srcDirs = ['res'] - assets.srcDirs = ['assets'] - } - } - - defaultConfig { - versionCode Integer.parseInt("" + getVersionCodeFromManifest() + "0") - } - - compileSdkVersion 19 - buildToolsVersion "19.0.0" - - if (multiarch || System.env.BUILD_MULTIPLE_APKS) { - productFlavors { - armv7 { - versionCode defaultConfig.versionCode + 2 - ndk { - abiFilters "armeabi-v7a", "" - } - } - x86 { - versionCode defaultConfig.versionCode + 4 - ndk { - abiFilters "x86", "" - } - } - all { - ndk { - abiFilters "all", "" - } - } - } - } - - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_7 - targetCompatibility JavaVersion.VERSION_1_7 - } - -} - -task wrapper(type: Wrapper) { - gradleVersion = '1.12' -} - -def getVersionCodeFromManifest() { - def manifestFile = file(android.sourceSets.main.manifest.srcFile) - def pattern = Pattern.compile("versionCode=\"(\\d+)\"") - def matcher = pattern.matcher(manifestFile.getText()) - matcher.find() - return Integer.parseInt(matcher.group(1)) -} - -def getProjectList() { - def manifestFile = file("project.properties") - def pattern = Pattern.compile("android.library.reference.(\\d+)\\s*=\\s*(.*)") - def matcher = pattern.matcher(manifestFile.getText()) - def projects = [] - while (matcher.find()) { - projects.add(":" + matcher.group(2).replace("/",":")) - } - return projects -} diff --git a/platforms/android/custom_rules.xml b/platforms/android/custom_rules.xml deleted file mode 100644 index 66483d3..0000000 --- a/platforms/android/custom_rules.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/platforms/android/project.properties b/platforms/android/project.properties deleted file mode 100644 index ef68eb7..0000000 --- a/platforms/android/project.properties +++ /dev/null @@ -1,14 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system edit -# "ant.properties", and override values to adapt the script to your -# project structure. -# -# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): -#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt -# Project target. -target=android-19 -android.library.reference.1=CordovaLib diff --git a/platforms/android/settings.gradle b/platforms/android/settings.gradle deleted file mode 100644 index baa1714..0000000 --- a/platforms/android/settings.gradle +++ /dev/null @@ -1,18 +0,0 @@ -import java.util.regex.Pattern - -def getProjectList() { - def manifestFile = file("project.properties") - def pattern = Pattern.compile("android.library.reference.(\\d+)\\s*=\\s*(.*)") - def matcher = pattern.matcher(manifestFile.getText()) - def projects = [] - while (matcher.find()) { - projects.add(":" + matcher.group(2).replace("/",":")) - } - return projects -} - -for (subproject in getProjectList()) { - include subproject -} - -include ':' diff --git a/platforms/browser/config.xml b/platforms/browser/config.xml deleted file mode 100644 index f44d87a..0000000 --- a/platforms/browser/config.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - SafetyApp - - A sample Apache Cordova application that responds to the deviceready event. - - - Apache Cordova Team - - - - diff --git a/plugins/android.json b/plugins/android.json deleted file mode 100644 index d539e89..0000000 --- a/plugins/android.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "prepare_queue": { - "installed": [], - "uninstalled": [] - }, - "config_munge": { - "files": { - "res/xml/config.xml": { - "parents": { - "/*": [ - { - "xml": "", - "count": 1 - } - ] - } - }, - "AndroidManifest.xml": { - "parents": { - "/*": [ - { - "xml": "", - "count": 1 - } - ] - } - } - } - }, - "installed_plugins": { - "org.apache.cordova.camera": { - "PACKAGE_NAME": "org.usfirst.frc.team4272.safetyapp" - } - }, - "dependent_plugins": {} -} \ No newline at end of file diff --git a/plugins/browser.json b/plugins/browser.json deleted file mode 100644 index 3ed2a72..0000000 --- a/plugins/browser.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "prepare_queue": { - "installed": [], - "uninstalled": [] - }, - "config_munge": { - "files": { - "config.xml": { - "parents": { - "/*": [ - { - "xml": "", - "count": 1 - } - ] - } - } - } - }, - "installed_plugins": { - "org.apache.cordova.camera": { - "PACKAGE_NAME": "org.usfirst.frc.team4272.safetyapp" - } - }, - "dependent_plugins": {} -} \ No newline at end of file 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: +
    +
  • 1: Cassie Alsop
  • +
  • 2: Eric Jacoby
  • +
  • 3: Jeremiah Kemp
  • +
  • 4. Michael Hoover
  • +
  • 5. AnnaLaura Nufer
  • +
  • 6. Nicole Whittle
  • +
  • 7. Hunter Greene
  • +
  • 8. Juan Salazar
  • +
  • 9. Elizabeth Snyder
  • +
  • 10. Mason Wilson
  • +
  • 11. Evan Easton
  • +
  • 12. Adi Ben-Yehoshua
  • +
  • 13. Jared Heller
  • +
  • 14. Mitchell Jorczak
  • +
  • 15. Veronica Shaffer
  • +
  • 16. Catherine Spyr
  • +
  • 17. Luke Shumaker
  • +
  • 18. Same Cook
  • +
  • 19. Josh Chang
  • +
  • 20. Jason Ang
  • +
  • 21. Cole Griffin
  • +
+ + 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