Skip to content
Snippets Groups Projects
Select Git revision
  • 6703ed7e27d95bd9b18b740e7a6d0c20c1ab2608
  • main default
  • register-forward
  • comments
  • 5.1.0
  • 5.0.4-test
  • 5.0.4
  • learn-links
  • overleaf-v5
  • release/4.2.0
  • release/4.1.3
  • upstream/4.2.0
  • 4.1
  • uid-auth
  • 4-0-5
  • sharelatex-4.0.0
  • oidc-3.5.7
  • oidc
  • ldap
  • texlive-full
  • msm-github-codespaces
  • v0.2.0
  • v0.1.4
  • v0.1.3
  • v0.1.2
  • v0.1.1
  • v0.1.0
  • v0.0.1-nightly
28 results

create-and-compile-project.spec.ts

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    RowWorkItem.svelte 1.18 KiB
    <script lang="ts">
        import { calculateE, calculateS, calculateV } from "./estimator";
        import { roundOne } from "./utils";
    
        export let a: number
        export let b: number
        export let c: number;
        $: E = ( typeof a !== "number" || typeof b !== "number") ? null : calculateE({a,b,c})
        $: S = ( typeof a !== "number" || typeof b !== "number") ? null : calculateS({a,b,c})
        $: V = ( typeof a !== "number" || typeof b !== "number") ? null : calculateV({a,b,c})
        $: SEPercent = (typeof S !== 'number' || typeof E !== 'number') ? null : (S/E)*100
    
        function hideNull(input: any|null): string {
            return input === null ? "-" : ""+input;
        }
    </script>
    
    <tr>
        <td class="tg-0lax">
            <input type="number" class="a-input" bind:value="{a}">
        </td>
        <td class="tg-0lax">
            <input type="number" class="c-input" bind:value="{c}">
        </td>
        <td class="tg-0lax">
            <input type="number" class="c-input"  bind:value="{b}">
        </td>
        <td class="tg-0lax">{hideNull(roundOne(E))}</td>
        <td class="tg-0lax">{hideNull(roundOne(S))}</td>
        <td class="tg-0lax">{hideNull(roundOne(SEPercent))}%</td>
        <td class="tg-0lax">{hideNull(roundOne(V))}</td>
    </tr>