-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.js
113 lines (108 loc) · 2.44 KB
/
site.js
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
$(function () {
$('#js-news').ticker({
htmlFeed: false,
ajaxFeed: true,
feedUrl: '/feed.xml',
feedType: 'xml',
speed: 0.10,
debugMode: false,
controls: false,
titleText: '',
displayType: 'fade',
direction: 'ltr',
pauseOnItems: 4000,
fadeInSpeed: 600,
fadeOutSpeed: 600,
});
});
window.onresize = function(event) {
$(".content_r").css("padding-top",((window.innerHeight/2 - 225) + "px"));
}
jQuery(document).ready(function() {
var myCirclePlayer = new CirclePlayer("#jquery_jplayer_1",
{
oga: "static/audio/track.ogg",
mp3: "static/audio/track.mp3"
},
{
supplied: "oga,mp3",
cssSelectorAncestor: "#cp_container_1",
swfPath: "js",
wmode: "window",
loop: "true",
volume: 0.25,
});
setTimeout(function(){
if(localStorage.getItem("felicityBGMStatus") == "false"){
$("#jquery_jplayer_1").jPlayer("pause");
}
else if(localStorage.getItem("felicityBGMStatus") === "true"){
$("#jquery_jplayer_1").jPlayer("play");
}
else{
localStorage.setItem("felicityBGMStatus","true");
$("#jquery_jplayer_1").jPlayer("play");
}
$("#jquery_jplayer_1").bind($.jPlayer.event.play, function(){localStorage.setItem("felicityBGMStatus","true");});
$("#jquery_jplayer_1").bind($.jPlayer.event.pause, function(){localStorage.setItem("felicityBGMStatus","false");});
}, 1000);
$(".content_r").css("padding-top",((window.innerHeight/2 - 225) + "px"));
$('.fancybox').fancybox({
'padding' :0,
'type' :'iframe'
});
$('.fancybox_mn').fancybox({
'padding' :0,
'height' :400,
'width' :1312,
'type' :'iframe'
});
$('.fancybox_ev').fancybox({
'padding' :0,
'height' :500,
'width' :1100,
'type' :'iframe'
});
$('.fancybox_sp').fancybox({
'padding' :0,
'height' :700,
'width' :1100,
'type' :'iframe'
});
$('.fancybox_rg').fancybox({
'padding' :0,
'height' :440,
'width' :900,
'type' :'iframe'
});
$('.fancybox_webteam').fancybox({
'padding' :0,
'height' :490,
'width' :900,
'type' :'iframe'
});
$('.fancybox_contact').fancybox({
'padding' :0,
'height' :600,
'width' :1000,
'type' :'iframe'
});
$('.fancybox_teaser').fancybox({
'padding' :0,
'height' :360,
'width' :640,
'type' :'iframe'
});
$('.fancybox_up').fancybox({
'padding' :0,
'height' :300,
'width' :1200,
'type' :'iframe'
});
$('.fancybox_fsh').fancybox({
'padding' :0,
'height' :720,
'width' :1043,
'type' :'iframe'
});
});