|
50
|
1 |
$(function() { |
|
65
|
2 |
|
|
|
3 |
$('.msg_box i.close').click(function(){ |
|
|
4 |
$(this).parent().animate({"opacity":"0"},300,function(){ |
|
|
5 |
$(this).slideUp(); |
|
|
6 |
}); |
|
|
7 |
}); |
|
|
8 |
|
|
50
|
9 |
$(".cinecard_lightbox_background").click(function() { |
|
|
10 |
$("#renkan_container").children().remove(); |
|
|
11 |
$(".cinecard_wrap").hide(); |
|
|
12 |
}); |
|
|
13 |
|
|
|
14 |
$(".show_cinecard").click(function() { |
|
|
15 |
var movieli = $(this).parents(".gift_movie"); |
|
|
16 |
$(".cinecard_title").text(movieli.find(".gift_movie_title").text()); |
|
|
17 |
$(".cinecard_sender label").text(movieli.find(".gift_user label").text()); |
|
|
18 |
$(".cinecard_sender p").text(movieli.find(".gift_user p").text()); |
|
51
|
19 |
$(".cinecard_wrap").fadeIn(); |
|
50
|
20 |
|
|
|
21 |
//Renkan initialization |
|
|
22 |
var _renkan = new Rkns.Renkan({ |
|
|
23 |
user_id: "u-iri", |
|
|
24 |
language: "fr_cg", |
|
|
25 |
container: "renkan_container", |
|
|
26 |
editor_mode: false, |
|
|
27 |
show_bins: false, |
|
|
28 |
show_top_bar: false, |
|
|
29 |
show_minimap: false, |
|
|
30 |
show_node_circles: false, |
|
|
31 |
clip_node_images: false, |
|
|
32 |
node_size_base: 40, |
|
51
|
33 |
autoscale_padding: 100, |
|
50
|
34 |
default_user_color: "#808080", |
|
|
35 |
buttons_background: "#101010", |
|
|
36 |
static_url: renkan_base, |
|
51
|
37 |
label_untitled_nodes: false, |
|
|
38 |
show_node_tooltip_image: false, |
|
|
39 |
show_node_tooltip_color: false, |
|
|
40 |
show_edge_tooltip_color: false |
|
50
|
41 |
}); |
|
|
42 |
|
|
|
43 |
Rkns.jsonIO(_renkan, { |
|
|
44 |
url: cinecard_url_template.replace('{{gift-id}}', movieli.attr("data-gift-id")) |
|
|
45 |
}); |
|
|
46 |
|
|
|
47 |
return false; |
|
|
48 |
}); |
|
|
49 |
|
|
|
50 |
|
|
|
51 |
}); |