-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage-solution-center.php
More file actions
210 lines (123 loc) · 6.29 KB
/
page-solution-center.php
File metadata and controls
210 lines (123 loc) · 6.29 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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<?php
/**
* Template Name: Solution Center
*
* @package Isings_Culligan
*/
get_header();
?>
<div class="page-content-wrapper container">
<div class="row">
<aside class="col-xl-4 order-xl-1 order-12">
<?php get_sidebar(); ?>
</aside>
<div id="primary" class="content-area col-xl-8 order-xl-2 order-1">
<main id="main" class="site-main">
<?php
while ( have_posts() ) :
the_post();
?>
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php the_content();
endwhile; // End of the loop.
?>
<div class="solution-form-wrapper">
<h3>Select Your Problems</h3>
<p>Did you know the quality of your home’s water can cause a variety of issues throughout your home? To find your solution simply check the symptoms associated with your home water problems and click Get Solution!</p>
<form action="<?php site_url(); ?>/solution-recommendation/" method="POST">
<div class="row">
<div class="solution-form-col col-md-6">
<div class="input-wrapper input-heading">By Touch</div>
<div class="input-wrapper">
<input type="checkbox" name="ic_symptom1" value="hard_water" id="1"><label for="1" class="inputprob ic-notselected">Hard Water</label>
</div>
<div class="input-wrapper">
<input type="checkbox" name="ic_symptom2" value="dry_skin" id="2"><label for="2" class="inputprob ic-notselected">Dry Skin / Hair</label>
</div>
<div class="input-wrapper">
<input type="checkbox" name="ic_symptom3" value="stiff_laundry" id="3"><label for="3" class="inputprob ic-notselected">Stiff Laundry</label>
</div>
<div class="input-wrapper">
<input type="checkbox" name="ic_symptom4" value="soap_residue" id="4"><label for="4" class="inputprob ic-notselected">Soap Scum or Residue</label>
</div>
<div class="input-wrapper">
<input type="checkbox" name="ic_symptom5" value="glass_spots" id="5"><label for="5" class="inputprob ic-notselected">Spotty, Cloudy Glassware</label>
</div>
<div class="input-wrapper input-heading">By Smell / Taste</div>
<div class="input-wrapper">
<input type="checkbox" name="ic_symptom11" value="smell_chlorine" id="11"><label for="11" class="inputprob ic-notselected">Chlorine Smell</label>
</div>
<div class="input-wrapper">
<input type="checkbox" name="ic_symptom25" value="smell_egg" id="25"><label for="25" class="inputprob ic-notselected">Rotten Egg Smell</label>
</div>
<div class="input-wrapper">
<input type="checkbox" name="ic_symptom13" value="taste_salty" id="13"><label for="13" class="inputprob ic-notselected">Salty Taste</label>
</div>
<div class="input-wrapper">
<input type="checkbox" name="ic_symptom14" value="taste_bitter" id="14"><label for="14" class="inputprob ic-notselected">Bitter Taste</label>
</div>
</div>
<div class="solution-form-col col-md-6">
<div class="input-wrapper input-heading">By Appearance</div>
<div class="input-wrapper">
<input type="checkbox" name="ic_symptom22" value="rusty" id="22"><label for="22" class="inputprob ic-notselected">Rusty Stains</label>
</div>
<div class="input-wrapper">
<input type="checkbox" name="ic_symptom26" value="bluegreen" id="26"><label for="26" class="inputprob ic-notselected">Blue / Green Stain</label>
</div>
<div class="input-wrapper">
<input type="checkbox" name="ic_symptom27" value="colored" id="27"><label for="27" class="inputprob ic-notselected">Colored Water</label>
</div>
<div class="input-wrapper">
<input type="checkbox" name="ic_symptom28" value="laundry_stains" id="28"><label for="28" class="inputprob ic-notselected">Laundry Stains</label>
</div>
<div class="input-wrapper input-heading">By Contaminant</div>
<div class="input-wrapper">
<input type="checkbox" name="ic_symptom15" value="lead" id="15"><label for="15" class="inputprob ic-notselected">Lead</label>
</div>
<div class="input-wrapper">
<input type="checkbox" name="ic_symptom16" value="chromium" id="16"><label for="16" class="inputprob ic-notselected">Chromium-6</label>
</div>
<div class="input-wrapper">
<input type="checkbox" name="ic_symptom23" value="arsenic" id="23"><label for="23" class="inputprob ic-notselected">Arsenic</label>
</div>
<div class="input-wrapper">
<input type="checkbox" name="ic_symptom21" value="ph" id="21"><label for="21" class="inputprob ic-notselected">pH ( Acidic / Alkaline )</label>
</div>
<div class="input-wrapper">
<input type="checkbox" name="ic_symptom6" value="tds" id="6"><label for="6" class="inputprob ic-notselected">Total Dissolved Solids (TDS)</label>
</div>
</div>
</div> <!-- row -->
<button type="submit" class="solution-button">Get Solution!</button>
</form>
</div>
</main><!-- #main -->
</div><!-- #primary -->
</div>
</div>
<?php get_template_part('template-parts/section-blog'); ?>
<script>
// jQuery(".inputprob").on("click", function(){
// jQuery(this).addClass("ic-selected");
// jQuery(this).removeClass("ic-notselected");
// console.log("yeah baby")
// });
// jQuery(".ic-selected").on("click", function(){
// jQuery(this).removeClass("ic-selected");
// jQuery(this).addClass("ic-notselected");
// });
var problemInputs = document.querySelectorAll('.inputprob');
for (const button of problemInputs) {
button.addEventListener('click', function(event) {
console.log('im running');
})
}
// var toggleSelected = function () {
// console.log('im running');
// // problemInput.classList.toggle('ic-selected');
// }
// problemInput.addEventListener('click', toggleSelected);
</script>
<?php
get_footer();