This repository has been archived by the owner on Jan 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_test.html
141 lines (124 loc) · 6.15 KB
/
index_test.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# moontoast: http://ogp.me/ns/fb/moontoast#"
xml:lang="en" lang="en">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<title>Equinot</title>
<!-- Twitter Player Card Tags -->
<meta name="twitter:card" value="player">
<meta name="twitter:creator" value="@moontoast">
<meta name="twitter:title" value="Equinot">
<meta name="twitter:description" value="Equinot">
<meta name="twitter:image:src" value="">
<meta name="twitter:player" value="">
<meta name="twitter:player:height" value="460">
<meta name="twitter:player:width" value="398">
<!-- Facebook Open Graph Tags -->
<meta property="fb:app_id" content="186995641446" />
<meta property="og:site_name" content="Moontoast" />
<meta property="og:title" content="Equinot" />
<meta property="og:description" content="Equinot" />
<meta property="og:image" content="" />
<meta property="og:type" content="moontoast:offer" />
<meta property="og:url" content="" />
<meta property="og:video:height" content="460" />
<meta property="og:video:width" content="398" />
<meta property="og:video:type" content="application/x-shockwave-flash" />
<meta property="og:video" content="" />
<!-- Legacy Facebook Meta Tags (kept to ensure we do not break anything) -->
<meta name="title" content="Equinot" />
<meta name="description" content="Equinot" />
<link rel="image_src" href="" />
<meta name="video_height" content="460" />
<meta name="video_width" content="398" />
<meta name="video_type" content="application/x-shockwave-flash" />
<link rel="video_src" href=""/>
<style type="text/css">
html{
height: 460px;
margin: 0;
padding: 0;
}
body.embed_body {
padding: 0;
margin: 0;
text-align: center;
height:100%;
}
body.embed_body .logo_esembed {
display: block;
line-height: 8px;
}
body.embed_body .logo_esembed img {
margin: 0;
padding: 0;
}
body .embed_container {
background-image: none;
margin-top:15px;
}
body.embed_body {
background-color: #ffffff;
margin: 0;
padding: 0;
}
#movie {
display: none;
}
</style>
<meta name="description" content="Equinot"/>
<meta name="viewport" content="width=398px, height=460px, user-scalable=no" />
<link href="//netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.css" rel="stylesheet">
</head>
<body class="embed_body">
<div class="embed_container" id="embed_container">
<div id="movie">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="398" height="460" id="embeddedstore">
<param name="movie" value="https://s3.amazonaws.com/apps.moontoast.com/equinot/AppContainer.swf?offerEndpoint=/html5api/app/scripts/fixtures/chevy.json?" />
<param name="quality" value="high" />
<param name="bgcolor" value="#00ffff" />
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="true" />
<param name="flashVars" value="offerEndpoint=/app/scripts/fixtures/vidref.json/" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="https://s3.amazonaws.com/apps.moontoast.com/equinot/AppContainer.swf?offerEndpoint=/html5api_v3/app/scripts/fixtures/vidgen.json?" width="398" height="460">
<param name="quality" value="high" />
<param name="bgcolor" value="#00ffff" />
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="true" />
<param name="flashVars" value="offerEndpoint=app/scripts/fixtures/vidref.json?" />
<!--<![endif]-->
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</div>
<iframe id="iframe_1371508276578" height="100%" width="100%" frameborder="0" src="http://localhost/Html5/#id=vidgen&debug=true" style="margin: auto; background-image: url(http://live.moontoast.com/images/lightbox-ico-loading.gif); background-color: rgb(255, 255, 255); background-position: 50% 50%; background-repeat: no-repeat no-repeat;"></iframe>
<!--[if gte IE 9]>-->
<!-- bui ld:js scripts/amd-app.js -->
<!--<scr ipt data-main="app/scripts/config" data-uuid="ca7041e8-d5f4-11e2-92a5-22000A1D8824" src="app/scripts/libs/require/require.js"></scr ipt>-->
<!-- endbuild -->
<!--<![endif]-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent);
var isMs = /windows phone/i.test(navigator.userAgent);
var showDesktop = document.location.search.indexOf('mobile=false');
var showMobile = document.location.search.indexOf('mobile=true');
console.log(isMobile, isMs, showMobile, showDesktop);
if( ( !isMobile || isMs ) && showMobile == -1) {
$('#movie').show();
$('iframe').remove();
}else{
$('#embed_container').remove();
}
});
</script>
</body>
</html>