-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrandom.html
91 lines (69 loc) · 4.72 KB
/
random.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Random</title>
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="https://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
<!-- <script type="text/javascript" src="assets/js/ui.js"></script> -->
<!-- JQUERY -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- BOOTSTRAP -->
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<!-- ANGULARJS -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.4/angular.min.js"></script>
<!-- LOGO FONT AWESOME -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<!-- BOOTSTRAP -->
<!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"> -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
<!-- socket io -->
<script src="/socket/socket.io.js"></script>
<!-- module et controller -->
<script src="./controllers/controllers-pages.js"></script>
<!-- style personnaliser -->
<link rel="stylesheet" href="./css/style.css">
</head>
<body class="container" ng-app="monApp">
<!-- Page 1 -->
<div data-role="page" id="page-one" data-title="Random" ng-controller="page1" ng-keypress="randomEnter($event)">
<div data-role="header" data-theme="b" id="header">
<h1>Propositions</h1>
<a ng-click="afficheListe()" href="#page-two" data-icon="arrow-r" data-iconpos="right" data-corners="false" data-transition="pop" data-theme="c">Ajouter a la liste</a>
</div>
<div data-role="content" id="body">
<!-- <h2>Je vais manger </h2> -->
<div id="divResult"></div>
<button ng-click="btnRandom()" data-corners="false" class="ui-btn ui-shadow">Random</button>
<div id="totalResultatRandom"><p id="occurenceElements" ng-repeat="elements in occurenceTab"><strong>{{elements[0]}}</strong> : {{elements[1]}}</p> </div>
</div>
<div data-role="footer" data-theme="b" id="footer">
Copyright 2020 Nathan Cohen
</div>
</div>
<!-- Page 2 -->
<div data-role="page" id="page-two" data-title="Liste" ng-controller="page2">
<div data-role="header" data-theme="b" id="header">
<h1>Liste</h1>
<a id="faireChoix" ng-click="faireChoix" href="#page-one" data-icon="home" data-iconpos="right" data-corners="false" data-transition="pop" data-theme="c">Faire un choix</a>
</div>
<div data-role="content" id="body">
<span id="enCours"><strong>{{keyRestauration}}</strong></span>
<input id="proposition" type="text" ng-model="keyRestauration" data-corners="false" ng-keypress="ajouterEnter($event)" placeholder="Ajouter a la liste..">
<button ng-click="ajouter()" data-corners="false" type="submit">Ajouter</button>
<div id="listeDesRestaurants"><p ng-repeat="elem in myTabNote track by $index" ng-if="elem != ''">- {{elem}} <a ng-click="deleteOne(this.elem)" class="delete"> <i class='fas fa-times-circle'></i></a></p></div>
<button ng-click="SupprimerTout()" data-corners="false" type="submit">Supprimer la liste entière</button>
</div>
<div data-role="footer" data-theme="b" id="footer">
Copyright 2020 Nathan Cohen
</div>
</div>
</body>
</html>