| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468 |
- <!DOCTYPE html>
- <html lang="fr" dir="ltr">
- <head>
- <meta charset="utf-8" />
- <title>CanalPlus</title>
- <link rel="manifest" href="manifest.json">
- <meta name="viewport" content="width=device-width">
- <meta name="theme-color" content="#587b8c">
- <link rel="icon" href="favicon.ico">
- <link rel="shortcut icon" href="favicon.ico">
- <link rel="apple-touch-icon" href="img/iphone-icon.png">
- <!--<style type="text/css">
- body.hidden{
- visibility:hidden;
- background-color:#E3EAED;
- background-repeat:no-repeat;
- background-position-x:50%;
- background-position-y:50%;
- background-image:url(img/loading.svg)
- }
- </style>-->
- <link rel="stylesheet" href="css/canalbis.css" type="text/css" media="all">
- <noscript>
- <style type="text/css">body.nojs{visibility:visible;}</style>
- </noscript>
- <script src="js/jquery-3.2.1.min.js" defer></script>
- <script src="js/jquery-ui.min.js" defer></script>
- <!--https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.11/handlebars.min.js-->
- <script src="js/handlebars.min.js" defer></script>
- <script src="js/canalbis.js" defer></script>
-
- </head>
- <body class="nojs">
- <header>
- <section>
- <ul>
- <li><span class="modal-open btn">⇋</span></li>
-
-
- </ul>
- </section>
-
- <section>
- <nav>
- <div>
- <button aria-label="Ouvrir menu" class="bt-menu"><svg viewBox="0 0 459 459" enable-background="new 0 0 459 459"><path d="M0 382.5h459v-51h-459v51zm0-127.5h459v-51h-459v51zm0-178.5v51h459v-51h-459z"></path></svg></button>
- </div>
- <div>
- <button aria-label="Fermer menu" class="bt-menu-close">
- <svg viewBox="0 0 371.23 371.23" enable-background="new 0 0 371.23 371.23"><path d="M371.23 21.213l-21.212-21.213-164.403 164.402-164.402-164.402-21.213 21.213 164.402 164.402-164.402 164.403 21.213 21.212 164.402-164.402 164.403 164.402 21.212-21.212-164.402-164.403z"></path></svg>
- </button>
-
- </div>
- <div>
- <a href="#anomalies">Anomalies</a>
- </div>
- <div>
- <a href="#vannes">Vannes</a>
- </div>
- <div>
- <a href="#niveaux">Niveaux</a>
- </div>
-
- <div>
- <a href="#contacts">Contacts</a>
- </div>
- <div>
- <a href="#interventions">Interventions</a>
- </div>
- <div>
- <a href="#parametres">Paramètres</a>
- </div>
- </nav>
- </section>
- </header>
- <section class="main">
- <noscript>
- <h1>Appli canal de la Bruche</h1>
- Pour accéder à toutes les fonctionnalités de ce site, vous devez activer JavaScript. Voici les <a href="//www.enable-javascript.com/fr/" target="js">
- instructions pour activer JavaScript dans votre navigateur Web
- </a>
- </noscript>
- </section>
- <section class="footer-top">
-
- <pre class="results__display-wrapper"><code class="results-display"></code></pre>
-
-
- </section>
-
- <footer>
- <nav class="obs">
- <div><span class="modal-open">Alerte</span></div>
- <div></div>
-
- </nav>
- <span id="cRetour" class="cInvisible"></span>
- </footer>
- <section class="modal-background"></section>
- <section class="modal-content">
- <button class="data-sync" disabled>Sync</button>
- <div class="sync-result"></div>
- <br>
- <span class="modal-close">X</span>
-
- </section>
- <section class="modal-content-1" style="display:none">
- <form class="contact" enctype="multipart/form-data">
- <h2>Contact</h2>
- <aside>
- <input name="title" required placeholder="titre du message" type="text"><br>
- <input name="email" required placeholder="votre email message" type="email"><br>
- <textarea name="message" placeholder="votre message"></textarea><br>
- <input type="file" required id="imgfile" name="img" accept="image/*"><br>
- <input name="lat" id="input-lat" type="hidden"><input id="input-lng" name="lng" type="hidden">
- <button type="button" class="send-message">Envoyer</button>
- </aside>
- <span class="send-result"></span>
- <br>
- <span class="modal-close">X</span>
- </form>
- </section>
-
- <script id="parametres" type="x-tmpl-mustache">
- <h1>Paramètres</h1>
- <form class="data-form param" enctype="multipart/form-data">
- <div class="input-group">
- <label class="label" for="year_week">Campagne</label>
- <input class="input-text" id="year_week" name="year_week" type="text" />
- </div>
- <div class="input-group">
- <label class="label" for="user">Utilisateur</label>
- <select class="input-select" id="user" name="user">
- <option value="2">Clément VIX</option>
- <option value="4">Luc TIRARD</option>
- <option value="6">Freddy SITTLER</option>
- </select>
- </div>
- <div class="input-group">
- <label class="label" for="start">Heure de début d'astreinte</label>
- <input class="input-text" id="start" name="start" type="text" pattern="^(1?[0-9]|2[0-3]):[0-5][0-9]$" title="HH:MM" required/>
- </div>
- <div class="input-group">
- <label class="label" for="end">Heure de fin d'astreinte</label>
- <input class="input-text" id="end" name="end" type="text" pattern="^(1?[0-9]|2[0-3]):[0-5][0-9]$" title="HH:MM" required/>
- </div>
- <button class="button-submit btn btn-save" type="submit">Sauvegarder</button>
- </form>
-
- </script>
- <script id="niveaux" type="x-tmpl-mustache">
- <h1>Niveaux</h1>
- <h2>Créer un enregistrement</h2>
- <form class="data-form niveau" enctype="multipart/form-data">
- <div class="input-group">
- <label class="label" for="point">Point de relevé</label>
- <select class="input-select" id="point" name="point">
- <option value="ECH_S1">Station n°1 - Bief n°1</option>
- <option value="ECH_BA1">Echelle ouvrage AD</option>
- <option value="ECH_BA2">Echelle ouvrage AS</option>
- <option value="ECH_PA1">Echelle ouvrage PA1</option>
- <option value="ECH_E1">Echelle écluse n°1</option>
- <option value="ECH_E2">Echelle écluse n°2</option>
- <option value="ECH_E7">Echelle écluse n°7</option>
- <option value="ECH_S2">Station n°2 - Bief n°8</option>
- <option value="ECH_E8">Echelle écluse n°8</option>
- <option value="ECH_RD222">Echelle pont RD 222</option>
- <option value="ECH_S3">Station n°3 - Bief n°9</option>
- <option value="ECH_S4">Station n°4 - Bief n°11</option>
- <option value="ECH_E4">Echelle écluse n°4</option>
- <option value="ECH_PF">Echelle pont SNCF Bief 11</option>
- <option value="ECH_D6">Echelle déversoir D6</option>
- <option value="ECH_D11AM">Echelle amont D11</option>
- <option value="ECH_D11AV">Echelle aval D11</option>
- </select>
- </div>
- <div class="input-group">
- <label class="label" for="level">Niveau</label>
- <input class="input-text" id="level" name="level" type="number" title="doit être un numérique" required />
- </div>
- <button class="button-submit btn btn-save" type="submit">Sauvegarder</button>
- </form>
- {{#if data}}
- <button class="del btn btn-delete" disabled>Supprimer</button>
- <h2>Les données</h2>
- <table class="selectable">
- <thead>
- <tr><td>Camp</td><td>date</td><td>niv</td><td>pt</td></tr>
- </thead>
- <tbody>
- {{#data}}
- <tr data-id="{{tstamp}}" data-type="niveaux"><td>{{campaign}}</td><td>{{#todate}}{{tstamp}}{{/todate}}</td><td>{{level}}</td><td>{{point}}</td></tr>
- {{/data}}
- </tbody>
- </table>
- {{/if}}
- </script>
- <script id="anomalies" type="x-tmpl-mustache">
- <h1>Anomalie</h1>
- <h2>Créer un enregistrement</h2>
- <form class="data-form anomalie" enctype="multipart/form-data">
- <div class="input-group">
- <label class="label" for="type">Type</label>
- <select id="type" name="type">
- <option value="1">Obstacle à l'écoulement</option>,
- <option value="2">Obstacle au passage sur le domaine</option>,
- <option value="3">Dégradation ouvrage</option>,
- <option value="4">Dégradation hors ouvrage</option>,
- <option value="5">Occupation illicite du Domaine</option>,
- <option value="6">Autre</option>
- </select>
- </div>
- <div class="input-group">
- <label class="label" for="desc">Description</label>
- <textarea id="desc" name="desc" rows="6" required></textarea>
- <input type="hidden" id="coordinates" name="coordinates" required>
- </div>
- <div class="input-group-img">
- <div class="input-group img-group" id="img-group">
- <label class="label" for="imgfile">Photo</label>
- <input class="input-file input-file-img btn" type="file" name="img" accept="image/*" capture><br>
- <input type="hidden" name="imgdata" class="hidden-file-img" value="">
- <img src="#" class="img-preview" width="128" />
- <button class="file-del btn btn-delete">Supprimer</button>
- </div>
-
- </div>
- <div>
- <button class="btn btn-duplicate btn-img">Ajouter une image</button>
- </div>
- <button class="button-submit btn btn-save" type="submit">Sauvegarder</button>
- </form>
- <h2>Les données</h2>
- {{#if data}}
- <button class="del btn btn-delete" disabled>Supprimer</button>
- <table class="selectable">
- <thead>
- <tr><td>date</td><td>type</td><td>desc</td></tr>
- </thead>
- <tbody>
- {{#data}}
- <tr data-id="{{tstamp}}" data-type="anomalies"><td>{{#todate}}{{tstamp}}{{/todate}}</td><td>{{type}}</td><td>{{desc}}</td></tr>
- {{/data}}
- </tbody>
- </table>
- {{/if}}
- </script>
- <script id="index" type="x-tmpl-mustache">
- <h1>Canal de la Bruche</h1>
-
- <div class="home-pp">
- <a href="#anomalies">
- <div>
- <picture>
- <source type="image/svg+xml" srcset="img/alert.svg" media="(min-width:240px)">
- <img src="img/alert.png" width="224" alt="" />
- </picture><h3>
- Anomalies
- </h3>
- </div>
- </a>
- <a href="#vannes">
- <div>
- <picture>
- <source type="image/svg+xml" srcset="img/valve.svg" media="(min-width:240px)">
- <img src="img/valve.png" width="224" alt="" />
- </picture><h3>
- Vannes
- </h3>
- </div>
- </a>
- <a href="#niveaux">
- <div>
- <picture>
- <source type="image/svg+xml" srcset="img/levels.svg" media="(min-width:240px)">
- <img src="img/levels.png" width="224" alt="" />
- </picture><h3>
- Niveaux
- </h3>
- </div>
- </a>
- </div>
- <div class="home-pp">
- <a href="#contacts">
- <div>
- <picture>
- <source type="image/svg+xml" srcset="img/add-contact.svg" media="(min-width:240px)">
- <img src="img/add-contact.png" width="224" alt="" />
- </picture>
- <h3>
- Contacts
- </h3>
- </div>
- </a>
- <a href="#interventions">
- <div>
- <picture>
- <source type="image/svg+xml" srcset="img/intervention.svg" media="(min-width:240px)">
- <img src="img/intervention.png" width="224" alt="" />
- </picture>
- <h3>
- Interventions
- </h3>
- </div>
- </a>
- <a href="#parametres">
- <div>
- <picture>
- <source type="image/svg+xml" srcset="img/high-voltage.svg" media="(min-width:240px)">
- <img src="img/high-voltage.png" width="224" alt="" />
- </picture>
- <h3>
- Paramètres
- </h3>
- </div>
- </a>
- </div>
- </script>
- <script id="interventions" type="x-tmpl-mustache">
- <h1>Interventions</h1>
-
- {{#if contact}}
- <select class="select-contact">
- <option>Sélection du contact à avertir</option>
- {{#contact}}
- {{#if mobile}}
- {{#if_eq mobile}}
- <option value="{{phone}}" selected>{{name}} {{firstname}}</option>
- {{else}}
- <option value="{{phone}}">{{name}} {{firstname}}</option>
- {{/if_eq}}
- {{/if}}
- {{/contact}}
- </select>
- {{/if}}
-
- {{#if intervention}}
- <div>
-
- <a href="sms:{{intervention}}?body=début d'intervention" data-ng-message="début d'intervention" class="intervention-start btn" data-type="start">Début</>
- <a href="sms:{{intervention}}?body=fin d'intervention" data-ng-message="fin d'intervention" class="intervention-end btn" data-type="end">Fin</a>
- </div>
- {{/if}}
- </script>
- <script id="contacts" type="x-tmpl-mustache">
- <h1>Contacts</h1>
- {{#if contact}}
- <ul class="list-contact">
- {{#contact}}
- <li>
- {{#if email}}
- <a href="mailto:{{email}}?subject=De canalplus" class="btn">✉</a>
- {{/if}}
- <a href="tel:{{phone}}" class="btn">☎</a>
- {{#if mobile}}
- <a href="sms:{{phone}}?body=De canalplus" class="btn">🗩</a>
- {{/if}}
- {{name}} {{firstname}}
- </li>
- {{/contact}}
- </ul>
- {{/if}}
-
- </script>
- <script id="vannes" type="x-tmpl-mustache">
- <h1>Vannes</h1>
- <h2>Créer un enregistrement</h2>
- <form class="data-form vanne" enctype="multipart/form-data">
- <div class="input-group">
- <label class="label" for="point">Ouvrage</label>
- <select class="input-select" id="point" name="point">
- <option value="PA1">PA1</option>
- <option value="AD">AD</option>
- </select>
- </div>
- <div class="input-group">
- <label class="label" for="valve">Ouvrage</label>
- <select class="input-select" id="valve" name="valve">
- <option value="Ouverture vanne alimentation">Ouverture vanne alimentation</option>
- <option value="Ouverture vanne 1">Ouverture vanne 1</option>
- <option value="Ouverture vanne 2">Ouverture vanne 2</option>
- <option value="Ouverture vanne 3">Ouverture vanne 3</option>
- </select>
- </div>
- <div class="input-group">
- <label class="label" for="level">Niveau</label>
- <input class="input-text" id="level" name="level" type="number" title="doit être un numérique" required />
- </div>
- <button class="button-submit btn btn-save" type="submit">Sauvegarder</button>
- </form>
- <h2>Les données</h2>
- {{#if data}}
- <button class="del btn btn-delete" disabled>Supprimer</button>
- <table class="selectable">
- <thead>
- <tr><td>camp</td><td>date</td><td>niv</td><td>pt</td><td>vanne</td></tr>
- </thead>
- <tbody>
- {{#data}}
- <tr data-id="{{tstamp}}" data-type="vannes"><td>{{campaign}}</td><td>{{#todate}}{{tstamp}}{{/todate}}</td><td>{{level}}</td><td>{{point}}</td><td>{{valve}}</td></tr>
- {{/data}}
- </tbody>
- </tableclass="selectable">
- {{/if}}
- </script>
- </body>
- </html>
|