/
interactive_chooser.html
1926 lines (1675 loc) · 61.1 KB
/
interactive_chooser.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
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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{% extends "macros_templates/engine.html" %}
{% block title %}Choose a License{% endblock title %}
{% block headers %}
<link rel="stylesheet" type="text/css"
href="{{ request.staticdirect('includes/zero.css') }}" />
<link rel="stylesheet" type="text/css"
href="/wp-content/themes/creativecommons.org/engine.css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript">
// Symbol table for the interactive license chooser.
var CHOOSER = {
"LIVE" : false,
"WIRING" : {
// This is used to bind functions to input elements.
"watching" : {
'radio' : [
'field_commercial',
'field_derivatives'
],
'select' : [
'field_jurisdiction',
'field_format'
],
'text' : [
'field_worktitle',
'field_attribute_to_name',
'version'
],
'url' : [
'field_attribute_to_url',
'field_sourceurl',
'field_morepermissionsurl'
]
},
// This is used to set up multiple views for the bottom right panel.
// hint -> {"input name" : [default visibility, corresponding #id],}
"metadata" : {
"html+rdfa" : [true, "#for_htmlrdfa"],
"xmp" : [false, "#for_xmp"],
"offline" : [false, "#for_offline"]
}
},
// Timers
"TIMER" : {
"ping" : -1
},
// These are values used for generating output
"STATE" : {
"current" : {}, // current state of input elements
"metadata" : {}, // values entered for metadata fields
"htmlrdfa_template" : "",
"large_icon" : "",
"small_icon" : "",
"icon_is_small" : false,
"query_string" : ""
},
// Constants
"CONST" : {
"img_path" : "/wp-content/themes/creativecommons.org/images/",
"fc_approved" : "/wp-content/themes/creativecommons.org/images/fc_approved_tiny.png",
"links" : {
"fc_by_sa" : "/freeworks",
"fc_by" : "/freeworks"
}
},
// Templates (may or may not be constants)
"TEMPLATE" : {
"htmlrdfa" : "",
"nondigital" : ""
},
// Functions
"CALL" : {
"ping" : false,
"delayed_ping" : false,
"refresh_ui" : false,
"refresh_state" : false,
"popup" : false
},
// Callbacks
"CALLBACK" : {
"main" : false,
"ping" : false
}
};
// CSS adjustments and ui event wiring.
$(document).ready(
CHOOSER.CALLBACK.main = function () {
"use strict";
CHOOSER.TEMPLATE.htmlrdfa = $("#template_htmlrdfa").html();
CHOOSER.TEMPLATE.nondigital = $("#template_nondigital").html();
// height correction on overflowing boxes
var max_height = function (lhs, rhs) {
var a = lhs.height();
var b = rhs.height();
if (a > b) { return a; }
else { return b; }
};
var query = function (row, col) {
try {
var q = ".ui_row:nth-of-type(" + row + ")";
q += " .ui_box:nth-of-type(" + col + ")";
return $(q);
}
catch (err) {
// IE8 hack // 8^y
try {console.warn(err);} catch (err) {}
return $("#"+$(".ui_row .ui_box")[col-1 + (row-1)*2].id);
}
};
for (var i=1; i<=2; i+=1) {
var height = max_height(query(i, 1), query(i, 2));
query(i, 1).height(height);
query(i, 2).height(height);
}
// Dummy out href links for license characteristic icons
var icons = ["by", "sa", "nc", "nd"];
for (var i=0; i<icons.length; i+=1) {
var found = $("#"+icons[i]+"_icon")[0];
found.href = "javascript:void(0)";
found.target = "_self";
}
// set initial cgi state
CHOOSER.CALL.refresh_state();
// setup events
var key, i, k, watched, selected, found, etc;
for (key in CHOOSER.WIRING.watching) {
if (!CHOOSER.WIRING.watching.hasOwnProperty(key)) { continue; }
watched = CHOOSER.WIRING.watching[key];
for (i=0; i<watched.length; i+=1) {
selected = $("[name="+watched[i]+"]");
if (key ==="select" && $("html.ie8").length > 0) {
selected.click(CHOOSER.CALL.ping);
}
else {
selected.change(CHOOSER.CALL.ping);
}
if (key === "text" || key === "url") {
selected.keyup(CHOOSER.CALL.delayed_ping);
}
}
}
etc = ["field_metadata_standard", "field_iconsize"];
for (i=0; i<etc.length; i+=1) {
selected = $("[name="+etc[i]+"]");
selected.change(CHOOSER.CALL.refresh_ui);
}
// activate css stuff that is irrelivant without javascript
$("body").addClass("require_js");
// Ping the server for updates. This populates some of the CHOOSER.STATE vars, too.
CHOOSER.CALL.ping(true);
CHOOSER.LIVE = true;
// Set up text-on-click for textarea elements
$("textarea").each(function(i,el) { el.onclick=function () { this.select(); }; })
});
// Shows a nice inline popup
CHOOSER.CALL.popup = function (help_key) {
var prefix = "#help_lookup #help_" + help_key + " div.";
$("#popup_title")[0].innerHTML = $(prefix+"title")[0].innerHTML;
$("#popup_message")[0].innerHTML = $(prefix+"msg")[0].innerHTML;
$("#popup_close")[0].innerHTML = $(prefix+"close_buttons").length?
$(prefix+"close_buttons")[0].innerHTML :
$("#popup_close_default")[0].innerHTML;
$("#popup_screen")[0].style.display="table";
};
// Calls to the server are minimized by having the server generate templates,
// and filling them in here each time the text in a field changes.
CHOOSER.CALL.refresh_ui = function (event_ctx, data) {
"use strict";
var name, value, buffer, format, metakind;
// Change the bottom right panel for the correct metadata format
metakind = $("#metadata_format")[0].value;
if (!CHOOSER.WIRING.metadata[metakind][0]) {
for (format in CHOOSER.WIRING.metadata) {
if (CHOOSER.WIRING.metadata.hasOwnProperty(format)) {
CHOOSER.WIRING.metadata[format][0] = format == metakind;
$(CHOOSER.WIRING.metadata[format][1])[0].style.display = format == metakind ? "block" : "none";
}
}
}
// Update xmp download link
$("#xmp_download_link")[0].href = "/choose/metadata.xmp?" + CHOOSER.STATE.query_string;
// Update generated html for html+rdfa
buffer = CHOOSER.TEMPLATE.htmlrdfa;
for (name in CHOOSER.STATE.metadata) {
if (!CHOOSER.STATE.metadata.hasOwnProperty(name)) { continue; }
value = CHOOSER.STATE.metadata[name];
while (buffer.indexOf(name) !== -1) {
buffer = buffer.replace(name, value);
}
}
// Update html badge icon size
CHOOSER.STATE.icon_is_small = $("[name=field_iconsize]")[1].checked;
if (CHOOSER.STATE.icon_is_small) {
buffer = buffer.replace("88x31.png", "80x15.png");
}
$("#codetocopy")[0].value = buffer;
$("#for_htmlrdfa .results-preview")[0].innerHTML = "<div>" + buffer + "</div>";
// If additional callback data is available, update related fields as well:
if (data != undefined) {
$("#nc_slot")[0].style.display = data.license_code.nc ? "table-cell" : "none";
$("#nd_slot")[0].style.display = data.license_code.nd ? "table-cell" : "none";
$("#sa_slot")[0].style.display = data.license_code.sa ? "table-cell" : "none";
if (data.currency !== "") {
if (data.currency == "eu") {
$("#nc_slot").removeClass("yen");
$("#nc_slot").addClass("euro");
}
if (data.currency == "jp") {
$("#nc_slot").removeClass("euro");
$("#nc_slot").addClass("yen");
}
}
else {
$("#nc_slot").removeClass("yen");
$("#nc_slot").removeClass("euro");
}
$("#license_title_link")[0].innerHTML = data.license_title;
$("#license_title_link")[0].href = data.uri;
$("#xmp_license_name")[0].innerHTML = data.license_title;
$("#fc_approved_box")[0].style.display = data.libre ? "table" : "none";
$("#fc_dubious_box")[0].style.display = !data.libre ? "table" : "none";
buffer = CHOOSER.TEMPLATE.nondigital;
buffer = buffer.replace("LICENSE_NAME", data.license_title);
buffer = buffer.replace("LICENSE_URL", data.uri);
$("#infotocopy")[0].value = buffer;
if (data.libre) {
var update_link = function (query) {
$(query)[0].href = CHOOSER.CONST.links[!!data.license_code.sa ? "fc_by_sa" : "fc_by"];
}
update_link("#fc_approved_box .whatis a");
update_link("#fc_approved_box a.fc_logo_link");
}
}
// weird bugfix for lackluster css support in IE8 and IE9
var panel = $("#license")[0];
panel.innerHTML += "";
};
// Callback to update the UI & state based on the response from the server.
CHOOSER.CALLBACK.ping = function (data) {
"use strict";
// update state
CHOOSER.TEMPLATE.htmlrdfa = data.license_html;
CHOOSER.STATE.large_icon = data.license_logo;
CHOOSER.STATE.small_icon = data.license_slim_logo;
// refresh ui
CHOOSER.CALL.refresh_ui(undefined, data);
};
// Poll the server for license and metadata info. Checks for relevance, first.
CHOOSER.CALL.ping = function (force) {
"use strict";
var state_changed= CHOOSER.CALL.refresh_state();
CHOOSER.CALL.refresh_ui();
if (state_changed || force === true) {
$.getJSON('./xhr_api', CHOOSER.STATE.current, CHOOSER.CALLBACK.ping);
}
};
// Calls a ping in 100ms, but do not schedule more than one at a time.
CHOOSER.CALL.delayed_ping = function () {
"use strict";
if (CHOOSER.TIMER.ping === -1) {
CHOOSER.TIMER.ping = setTimeout(function () {
CHOOSER.TIMER.ping = -1;
CHOOSER.CALL.ping();
}, 100);
}
};
// This function updates the values of CHOOSER.state vars current, query_string, and metadata.
// Returns True if CHOOSER.state has changed, otherwise returns false.
CHOOSER.CALL.refresh_state = function () {
"use strict";
refresh_version_field();
var attrib = function (attr, value) { return "["+attr+"="+value+"]"; };
var state = {}, query, node, name, type, i, k, key, found, fail, query_string, query_part;
var field_by_type = [];
query_string = "";
// for each type of form field we are watching...
for (key in CHOOSER.WIRING.watching) {
if (!CHOOSER.WIRING.watching.hasOwnProperty(key)) { continue; }
field_by_type = CHOOSER.WIRING.watching[key];
query_part = "";
// some vars used to generate a jquery query...
if (key === "select") {
node = key;
type = false;
}
else {
node = "input";
type = key;
}
// for each form field in the given type...
for (i=0; i<field_by_type.length; i+=1) {
// Build and query the jquery query...
name = field_by_type[i];
query = node + attrib("name", name);
if (!!type) { query += attrib("type", type); }
if (type === "select") {
query += ">option[selected=selected]";
}
found = $(query);
if (found.length === 0) {
throw ("$( "+query+" ) returned no results!");
}
// Then, Extract a useful value from "found"...
if (type === "radio") {
// If the field type is 'radio', then found is a list.
fail=true;
// iterate on 'found' list to find the value we care about...
for (k=0; k<found.length; k+=1) {
if (found[k].checked) {
found = found[k].value;
fail = false;
break;
}
}
if (fail) {
throw ("$( "+query+" ) returned no checked radio buttons!");
}
}
else {
// The fiel type was not 'radio', so just grab the value directly
found = found[0].value;
}
// Ignore empty text fields when generating the query_string...
if (found !== "") {
query_part = name + "=" + found;
if (query_string !== "") {
query_part = "&"+query_part;
}
query_string += query_part;
}
// Store the actual value of the metadata field so we can use it with a template...
if (type === "text" || type === "url") {
CHOOSER.STATE.metadata[name] = found;
found = found === "" ? "" : name;
}
state[name] = found;
}
}
// Finish up, set remaining CHOOSER.STATE vars and return if state has changed
state.lang = "{{ form.misc.lang }}";
CHOOSER.STATE.query_string = query_string;
var state_changed = false;
for (var param in state) {
if (state.hasOwnProperty(param) && state[param] !== CHOOSER.STATE.current[param]) {
CHOOSER.STATE.current = state;
state_changed = true;
break;
}
}
return state_changed;
}
var showing_jurisdictions = false;
function refresh_version_field() {
// Set version to 3.0 only when the jurisdiction selector is visible
// and is set to 'Unported'
if (showing_jurisdictions && "" == $("#field_jurisdiction").val())
$("#version").val("3.0");
else
$("#version").val("");
}
// can't get chooser state machine to play nice, so here's a horrible
// hack to keep the version updated
//setInterval(refresh_version_field, 200);
function show_jurisdiction_section() {
showing_jurisdictions = true;
$("#field_jurisdiction").val("");
$("#show_jurisdictions_section").hide();
$("#hide_jurisdictions_section").show();
$(".ui_box").animate({"min-height": "28em"}, 500, function() {
$("#jurisdiction_section").show();
});
refresh_version_field();
CHOOSER.CALL.ping();
}
function hide_jurisdiction_section() {
showing_jurisdictions = false;
$("#field_jurisdiction").val("");
$("#show_jurisdictions_section").show();
$("#hide_jurisdictions_section").hide();
$("#jurisdiction_section").hide();
$(".ui_box").animate({"min-height": "22em"}, 500);
refresh_version_field();
CHOOSER.CALL.ping();
}
////
</script>
<style type="text/css">
/* z-order stuff for IE8... */
#freedoms {
z-index: 4;
}
#license {
z-index: 3;
}
#metadata {
z-index: 2;
}
#internets {
z-index: 1;
}
/* everything else: */
select, input, textarea {
background-color: white;
color: #222;
padding: 1px;
}
input[type=radio] {
/* fix for webkit browsers on osx */
width: 20px;
height: 15px;
/* because ie8 defaults to white for some reason */
background-color: transparent;
}
#metadata .help_button {
margin-top: 5px!important;
}
.help_button {
//position: absolute; /* prevents help button from influence box packing */
display: none;
margin-top: 5px;
background-image: url("/wp-content/themes/creativecommons.org/images/hint_button.png");
width: 25px;
height: 25px;
}
.help_button:ho2ver {
background-image: url("/wp-content/themes/creativecommons.org/images/hint_button_ho2ver.png");
cursor: pointer;
}
.require_js #content[dir="ltr"] .ui_box>.help_button, .require_js #content[dir="ltr"] #internets .help_button {
display: inline-block;
left: 20px;
}
.require_js #content[dir="rtl"] .ui_box>.help_button, .require_js #content[dir="rtl"] #internets .help_button {
display: inline-block;
right: 20px;
}
.require_js #content[dir="ltr"] .help_highlight:ho2ver>.help_button {
display: inline-block;
margin-top: 10px;
left: 20px;
}
.require_js #content[dir="rtl"] .help_highlight:ho2ver>.help_button {
display: inline-block;
margin-top: 10px;
right: 20px;
}
#metadata .help_highlight {
position: relative;
margin-left: -25px;
margin-right: -25px;
margin-top: -4px;
margin-bottom: 8px;
padding-left: 3px;
padding-right: 3px;
padding-top: 4px;
padding-bottom: 4px;
border-radius: 8px;
}
.require_js #metadata .help_highlight_remove:ho2ver {
margin-left: -26px;
margin-right: -26px;
margin-top: -5px;
margin-bottom: 7px;
}
.require_js #metadata .help_highlight:ho2ver .help_button {
position: absolute;
display: inline-block;
top: 0px;
left: 13px;
}
#metadata .metatable {
display: table;
border-collapse: collapse;
width: 383px;
}
#metadata .metatable input {
display: inline-block;
width: 170px;
// height: 17px;
margin-top: 3px;
margin-bottom: 3px;
margin-right: 16px;
margin-left: 0px;
}
#metadata .metatable select {
display: inline-block;
width: 174px;
height: 21px;
margin-top: 3px;
margin-bottom: 3px;
margin-right: 16px;
margin-left: 0px;
}
#metadata .metatable>span:first-of-type {
display: table-cell !important;
text-align: right;
width: 143px;
padding: 0px;
padding-left: 37px;
vertical-align: middle;
min-height: 27px;
}
#metadata .metatable>span:last-of-type {
display: table-cell !important;
text-align: left;
width: 203px;
padding: 0px;
vertical-align: middle;
}
#metadata .metatable>span>label {
width: 143px;
padding: 0px;
color: black;
}
.help_highlight {
border-radius: 8px;
margin-left: -24px;
padding-left: 24px;
margin-right: -24px;
padding-right: 24px;
}
.require_js .help_highlight:ho2ver {
border: 1px solid #aaa;
margin-left: -25px;
margin-right: -25px;
margin-top: -1px;
margin-bottom: -1px;
}
#popup_screen {
position: fixed;
top: 0px;
left: 0px;
bottom: 0px;
right: 0px;
z-index: 10000;
background-color: #4c6404;
background-color: rgba(22, 34, 15, .9);
display: none; /* set to 'table' instead of block to show */
margin: auto;
box-sizing:border-box;
-moz-box-sizing:border-box;
-webkit-box-sizing:border-box;
width: 100%;
height: 100%;
cursor: pointer;
}
#popup_alignment {
display: table-cell;
vertical-align: middle;
}
#popup_body {
background-color: rgba(255, 255, 255, .8);
border: 1px solid black;
border-radius: 8px;
max-width: 500px;
padding: 2em;
margin: auto;
text-align: center;
cursor: default;
}
#popup_title {
margin-bottom: 1em;
}
#popup_message {
text-align: justify;
}
#popup_close {
position: screen;
bottom: 0px;
font-size: 20px;
display: block;
margin-top: 2em;
text-align: center;
}
#popup_close a {
background-color: rgba(255, 255, 255, .8);
border-radius: 8px;
margin-right: 1em;
padding: .5em;
}
#instructional_fluff, #copyright_fluff, #publishing_fluff,
#show_jurisdictions_section, #hide_jurisdictions_section {
text-align: center;
font-size: 16px;
max-width: 800px;
margin: auto;
word-spacing: 1px;
}
#instructional_fluff,
#copyright_fluff {
margin-bottom: .2em;
}
#copyright_fluff span:first-of-type {
padding-right: 1.6em;
}
#show_jurisdictions_section,
#hide_jurisdictions_section {
margin-bottom: .5em;
}
#hide_jurisdictions_section {
display: none;
}
#other_stuff {
width: 800px;
margin: auto;
margin-top: 2em;
}
.ui_row {
display: block;
text-align: center;
margin: 0px;
padding: 0px;
min-width: 840px;
}
h4 {
line-height: 1.6em;
}
#freedoms .subtitle {
margin-bottom: 1em;
}
#freedoms h4 {
margin-left: 2em;
}
#freedoms select {
margin-top: 6px;
margin-left: 5em;
margin-bottom: 20px;
}
#freedoms ul, #internets ul {
margin-left: 5em;
list-style: none;
display: table;
}
#freedoms li, #internets li {
display: table-cell;
width: 128px;
}
#freedoms li:only-of-type {
width: 256px!important;
}
#freedoms label {
float: none;
}
#jurisdiction_section {
display: none;
}
#field_jurisdiction {
margin-left: 2em;
margin-bottom: 2em;
}
#license {
position: relative;
text-align: center;
}
#license #badge {
display: block;
margin: auto;
margin-top: 20px;
margin-bottom: 8px;
}
.fc_info_box {
position: absolute;
display: table;
width: 345px;
bottom: 30px;
}
#content[dir="ltr"] .fc_info_box {
right: 30px;
}
#content[dir="rtl"] .fc_info_box {
left: 30px;
}
.fc_info_box>div {
display: table-cell;
text-align: center;
}
.fc_logo_link {
display: inline-block;
margin-top: -15px;
margin-bottom: -15px;
outline: none!important;
}
#content[dir="ltr"] .fc_logo_link {
margin-left: 10px;
margin-right: -18px;
}
#content[dir="rtl"] .fc_logo_link {
margin-right: 10px;
margin-left: -18px;
}
#fc_dubious_box .fc_logo_link {
display: block;
width: 76px;
height: 76px;
cursor: pointer;
background-image: url('/wp-content/themes/creativecommons.org/images/fc_dubious.png');
}
.require_js #fc_dubious_box .fc_logo_link:ho2ver {
background-image: url('/wp-content/themes/creativecommons.org/images/fc_dubious_ho2ver.png');
}
#fc_approved_box .fc_logo_link {
display: block;
width: 76px;
height: 76px;
cursor: pointer;
background-image: url('/wp-content/themes/creativecommons.org/images/fc_approved_tiny.png');
}
.whatis {
font-size: 16px;
font-weight: bold;
border-top: 1px solid #aaa;
border-bottom: 1px solid #aaa;
vertical-align: middle;
width: 100%;
}
#license_title {
//position: absolute;
display: block;
top: 68px;
left: 30px;
right: 30px;
font-size: 24px;
font-weight: bold;
text-align: center;
word-spacing: 2px;
z-index: 50;
}
.license_icons {
display: table;
width: 100%;
max-width: 334px;
margin: auto;
margin-top: 88px;
margin-bottom: 93px;
}
.license_icons>div {
display: table-cell;
vertical-align: middle;
text-align: center;
}
.license_icons>div>a {
display: inline-block;
width: 70px;
height: 70px;
outline: none;
}
#cc_icon {
background-image: url('/wp-content/themes/creativecommons.org/images/chooser_cc.png');
}
#by_icon {
background-image: url('/wp-content/themes/creativecommons.org/images/chooser_by.png');
}
#sa_icon {
background-image: url('/wp-content/themes/creativecommons.org/images/chooser_sa.png');
}
#nd_icon {
background-image: url('/wp-content/themes/creativecommons.org/images/chooser_nd.png');
}
#nc_icon {
background-image: url('/wp-content/themes/creativecommons.org/images/chooser_nc.png');
}
.euro #nc_icon {
background-image: url('/wp-content/themes/creativecommons.org/images/chooser_nc_eu.png')!important;
}
.yen #nc_icon {
background-image: url('/wp-content/themes/creativecommons.org/images/chooser_nc_jp.png')!important;
}
#cc_icon:ho2ver {
background-image: url('/wp-content/themes/creativecommons.org/images/chooser_cc_ho2ver.png');
}
#by_icon:ho2ver {
background-image: url('/wp-content/themes/creativecommons.org/images/chooser_by_ho2ver.png');
}
#sa_icon:ho2ver {
background-image: url('/wp-content/themes/creativecommons.org/images/chooser_sa_ho2ver.png');
}
#nd_icon:ho2ver {
background-image: url('/wp-content/themes/creativecommons.org/images/chooser_nd_ho2ver.png');
}
#nc_icon:ho2ver {
background-image: url('/wp-content/themes/creativecommons.org/images/chooser_nc_ho2ver.png');
}
.euro #nc_icon:ho2ver {
background-image: url('/wp-content/themes/creativecommons.org/images/chooser_nc_eu_ho2ver.png')!important;
}
.yen #nc_icon:ho2ver {
background-image: url('/wp-content/themes/creativecommons.org/images/chooser_nc_jp_ho2ver.png')!important;
}
.license_icons>img {
display: inline-block;
}
.ui_box {
//display: inline-block;
//background-color: #f5f5f5;
//width: 334px;
min-height: 348px;
padding: 32px;
padding-bottom: 1px;
margin: 10px 7px;
border: 1px solid #393839;
border-radius: 4px;
vertical-align: text-top;
text-align: left;
position: relative; /* required for the arrows to work right */
}
.ui_box h2 {
text-align: center;
margin-left: 12px;
margin-right: 12px;
}
#metadataentry {
margin-top: 1em;
}
#metadata input,
#format_selection,
#metadata_format {
display: block;
width: 170px;
float: right;
margin-left: 1em;
}
#internets {
text-align: center;
position: relative;
}
.results-preview {
display: table;
width: 334px;
height: 150px;
vertical-align: middle;
}
.results-preview div {
display: table-cell;
vertical-align: middle;
}
#copy_caption {
//position: absolute;
bottom: 13em;
left: 0px;
font-weight: bold;
text-align: center;
width: 100%;
}
#xmp_download_box,
#infotocopy,
#codetocopy {
display: block;
//position: absolute;
bottom: 2em;
left: 20px;
width: 350px;