forked from Esri/social-media-map-template-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreview.html
81 lines (79 loc) · 3.48 KB
/
preview.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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<title></title>
<meta name="Keywords" content="EsriSMT, Social Media Template, Social Media Map, Twitter Map, Flickr Map, YouTube Map, Social Heatmap" />
<meta name="Description" content="The Social Media Template has an innovative use of social media, which allows you to display up-to-date, keyword-targeted social media points on a map." />
<!-- Facebook -->
<meta property="og:image" content="images/ui/facebook.png"/>
<meta property="og:site_name" content="esri"/>
<!-- End Facebook -->
<!-- iOS -->
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<link rel="apple-touch-icon" href="images/ui/apple-touch-icon.png" />
<!-- End iOS -->
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="//jsdev.arcgis.com/3.10/js/esri/css/esri.css" />
<link rel="stylesheet" type="text/css" href="css/application.css" />
<link rel="stylesheet" type="text/css" href="css/preview.css" />
<link rel="stylesheet" type="text/css" href="css/dialog.css" />
<link rel="stylesheet" type="text/css" href="css/resize.css" />
<link rel="stylesheet" type="text/css" href="css/dijit.css" />
<!--[if gte IE 9]>
<link rel="stylesheet" type="text/css" href="css/ie9.css">
<![endif]-->
<!-- End CSS -->
</head>
<body class="modernGrey">
<div id="previewContainer">
</div>
<div id="alertDialog">
</div>
</body>
<!-- JavaScript -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-215788-43']);
_gaq.push(['_setDomainName', ".arcgis.com"]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript" src="js/application/djConfig.js"></script>
<script type="text/javascript" src="//jsdev.arcgis.com/3.10/"></script>
<script type="text/javascript" src="js/plugins/respond.js"></script>
<script type="text/javascript">
require(['dojo/ready', 'dojo/parser'], function (ready, parser) {
var userAgent = window.navigator.userAgent;
dojo.showInfoWindow = false;
dojo.isTablet = false;
dojo.isMobileDevice = false;
dojo.isBrowser = false;
dojo.isiOS = false;
if (userAgent.indexOf("iPhone") >= 0 || userAgent.indexOf("iPad") >= 0) {
dojo.isiOS = true;
}
if ((userAgent.indexOf("Android") >= 0 && userAgent.indexOf("Mobile") >= 0) || userAgent.indexOf("iPhone") >= 0) {
dojo.isMobileDevice = true;
}
else if (userAgent.indexOf("iPad") >= 0 || userAgent.indexOf("Android") >= 0) {
dojo.isTablet = true;
}
else {
dojo.isBrowser = true;
}
require(["application/preview", "config/config"], function (application, configOptions) {
application(configOptions);
});
});
</script>
<!-- End JavaScript -->
</html>