-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathindex.php
114 lines (95 loc) · 3.73 KB
/
index.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
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
<?php
//For feedback, suggestions, or issues please visit https://www.mattsshack.com/plex-movie-poster-display/
include_once('config.php');
$pmpImageSpeed = ($pmpImageSpeed * 1000);
?>
<html>
<head>
<title>Plex Movie Poster Display</title>
<!-- JQuery -->
<script src="assets/jquery-3.4.0/jquery-3.4.0.min.js"></script>
<script src="assets/jquery-3.4.0/jquery.marquee.min.js"></script>
<script src="assets/jquery-3.4.0/jquery.easing.min.js"></script>
<!-- Text Scaler -->
<script src="assets/fitty/fitty.js"></script>
<!-- Bootstrap JavaScript-->
<script src="assets/bootstrap-4.3.1/js/bootstrap.min.js"></script>
<!-- Bootstrap CSS-->
<link rel="stylesheet" href="assets/bootstrap-4.3.1/css/bootstrap.min.css">
<!-- Default Poster Template CSS -->
<link rel="stylesheet" href="assets/styles/default/poster.css">
<style>
.comingSoonTop {
font-size: <?php echo $comingSoonTopFontSize?>px;
}
.comingSoonBottom {
font-size: <?php echo $comingSoonBottomFontSize?>px;
}
.nowPlayingTop {
font-size: <?php echo $nowShowingTopFontSize?>px;
}
.nowPlayingBottom {
font-size: <?php echo $nowShowingBottomFontSize?>px;
}
</style>
<script>
$(function () {
$.getJSON('getData.php', function (data) {
$.each(data, function (key, val) {
if (key == "middle") {
$('#' + key).css('background-image', val);
} else {
$('#' + key).html(val);
}
});
fitty('.userText', {maxSize: 100, minSize: 10});
fitty.fitAll();
});
$(document).keypress(function(event){
var keycode = (event.keyCode ? event.keyCode : event.which);
console.log("Keypress: " + keycode);
if(keycode == '115'){
$('#myModal').modal({show:true});
$("#settingFrame").attr('src', 'admin.php');
}
});
$('#myModal').on('hidden.bs.modal', function(){
$('#settingFrame').html("").attr("src", "");
});
setInterval(function () {
$.getJSON('getData.php', function (data) {
$.each(data, function (key, val) {
if (key == "middle") {
$('#' + key).css('background-image', val);
} else {
$('#' + key).html(val);
}
});
});
fitty('.userText', {maxSize: 100, minSize: 10});
fitty.fitAll();
}, <?php echo $pmpImageSpeed; ?>);
});
</script>
</head>
<body>
<div id="container">
<div id="alert" align="center" class="center"></div>
<div id="top" style="overflow: hidden;" align="center" class="center"></div>
<div id="middle" class="middle"></div>
<div id="bottom" style="overflow: hidden;" align="center" class="center"></div>
</div>
<div class="modal fade" id="myModal">
<div class="modal-dialog modal-lg">
<div class="modal-content bmd-modalContent">
<div class="modal-body">
<div class="close-button">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<iframe class="embed-responsive-item" id='settingFrame' frameborder="0"></iframe>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</body>
</html>