diff --git a/2026/rebuilt_config.js b/2026/rebuilt_config.js index 3b62a6ec7..9f37f7b4e 100644 --- a/2026/rebuilt_config.js +++ b/2026/rebuilt_config.js @@ -15,7 +15,7 @@ var config_data = ` { "name": "Event", "code": "e", "type": "event", - "defaultValue": "2026ilch", + "defaultValue": "2026wiapp", "required": "true" }, { "name": "Match Level", diff --git a/2026/rebuilt_pit_scouting.js b/2026/rebuilt_pit_scouting.js index 0e0ae9da6..36163208e 100644 --- a/2026/rebuilt_pit_scouting.js +++ b/2026/rebuilt_pit_scouting.js @@ -14,52 +14,24 @@ var config_data = ` "type": "number", "defaultValue": "0" }, - { "name": "Weight", - "code": "wei", + { "name": "Length", + "code": "len", "type": "number", "defaultValue": "0" }, - { "name": "Drivetrain", - "code": "drv", + { + "name": "Traversal Area", + "code": "tra", "type": "radio", "choices": { - "s": "Swerve
", - "w": "West Coast/Tank
", - "b": "Butterfly/Grashopper
", - "m": "Mechanum
", - "o": "Other" - }, - "defaultValue": "o" + "bp": "Bump", + "tr": "Trench", + "bo": "Both" + } }, - { "name": "Other Drivetrain", - "code": "odt", - "type": "text", - "size": 20, - "maxSize": 50 - }, - { "name": "Swerve Ratio", - "code": "sr", - "type": "radio", - "choices": { - "1": "L1 (8.14:1)
", - "2": "L2 (6.75:1)
", - "3": "L3 (6.12:1)
", - "4": "L4 (5.14:1)
", - "o": "Other ratio (put in comments)
", - "x": "Not Swerve" - }, - "defaultValue":"x" - }, - { "name": "Drivetrain Motor", - "code": "mot", - "type": "radio", - "choices": { - "n": "Neo
", - "f": "Falcon
", - "c": "CIM
", - "x": "Other
" - }, - "defaultValue":"x" + { "name": "# of Fuel", + "code": "nof", + "type": "number" }, { "name": "# of Batteries", "code": "nob", diff --git a/icon512.png b/icon512.png new file mode 100644 index 000000000..0c366b68b Binary files /dev/null and b/icon512.png differ diff --git a/index.html b/index.html index 5c616e206..cd7801243 100644 --- a/index.html +++ b/index.html @@ -1,109 +1,145 @@ - - - Scouting PASS - - - - - - - - - - -
-
-
-

PWNAGE
Scouting PASS

-

pre-match

-

- + + + Scouting PASS + + + + + + + + + + + + + +
+
+

PWNAGE
Scouting PASS

+

pre-match

+

+
-
-

-
+ +

+
-
-

PWnAGE
Scouting PASS

-

Auton

-

- +
+

PWnAGE
Scouting PASS

+

Auton

+

+
-
-

-
+ +

+

+ -
-

PWnAGE
Scouting PASS

-

Teleop

-

- - -
-

-
+
+

PWnAGE
Scouting PASS

+

Teleop

+

+ + +
+

+

+
-
-

PWnAGE
Scouting PASS

-

Endgame

-

- - -
-

-
+
+

PWnAGE
Scouting PASS

+

Endgame

+

+ + +
+

+

+
-
-

PWnAGE
Scouting PASS

-

Miscellaneous

-

- - -
-

-
+
+

PWnAGE
Scouting PASS

+

Miscellaneous

+

+ + +
+

+

+
-
-

PWnAGE
Scouting 2026

-

Generate QR Code

-

-

- - - - -
  -
- -
-
 
  -
-

-
-
 
-

-

-
- -
-
- -
-
+
+

PWnAGE
Scouting 2026

+

Generate QR Code

+

+

+ + + + + + + + + + + + + +
  +
+ +
+
 
  +
+

+
+
 
+

+

+
+ +
+
+
+
- - - - - - +
+ + + + \ No newline at end of file diff --git a/manifest.json b/manifest.json new file mode 100644 index 000000000..9e3032411 --- /dev/null +++ b/manifest.json @@ -0,0 +1,17 @@ +{ + "lang": "en-us", + "name": "ScoutingPASS", + "short_name": "ScoutingPASS", + "description": "ScoutingPASS for Wave", + "start_url": "/ScoutingPASS/", + "background_color": "#000000", + "theme_color": "#000000", + "orientation": "portrait", + "display": "standalone", + "icons": [ + { + "src": "/ScoutingPASS/icon512.png", + "sizes": "512x512" + } + ] +} \ No newline at end of file diff --git a/resources/css/scoutingPASS.css b/resources/css/scoutingPASS.css index 6e0cffe4c..90940cb0a 100644 --- a/resources/css/scoutingPASS.css +++ b/resources/css/scoutingPASS.css @@ -15,6 +15,10 @@ html, body{ background-color: black; } +.score-buttons { + font-size: "380px" +} + #prematch_table, #postmatch_table { font-family : -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif !important; @@ -243,4 +247,4 @@ input { #data { font-family:'Lucida Console', 'monospace'; text-align: justify; -} +} \ No newline at end of file diff --git a/resources/js/scoutingPASS.js b/resources/js/scoutingPASS.js index ca83ba4bd..92d9e509e 100644 --- a/resources/js/scoutingPASS.js +++ b/resources/js/scoutingPASS.js @@ -219,6 +219,7 @@ function addCounter(table, idx, name, data) { // Prevent double-tap zoom on buttons if (type === "button") { input.style.touchAction = 'manipulation'; + input.style.fontSize = '24px'; } return input; }; diff --git a/sw.js b/sw.js new file mode 100644 index 000000000..ad34589fb --- /dev/null +++ b/sw.js @@ -0,0 +1,30 @@ +const CACHE_NAME = `scoutingpass2026`; + +// Use the install event to pre-cache all initial resources. +self.addEventListener('install', event => { + event.waitUntil((async () => { + const cache = await caches.open(CACHE_NAME); + cache.addAll([ + '/ScoutingPASS/', + ]); + })()); +}); + +self.addEventListener('fetch', event => { + event.respondWith((async () => { + try { + // Try to fetch the resource from the network. + const fetchResponse = await fetch(event.request); + + // Save the resource in the cache and return it. + const cache = await caches.open(CACHE_NAME); + cache.put(event.request, fetchResponse.clone()); + return fetchResponse; + } catch (e) { + // If the network request failed, try to get it from the cache. + const cache = await caches.open(CACHE_NAME); + const cachedResponse = await cache.match(event.request); + return cachedResponse || new Response('Network error occurred', { status: 408 }); + } + })()); +}); \ No newline at end of file