-
Notifications
You must be signed in to change notification settings - Fork 3
/
example.php
52 lines (48 loc) · 1.77 KB
/
example.php
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
<?php
if(!isset($_GET['url'])){
//the url to the google form
$_GET['url'] = 'https://docs.google.com/forms/d/e/1FAIpQLSdz63Nn6HJw7h2SSJT88-3R63VBq0g7-K4f1xqUSzTykWkRgg/viewform';
}
include("form.php");//include the google form
?>
<style>
/* make the backgound white*/
.freebirdLightBackground,.freebirdSolidBackground,body{
background-color: white !important;
color: black !important;
}
body{
background-image: url('https://lh6.googleusercontent.com/Hg_pKUt7zv8FUokb5DMz0h88wR52H_6yREYm8Ei-zftGJBfnS4ym3mmBCxdFskA0dpA8t6IHSt5f3F_5n4uo4Uv8bp7AsatykB_8z2rPaFqOK-mJ0BlDSYHonBf5I88tfg=w740');
background-size: cover;
}
/*Hide banners*/
.freebirdFormviewerViewFooterDisclaimer,
.freebirdFormviewerViewFooterPageBreak,
.freebirdFormviewerViewHeaderThemeStripe,
.freebirdFormviewerViewFeedbackSubmitFeedbackButton,
.freebirdFormviewerViewNavigationPasswordWarning{
display: none !important
}
</style>
<script>
var PageLoadTime = new Date();
//Hide questions that end in _hidden
for(question in Question_Index){
if(question.substr(question.length-7) == '_hidden'){
Question_Index[question].style.display = 'none';
}
}
//Hide headers that end in _hidden
for(question in Headers_Index){
if(question.substr(question.length-7) == '_hidden'){
Headers_Index[question].style.display = 'none';
}
}
//Set dynamic default value of questions
question_val('form_open_time_hidden', PageLoadTime.toISOString(), false);
question_val('form_random_loading_id_hidden', Math.floor(Math.random() * 1000000), false);
question_val('user_agent_hidden', navigator.userAgent, false);
question_val('screen_width_hidden', screen.width, false)
question_val('screen_height_hidden', screen.height, false);
question_val('form_page2_open_time_hidden', PageLoadTime.toISOString(), false);
</script>