-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.html
133 lines (102 loc) · 5.33 KB
/
default.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
<!doctype html>
<html lang="en">
<head>
<title>To Kill A Dead Man</title>
<link href="https://fonts.googleapis.com/css?family=Roboto:300" rel="stylesheet">
<link rel="stylesheet" href="tkadm.css">
<meta name="ROBOTS" content="ALL" />
<meta name="Keywords" content="original compositions, audio post production, sound post production, sound mixing, sound editing, sound studio, editing sound, award winning sound" />
<meta name="Description" content="We deliver high quality, original compositions and soundtracks for any budget. Whether it is a feature film, drama, documentary, short film, advertisement or social media clip we can tailor a package to suit your specific needs." />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="google-site-verification" content="JtCx9yZ0j_1P7FsYVC8FmAkUlA2Z4VqOoo690G79Q4M" />
</head>
<body class="home-image" onload="IsSafari();">
<div>
<img class="tkadm_responsive" src="TKADM.svg" alt="TO KILL A DEAD MAN">
</div>
<div class="middle">
<ul class="navigation">
<li><a href="about.html">ABOUT</a></li>
<li><a href="audioreel.html">AUDIO REEL</a></li>
<li><a href="contact.html">CONTACT</a></li>
</ul>
</div>
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<div class="modal-body" onclick="hideSafariDialog();">
<p class="modal_text">This website makes noise, please enable sound in your browser settings.</p>
</div>
<div class="modal-footer">
<button class="closebutton" style"opacity: 1;" type="button" onclick="hideSafariDialog();"><b>Close</b></button>
</div>
</div>
</div>
<script src="howler.core.min.js" language="JavaScript" type="text/javascript"></script>
<script type="text/javascript">
var soundScape = new Howl({
src: ['./audio/Home_Soundscape.m4a', './audio/Home_Soundscape.mp3'],
autoplay: true,
loop: true,
volume: 0.5,
});
</script>
<iframe hidden src="./audio/silence.mp3" allow="autoplay" id="audio"></iframe>
<audio controls preload="auto" hidden id="Contact_Navigation" src="./audio/Contact_Navigation.mp3" type ="audio/mp3"> your browser does not support Html5</audio>
<audio controls preload="auto" hidden id="Audio_Reel_Navigation" src="./audio/Audio_Reel_Navigation.mp3" type ="audio/mp3"> your browser does not support Html5</audio>
<audio controls preload="auto" hidden id="TKADM_Logo_Navigation" src="./audio/TKADM_Logo_Navigation.mp3" type ="audio/mp3"> your browser does not support Html5</audio>
<audio controls preload="auto" hidden id="About_Navigation" src="./audio/About_Navigation.mp3" type ="audio/mp3"> your browser does not support Html5</audio>
<script>
// Get the modal
var modal = document.getElementById("myModal");
function hideSafariDialog() {
modal.style.display = "none";
}
function createCookie(cookieName, cookieValue, daysToExpire)
{
var date = new Date();
date.setTime(date.getTime()+(daysToExpire*24*60*60*1000));
document.cookie = cookieName + "=" + cookieValue + "; expires=" + date.toGMTString();
}
function accessCookie(cookieName)
{
var name = cookieName + "=";
var allCookieArray = document.cookie.split(';');
for(var i=0; i<allCookieArray.length; i++)
{
var temp = allCookieArray[i].trim();
if (temp.indexOf(name)==0)
return temp.substring(name.length,temp.length);
}
return "";
}
function checkCookie()
{
var result = accessCookie("dialogDisplayed");
if (result != "")
return result;
else
{
// create a cookie and return null so a dialog is displayed
createCookie("dialogDisplayed", "Displayed", 1000);
return "";
}
}
function IsSafari() {
var siteCookie = checkCookie();
var is_safari = (navigator.userAgent.toLowerCase().indexOf('safari') > -1) && (navigator.userAgent.toLowerCase().indexOf('chrome') == -1);
if (is_safari == true && siteCookie == "" && soundScape.playing() == false) {
// alert("This website makes noise, please enable sound in your browser settings.");
modal.style.display = "block";
}
if (true == false) {
modal.style.display = "block";
}
// document.cookie = "dialogDisplayed= ; expires = Thu, 01 Jan 1970 00:00:00 GMT";
}
</script>
</body>
</html>