123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- <!doctype html>
- <head>
- <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
- <meta content="utf-8" http-equiv="encoding">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="mobile-web-app-capable" content="yes">
- <meta name="theme-color" content="#dddddd">
- <link rel="icon" sizes="128x128" href="icon.png">
- <style>
- * {
- margin: 0;
- padding: 0;
- }
- #splash {
- background-color: rgb(50, 75, 55);
- color: rgb(207, 207, 207);
- padding: 10%;
- margin: 0%;
- font-size: 4em;
- font-weight: bolder;
- padding-bottom: 200%;
- height: 100%;
- font-family: Arial, Helvetica, sans-serif;
- }
- </style>
- </head>
- <body>
- <div id="splash">
- loading
- </div>
- <div id="app" style="display: none">
- <nav>
- <div class="logo">{{title}}</div>
- <div id="nav-icon">M</div>
- <input id="nav-toggle" type="checkbox">
- <div id="nav-items">
- <button @click="search_visible = !search_visible">Sucheinstellungen</button>
- </div>
- </nav>
- <div class="content">
- <div class="panel" v-if="search_visible">
- <div align="right">
- <button @click="search_visible = !search_visible">X</button>
- </div>
- <h1>Neue Suche</h1>
- <form>
- <div class="form-group">
- <label>Suchbegriff(e), durch Leerzeichen getrennt</label>
- <input v-model="query.search">
- </div>
- <div class="form-group">
- <label>Maximalpreis</label>
- <input type="number" v-model="query.maxprice">
- </div>
- <div class="form-group">
- <label>Mindestpreis</label>
- <input type="number" v-model="query.minprice">
- </div>
- <div class="form-group">
- <input type="checkbox" v-model="query.restricted">
- <label>WBK noetig?</label>
- </div>
- <div class="form-group">
- <label>Such-URL (Kann man alternativ von eGun-Suche kopieren)</label>
- <input v-model="query_url">
- </div>
- </form>
- <div>
- <a v-if="query_url" v-bind:href="query_url" target="_">Suche testen</a>
- </div>
- <div align="right">
- <button @click="add_query()">Suche hinzufuegen</button>
- </div>
-
- Bestehende Suchen:
- <div v-for="(query, url) in queries" style="font-size: 0.8em">
- <button @click="delete_query(url)">X</button> <i>
- "{{display_query(url)}}"
- </i>
- </div>
-
- <div align="right">
- <button @click="save_account()">Alle Suchen permanent speichern</button>
- </div>
- </div>
- <div v-for="query in queries">
- <div class="panel" v-for="auction in query.auctions" v-if="auction.price != null && !auction.is_price_final">
- <div class="grid-auto">
- <div>
- <img :src="auction.thumb" style="vertical-align:middle;">
- </div>
- <div><a :href="auction.url">{{auction.desc}}</a></div>
- <div>
- <div class="badge">{{auction.price}} EUR</div>
- </div>
- <div>{{ts_to_remaining(auction.timestamp)}}</div>
- <a v-bind:href="auction.gcal">Add to cal</a>
- </div>
- </div>
- </div>
- <template>
- <div class="panel" v-if="!account">
- {{account}}
- Hi! Du hast noch keinen Account oder es ist keiner geladen. Macht aber nichts, gib einfach Deinen ein oder
- denke Dir einen aus.
- <input v-model="new_account">
- <button @click="account=new_account; window.location.hash = new_account; load_account()">OK</button>
- </div>
- </template>
- </div>
- </div>
- </body>
- <link rel="stylesheet" href="https://rawgit.com/woelper/lilac/master/lilac.min.css">
- <!-- Moment.js library -->
- <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
- <!-- moment-duration-format plugin -->
- <script
- src="https://cdnjs.cloudflare.com/ajax/libs/moment-duration-format/1.3.0/moment-duration-format.min.js"></script>
- <script defer src="https://cdn.jsdelivr.net/npm/vue@2.5.13/dist/vue.min.js"></script>
- <script defer src="app.js"></script>
- <style>
- :root {
- --main-color: #2e442f;
- }
- .nav-items {
- margin-left:auto; margin-right:0;
- }
- </style>
|