|
|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
@ -7,39 +8,49 @@
|
|
|
|
|
<link rel="icon" type="image/png" sizes="32x32" href="./favicon-32x32.png">
|
|
|
|
|
<link rel="icon" type="image/png" sizes="16x16" href="./favicon-16x16.png">
|
|
|
|
|
<link rel="manifest" href="./site.webmanifest">
|
|
|
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
|
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" crossorigin="anonymous"></script>
|
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/hammer.js/2.0.8/hammer.min.js"></script>
|
|
|
|
|
<script type="module" src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/ionic.esm.js"></script>
|
|
|
|
|
<script nomodule src="https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/ionic.js"></script>
|
|
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ionic/core/css/ionic.bundle.css" />
|
|
|
|
|
<link rel="stylesheet" href="style.css">
|
|
|
|
|
<title>Photo voter</title>
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
<div class="container">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-12 col-sm-10">
|
|
|
|
|
<img id="candidate" src="art.jpg" alt="art" class="img-fluid">
|
|
|
|
|
<div id="loading" class="text-center m-5" style="display: none;">
|
|
|
|
|
<div class="spinner-border" role="status">
|
|
|
|
|
<span class="visually-hidden">Loading...</span>
|
|
|
|
|
</div>
|
|
|
|
|
<ion-app>
|
|
|
|
|
<ion-content>
|
|
|
|
|
<img id="candidate" src="" alt="Image for vote">
|
|
|
|
|
<ion-grid id="buttons">
|
|
|
|
|
<ion-row>
|
|
|
|
|
<ion-col size="2">
|
|
|
|
|
<ion-fab vertical="bottom" horizontal="start">
|
|
|
|
|
<ion-fab-button id="help" size="small" color="light" disabled>
|
|
|
|
|
<ion-icon name="help-sharp"></ion-icon>
|
|
|
|
|
</ion-fab-button>
|
|
|
|
|
</ion-fab>
|
|
|
|
|
|
|
|
|
|
</ion-col>
|
|
|
|
|
<ion-col size="5">
|
|
|
|
|
<ion-fab vertical="bottom" horizontal="end">
|
|
|
|
|
<ion-fab-button id="dislike">
|
|
|
|
|
<ion-icon name="thumbs-down-sharp"></ion-icon>
|
|
|
|
|
</ion-fab-button>
|
|
|
|
|
</ion-fab>
|
|
|
|
|
|
|
|
|
|
</ion-col>
|
|
|
|
|
<ion-col size="5">
|
|
|
|
|
<ion-fab vertical="bottom" horizontal="start">
|
|
|
|
|
<ion-fab-button id="like" color="success">
|
|
|
|
|
<ion-icon name="thumbs-up-sharp"></ion-icon>
|
|
|
|
|
</ion-fab-button>
|
|
|
|
|
</ion-fab>
|
|
|
|
|
</ion-col>
|
|
|
|
|
</ion-row>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="d-none d-sm-block col-sm-2">
|
|
|
|
|
<div class="row mb-1">
|
|
|
|
|
<button id="like" type="button" class="btn btn-success btn-lg vote-option">like</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row mb-1">
|
|
|
|
|
<button id="dislike" type="button" class="btn btn-danger btn-lg vote-option">dislike</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row mb-1">
|
|
|
|
|
<button id="next" type="button" class="btn btn-secondary btn-lg vote-option">next</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<script src="index.js"></script>
|
|
|
|
|
|
|
|
|
|
</ion-content>
|
|
|
|
|
</ion-app>
|
|
|
|
|
|
|
|
|
|
<script src="app.js"></script>
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
</html>
|