moved SVG icons into separate file
This commit is contained in:
parent
fc4348d5ec
commit
16394b8a22
@ -3,13 +3,12 @@
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>Shadowrun 2e Ini Tracker</title>
|
||||
<meta name="description" content="A simple Initiative tracker for Shadowrun 2e" />
|
||||
<meta name="author" content="Eclipse729" />
|
||||
<meta name="theme-color" content="" />
|
||||
<!-- <meta name="theme-color" content="" />-->
|
||||
|
||||
<link rel="manifest" href="/icons/sr2ini.webmanifest">
|
||||
|
||||
@ -18,6 +17,7 @@
|
||||
<link type="text/css" rel="stylesheet" href="css/sr2ini.scss">
|
||||
|
||||
<script type="module" src="js/sr2ini.js" defer></script>
|
||||
<script type="module" src="../node_modules/@iconfu/svg-inject/dist/svg-inject.js"></script>
|
||||
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/icons/favicon-32x32.png">
|
||||
@ -26,94 +26,19 @@
|
||||
<link rel="shortcut icon" href="/icons/favicon.ico">
|
||||
<meta name="msapplication-TileColor" content="#004aa5">
|
||||
<meta name="msapplication-config" content="/icons/browserconfig.xml">
|
||||
<meta name="theme-color" content="#004aa5">
|
||||
<!-- <meta name="theme-color" content="#004aa5">-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<svg version="2.0" class="svg-icons">
|
||||
<defs>
|
||||
<!-- add combatant -->
|
||||
<symbol id="add" viewbox="0 0 512 512">
|
||||
<path d="M 192 96 h -96 q 0 -96 96 -96 z" />
|
||||
<rect height="96" width="64" x="224" y="0" />
|
||||
<path d="M 320 96 h 96 q 0 -96 -96 -96 z" />
|
||||
<path d="M 96 128 h 320 v 80 q 0 32 -32 32 h -256 q -32 0 -32 -32 z" />
|
||||
<path d="M 128 272 q 64 32 128 32 v -32 Z" />
|
||||
<path d="M 128 304 q 64 28 128 28 v 52 h -128 Z" />
|
||||
<path d="M 96 416 h -96 q 0 -128 96 -128 z" />
|
||||
<rect x="0" y="448" width="96" height="64" />
|
||||
<path d="M 128 512 v -96 h 128 v 32 h -80 q -16 0 -16 16 v 48 Z" />
|
||||
<rect x="192" y="480" width="64" height="32" />
|
||||
<rect x="288" y="368" width="228" height="64" />
|
||||
<rect x="368" y="288" width="64" height="228" />
|
||||
</symbol>
|
||||
|
||||
<!-- new round -->
|
||||
<symbol id="newround" viewbox="0 0 512 512">
|
||||
<path d="M 464 512 h -160 q -48 0 -48 -48 v -160 q 0 -48 48 -48 h 160 q 48 0 48 48 v 160 q 0 48 -48 48 Z M 444 472 a 16 16 0 1 0 -1 0 Z m 0 -72 a 16 16 0 1 0 -1 0 Z m 0 -72 a 16 16 0 1 0 -1 0 Z m -112 0 a 16 16 0 1 0 -1 0 Z m 0 72 a 16 16 0 1 0 -1 0 Z m 0 72 a 16 16 0 1 0 -1 0 Z " fill-rule="evenodd" />
|
||||
<path d="M 208 320 q -34 34 -68 0 l -113 -113 q -34 -34 0 -68 l 113 -113 q 34 -34 68 0 l 113 113 q 34 34 0 68 l -16 16 h -16 q -64 0 -64 64 v 16 z M 172 264 a 16 16 0 1 0 -1 0 Z m 0 -80 a 16 16 0 1 0 -1 0 Z m 0 -80 a 16 16 0 1 0 -1 0 Z" fill-rule="evenodd" />
|
||||
</symbol>
|
||||
|
||||
<!-- act (-10) -->
|
||||
<symbol id="act" viewBox="0 0 512 512">
|
||||
<rect x="0" y="272" height="64" width="96" />
|
||||
<path d="M 160 64 h 64 v 384 h -64 v -296 l -64 64 l -40 -40 Z" />
|
||||
<path d="M 352 64 h 96 l 64 64 v 256 l -64 64 h -96 l -64 -64 v -256 l 64 -64 l 32 64 h 32 l 32 32 v 192 l -32 32 h -32 l -32 -32 v -192 l 32 -32" fill-rule="evenodd" />
|
||||
</symbol>
|
||||
|
||||
<!-- take damage -->
|
||||
<symbol id="take-damage" viewBox="0 0 512 512">
|
||||
<path d="M 0 288 L 144 224 L 64 32 L 224 128 L 272 0 L 336 144 L 480 96 L 400 224 L 512 304 L 384 352 L 432 512 L 272 416 L 128 512 L 160 352 L 0 288 L 166 267 L 222 290 L 211 346 L 262 312 L 318 346 L 301 290 L 346 273 L 306 245 L 334 200 L 284 217 L 262 166 L 245 211 L 189 178 L 217 245 L 166 267" fill-rule="evenodd" />
|
||||
</symbol>
|
||||
|
||||
<!-- more actions -->
|
||||
<symbol id="more-actions" viewbox="0 0 512 512">
|
||||
<polygon points="32 32 480 32 256 480" />
|
||||
</symbol>
|
||||
|
||||
<!-- edit combatant -->
|
||||
<symbol id="edit" viewbox="0 0 512 512">
|
||||
<polygon points="0 512 0 352 224 128 384 288 160 512" />
|
||||
<polygon points="352 0 512 160 416 256 256 96" />
|
||||
</symbol>
|
||||
|
||||
<!-- clone combatant -->
|
||||
<symbol id="clone" viewbox="0 0 512 512">
|
||||
<rect x="0" y="0" width="512" height="128" />
|
||||
<rect x="0" y="384" width="512" height="128" />
|
||||
<polygon points="128 192 384 192 256 320" />
|
||||
</symbol>
|
||||
|
||||
<!-- delete combatant -->
|
||||
<symbol id="delete" viewbox="0 0 512 512">
|
||||
<polygon points="96 0 416 0 416 64 480 64 480 128 32 128 32 64 96 64" />
|
||||
<path d="M 64 512 H 448 V 160 H 64 V 512 L 128 480 V 192 H 192 V 480 H 224 V 192 H 288 V 480 H 320 V 192 H 384 V 480 H 128" fill-rule="evenodd" />
|
||||
</symbol>
|
||||
|
||||
<!-- K.O. -->
|
||||
<symbol id="ko" viewbox="0 0 512 512">
|
||||
<polygon points="512 0 288 0 288 64 424 64 288 240 288 304 512 304 512 240 376 240 512 64" />
|
||||
<polygon points="512 0 288 0 288 64 424 64 288 240 288 304 512 304 512 240 372 240 512 64" transform="scale(.8) translate(-160,328) rotate(-20)" />
|
||||
<polygon points="512 0 288 0 288 64 424 64 288 240 288 304 512 304 512 240 372 240 512 64" transform="scale(.6) translate(-232,768) rotate(-35) " />
|
||||
</symbol>
|
||||
|
||||
<!-- dead -->
|
||||
<symbol id="dead" viewbox="0 0 512 512">
|
||||
<rect x="208" y="0" width="96" height="512" />
|
||||
<rect x="80" y="112" width="352" height="96" />
|
||||
</symbol>
|
||||
</defs>
|
||||
</svg>
|
||||
<img src="img/icons.svg" onload="SVGInject(this, {'makeIdsUnique': false})" />
|
||||
|
||||
<div class="container">
|
||||
<header class="navbar navbar-expand" data-augmented-ui="tl-2-clip-x tr-clip-y bl-clip-y br-2-clip-x b-scoop-x both">
|
||||
<span class="navbar-brand ps-4">SR2 Initiative Tracker</span>
|
||||
<nav class="container-fluid justify-content-end" aria-label="Main navigation">
|
||||
<button type="submit" class="sr2-button" id="add-combatant-button" title="Add combatant" data-bs-toggle="modal" data-bs-target="#combatant-modal"><svg version="2.0">
|
||||
<use href="#add" />
|
||||
</svg>
|
||||
<button type="submit" class="sr2-button" id="add-combatant-button" title="Add combatant" data-bs-toggle="modal" data-bs-target="#combatant-modal"><svg viewbox="0 0 512 512"><use href="#add" /></svg>
|
||||
</button>
|
||||
<button type="submit" class="sr2-button" id="new-round-button" title="Start new round" data-bs-toggle="modal" data-bs-target="#confirm-modal"><svg version="2.0"><use href="#newround" /></svg>
|
||||
<button type="submit" class="sr2-button" id="new-round-button" title="Start new round" data-bs-toggle="modal" data-bs-target="#confirm-modal"><svg viewbox="0 0 512 512" ><use href="#newround" /></svg>
|
||||
</button>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user