-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
177 lines (155 loc) · 6.67 KB
/
index.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
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
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>CENGA KAYIT</title>
<!-- Favicons-->
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" type="image/x-icon" href="img/apple-touch-icon-57x57-precomposed.png">
<link rel="apple-touch-icon" type="image/x-icon" sizes="72x72" href="img/apple-touch-icon-72x72-precomposed.png">
<link rel="apple-touch-icon" type="image/x-icon" sizes="114x114" href="img/apple-touch-icon-114x114-precomposed.png">
<link rel="apple-touch-icon" type="image/x-icon" sizes="144x144" href="img/apple-touch-icon-144x144-precomposed.png">
<!-- GOOGLE WEB FONT -->
<link href="https://fonts.googleapis.com/css?family=Work+Sans:400,500,600" rel="stylesheet">
<!-- BASE CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/menu.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/vendors.css" rel="stylesheet">
<!-- YOUR CUSTOM CSS -->
<link href="css/custom.css" rel="stylesheet">
<!-- MODERNIZR MENU -->
<script src="js/modernizr.js"></script>
</head>
<body>
<div id="preloader">
<div data-loader="circle-side"></div>
</div><!-- /Preload -->
<div id="loader_form">
<div data-loader="circle-side-2"></div>
</div><!-- /loader_form -->
<div class="container-fluid full-height">
<div class="row row-height">
<div class="col-lg-6 content-left">
<div class="content-left-wrapper">
<a href="index.html" id="logo"><img src="http://cenga.org/assets/frontend/images/cengalogo.png" alt=""></a>
<div id="social">
<ul>
<li><a href="#0"><i class="icon-facebook"></i></a></li>
<li><a href="#0"><i class="icon-twitter"></i></a></li>
<li><a href="#0"><i class="icon-google"></i></a></li>
<li><a href="#0"><i class="icon-linkedin"></i></a></li>
</ul>
</div>
<!-- /social -->
<div>
<figure><img src="assets/graduated.png" alt="" class="img-fluid"></figure>
<h2>9 MART 2020 MEZUNLAR ETKİNLİĞİ</h2>
<p>Açıklama yazısı veya etkinlik takvimi</p>
<a href="#0" class="btn_1 rounded">DETAYLI BİLGİ</a>
</div>
<div class="copy">© 2020 CENGA</div>
</div>
<!-- /content-left-wrapper -->
</div>
<!-- /content-left -->
<div class="col-lg-6 content-right" id="start">
<div id="wizard_container">
<div id="top-wizard">
<div id="progressbar"></div>
</div>
<!-- /top-wizard -->
<form id="wrapped" method="POST">
<input id="website" name="website" type="text" value="">
<!-- Leave for security protection, read docs for details -->
<div id="middle-wizard">
<div class="submit step">
<h3 class="main_question">Lütfen bilgilerinizi giriniz.</h3>
<div id="formcontainer"/></div>
<div class="form-group terms">
<label class="container_check"><a href="#" data-toggle="modal" data-target="#terms-txt">Üyelik Sözleşmesi</a>'ni okudum, onaylıyorum.
<input type="checkbox" name="terms" value="Yes" class="required">
<span class="checkmark"></span>
</label>
<label class="container_check">Tarafıma ticari elektronik ileti göndermesi için iznim vardır.
<input type="checkbox" name="emessage" value="Yes" class="">
<span class="checkmark"></span>
</label>
</div>
<!-- /row -->
</div>
<!-- /step-->
<!-- /step-->
</div>
<!-- /middle-wizard -->
<div id="bottom-wizard">
<button type="button" name="backward" class="backward">Geri</button>
<button type="button" name="forward" class="forward">İleri</button>
<button type="submit" name="process" class="submit">Kaydet</button>
</div>
<!-- /bottom-wizard -->
</form>
</div>
<!-- /Wizard container -->
</div>
<!-- /content-right-->
</div>
<!-- /row-->
</div>
<!-- /container-fluid -->
<!-- COMMON SCRIPTS -->
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/common_scripts.min.js"></script>
<script src="js/velocity.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.8.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.8.1/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.8.1/firebase-database.js"></script>
<script>
var formcontainer = document.getElementById("formcontainer");
var firebaseConfig = {
apiKey: "AIzaSyB07Q3W8DIAIDMt_xR_3ghAZUdIzTmek5I",
authDomain: "cenga-kayit.firebaseapp.com",
databaseURL: "https://cenga-kayit.firebaseio.com",
projectId: "cenga-kayit",
storageBucket: "cenga-kayit.appspot.com",
messagingSenderId: "662468528605",
appId: "1:662468528605:web:2b06ccdb6d9bd6506e0e34"
};
firebase.initializeApp(firebaseConfig);
var activeForm = firebase.database().ref('activeForm');
var selectArray = [];
activeForm.on('value', function(form) {
var formFieldsRef = firebase.database().ref(form.val() + '/formfields');
formFieldsRef.on('value', function(formFields) {
formFields.forEach(function(childformFields) {
switch(childformFields.val().type) {
case 'text':
var formHtml = '<div class="form-group"><input type="text" name="'+childformFields.val().name+'" class="form-control '+childformFields.val().required+'" placeholder="'+childformFields.val().placeholder+'"></div>';
break;
case 'select':
selectArray.push(childformFields.val().name);
var formHtml = '<div class="form-group"> <div class="styled-select clearfix"> <select class="wide '+childformFields.val().required+'" name="'+childformFields.val().name+'">';
formHtml += '<option value="">'+childformFields.val().placeholder+'</option>';
childformFields.val().options.forEach(function(option){
formHtml += '<option value="' + option.value + '">' + option.placeholder + '</option>';
});
formHtml += '</select></div></div>';
break;
default:
// code block
}
formcontainer.innerHTML += formHtml;
selectArray.forEach(function(item){
$('select[name="'+item+'"]').niceSelect();
});
});
});
});
</script>
<script src="js/functions.js"></script>
<!-- Wizard script -->
<script src="js/survey_func.js"></script>
</body>
</html>