-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfirm.html
More file actions
60 lines (44 loc) · 2.04 KB
/
confirm.html
File metadata and controls
60 lines (44 loc) · 2.04 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Check Pls</title>
<link rel="stylesheet" type="text/css" href="/newstatic/stylesheets/purplestyle.css" />
</head>
<body id="photo">
<div class="info">
<form method=POST>
<!--Title of the page-->
<header>
<h1 id="thumbnails">How does it look?<span>Almost done!</span></h1>
</header>
<!--These are the buttons on the page. They are b4 the main image b/c of formatting. DONT move from here-->
<div class="yes"><input type="radio" name="love" class="thumbnail btn btn-2 btn-2b" id="love">
<label for="love"><span class="btn btn-2 btn-2b highlight" /> I love it! </span></label></div>
<div class="next"><button class="btn btn-2 btn-2b" id="forward"> Next</button> </div>
<input name="key" value = "{{ templatekey }}" type="hidden">
</form>
<form method=GET action="/main">
<div class="no"><button class="btn btn-2 btn-2b" id="hate">I don't like it.</button> </div>
</form>
<form method=GET action="/message">
<div class="back"><button class="btn btn-2 btn-2b" id="back"> Back</button> </div>
<input name="key" value = "{{ templatekey }}" type="hidden">
</form>
<!--This is the center image, it has its own css. Btn was changed to Butn and so on. More info on css-->
<input type="radio" class="thumbnail butn butn-2 butn-2b" name="occasion" value="bir" id="bir-check">
<div class="preview butn butn-2 butn-2b"> {% include 'preview.html' %} </div>
</div>
</body>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"> </script>
<script type="text/javascript">
//Hide the next button at pageload
$('button[id="forward"]').hide();
console.log("Hi")
//Shows next button if user has selected an option
$('input[name="love"]').click( function() {
$('button[id="hate"]').fadeOut(500).hide();
$('button[id="forward"]').fadeIn(500).show();
});
console.log($('input[id="love"]'))
</script>
</html>