-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
183 lines (162 loc) · 5.94 KB
/
test.html
File metadata and controls
183 lines (162 loc) · 5.94 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
<!DOCTYPE html>
<html>
<head>
<title>Test feedback-script</title>
<meta charset="utf-8" />
<style>
html {
background-color:#eee;
}
body {
width:800px;
margin:50px auto;
width:750px;
font-family:Arial, sans-serif;
background-color:white;
padding:50px;
}
</style>
<!--<script src="http://ac.givetwise.dk/siteanalyze_fb/feedback.js"></script>-->
<script>
var _szfb_config = _szfb_config || [];
_szfb_config.push({"feedbackid": 1, "layout": {"anim": true, "anim_duration": 300, "colors": {"background": "#9e9eff", "text": "black" }, "comment": false, "corners": 5, "font": {"name": "Verdana", "size": 11 }, "position": "E", "preset": {"count": 2, "highlightRange": false, "reversed": false, "type": "janej" }, "width": 250 }, "matches": {"include": [ {"m": 1, "s": "test" } ], "exclude": [] }, "texts": {"button": "BUTTON_VALUE", "close": "Close", "comment": "DEFAULT_COMMENT_BOX_VALUE", "confirmation": "CONFIRMATION_VALUE", "errors": {"commit": "Der opstod en fejl...", "grade": "ERROR_IF_NO_SCALE_VALUE" }, "hide": "Hide", "question": "Mortens", "title": "Udfyld tekstfelt" } });
//_szfb_config.push({"feedbackid": 1, "layout": {"anim": true, "anim_duration": 300, "colors": {"background": "#e4302a", "text": "white" }, "comment": true, "corners": 8, "font": {"name": "Verdana", "size": 11 }, "position": "SE", "preset": {"count": 5, "highlightRange": false, "reversed": false, "type": "smiley" }, "width": 250 }, "matches": { "exclude": [ {"m": 1, "s": "uuu" }, {"m": 1, "s": "cxzcxz" } ], "include": [ {"m": 1, "s": "ooo" }, {"m": 1, "s": "test" } ]}, "texts": {"button": "Send feedback", "close": "Luk", "comment": "Hvis du skriver en kommentar, hjælper du os med at gøre denne side bedre.", "confirmation": "Tusind tak for dit svar!", "errors": {"commit": "Der opstod en fejl...", "grade": "Besvar venligst spørgsmålet" }, "hide": "Skjul", "question": "Besvar venligst spørgsmålet", "title": "Udfyld tekstfelt" } });
</script>
<script src="feedback.js"></script>
<script type="text/javascript">
/*var _sz = _sz || [];
_sz.push(['accountid', '263883']);
_sz.push(['feedback', null]);
_sz.push(['callback', 'feedback', function() {*/
/*(function($) {
$(function() {
var t = _szfb.getopts();
$('#c_color').val(t.layout.colors.background);
$('#c_count').val(t.layout.preset.count);
$('#c_comment').attr('checked', t.layout.comment);
$('#c_fontsize').val(t.layout.font.size);
$('#c_br').val(t.layout.corners);
$('#customize input, #customize select').bind('change', function() {
var t = _szfb.getopts();
t.layout.colors.background = $('#c_color').val();
t.layout.preset.count = $('#c_count').val();
t.layout.comment = $('#c_comment').is(':checked');
t.layout.position = $('#c_position').val();
t.layout.font.name = $('#c_font').val();
t.layout.font.size = $('#c_fontsize').val();
t.layout.corners = $('#c_br').val();
_szfb.reload(t);
});
$('#state input[type="button"]').click(function() {
_szfb.setstate($(this).val());
});
$('.t_color').click(function() {
var t = _szfb.getopts();
t.layout.colors.text = $(this).val();
_szfb.reload(t);
});
});
})(szfbjQuery);*/
//}]);
/*
(function() {
var sz = document.createElement('script'); sz.type = 'text/javascript'; sz.async = true;
sz.src = 'http://ac.givetwise.dk/siteanalyze_ng/siteanalyze_ng.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sz, s);
})();
*/
</script>
</head>
<body>
<form id="customize">
<h2>Options</h2>
<p>Change a value and watch the box update itself.</p>
<label for="c_font">Font name</label>
<select name="font" id="c_font">
<option></option>
<option>Arial</option>
<option>Verdana</option>
<option>Times New Roman</option>
<option>Georgia</option>
</select><br />
<label for="c_fontsize">Font size</label>
<input type="text" name="fontsize" id="c_fontsize" /><br />
<label for="c_color">Color</label>
<input type="text" name="color" id="c_color" class="c" /><br />
<label for="t_color">Text color</label>
<input type="button" name="t_color" class="t_color" value="white" />
<input type="button" name="t_color" class="t_color" value="black" /><br />
<label for="c_count">Count</label>
<input type="text" name="count" id="c_count" class="c" /><br />
<label for="c_br">Border radius</label>
<input type="text" name="br" id="c_br" /><br />
<label for="c_comment">Comments?</label>
<input type="checkbox" name="comments" id="c_comment" /><br />
<label for="c_position">Position</label>
<select name="position" id="c_position">
<option value="E" selected>East</option>
<option value="SE">South-East</option>
<option value="S">South</option>
<option value="SW">South-West</option>
<option value="W">West</option>
</select><br />
</form>
<form id="state">
<h2>Set state</h2>
<input type="button" value="close" />
<input type="button" value="open" />
<input type="button" value="complete" />
<input type="button" value="hide" />
</form>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
<p>Hej</p>
</body>
</html>