-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathapi-explorer.html
More file actions
103 lines (93 loc) · 4.37 KB
/
api-explorer.html
File metadata and controls
103 lines (93 loc) · 4.37 KB
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
<!DOCTYPE html>
<html>
{% include head.html %}
<body class="no-js">
<div id="spinner" style="display: none;"></div>
{% include home-header.html %}
{{content}}
<div style="max-width: 1170px; margin: 0 auto; overflow: hidden;">
<div class="col-xs-12">
<div id="disqus_thread"></div>
</div>
</div>
<script src="{{'/scripts/components/api-key-service.js' | prepend: site.baseurl }}"></script>
<script src="{{'/scripts/components/events-counter.js' | prepend: site.baseurl }}" async></script>
<script>
var disqus_config = function () {
if (window.location.hostname != 'developer.ticketmaster.com') {
var pageURL = window.location.href.replace(window.location.host, 'developer.ticketmaster.com');
this.page.url = pageURL || "http://developer.ticketmaster.com/";
}
else this.page.url = document.URL || "http://developer.ticketmaster.com/";
this.page.identifier = "{{page.title}}";
};
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = '//ticketmasterapi.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
{% include home-footer.html %}
<div id="back-top">
<a href="javascript:void(0)"><span></span></a>
</div>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB3-oFbQWw_jEcG7r7WGdi99jNT3DqvRas&libraries=visualization"></script>
<script src="{{'/config.js' | prepend: site.baseurl }}"></script>
<script src="{{'/scripts/vendors/jquery-1.11.3.min.js' | prepend: site.baseurl }}"></script>
<script src="{{'/scripts/vendors/jquery-migrate-1.3.0.min.js' | prepend: site.baseurl }}"></script>
<script src="{{'/scripts/components/intro.js' | prepend: site.baseurl }}"></script>
<script src="{{'/scripts/vendors/bootstrap.min.js' | prepend: site.baseurl }}"></script>
<script src="{{'/scripts/vendors/slick.min.js' | prepend: site.baseurl }}"></script>
<script src="{{'/scripts/components/api-key-service.js' | prepend: site.baseurl }}"></script>
<script src="{{'/scripts/vendors/datetimepicker.js' | prepend: site.baseurl }}"></script>
<script src="{{'/scripts/components/api-explorer-datetimepicker.js' | prepend: site.baseurl }}"></script>
{% include lazy-selector-modal.html %}
<script src="{{'/scripts/components/lazy-selector.js' | prepend: site.baseurl }}"></script>
{% include classification-selector-modal.html %}
<script src="{{'/scripts/vendors/jstree.min.js' | prepend: site.baseurl }}"></script>
<script src="{{'/scripts/components/classification-selector.js' | prepend: site.baseurl }}"></script>
<script src="{{'/scripts/components/application-selector.js' | prepend: site.baseurl }}"></script>
<script>
/**
* add classification selector to api-explorer v1 (made by V.Menshutin)
*/
$(document).on( "finishInit", function( event, flag ) {
$('#classificationName').classificationSelector({selector:'classifications', use:'name'});
$('#classificationId').classificationSelector({selector:'classifications', use:'id'});
$('#classificationID').classificationSelector({selector:'classifications', use:'id'});
});
</script>
<!--<script src='https://maps.googleapis.com/maps/api/js?key=AIzaSyBQrJ5ECXDaXVlICIdUBOe8impKIGHDzdA'></script>-->
<script src="{{'/scripts/api-explorer/script.js' | prepend: site.baseurl }}"></script>
<script src="{{'/scripts/components/scroll-top.js' | prepend: site.baseurl }}"></script>
{% include feedback.html %}
<script src="{{'/scripts/components/custom-select.js' | prepend: site.baseurl }}"></script>
<script src="{{'/scripts/components/feedback.js' | prepend: site.baseurl }}"></script>
<script src="{{'/scripts/load-api-key.js' | prepend: site.baseurl }}"></script>
<script>
function checkUserKey() {
var userKey = sessionStorage.getItem('tk-api-key'),
_inputApiKey = 'input#api-key';
if (userKey !== null) {
replaceApiKey({userKey: userKey, inputApiKey: _inputApiKey })
} else {
/**
* check if user logged just before enter api-explorer page
*/
$(window).on('login', function (e, data) {
replaceApiKey({
userKey: data.key,
inputApiKey: _inputApiKey
});
});
}
}
function replaceApiKey(options) {
document.querySelector(options.inputApiKey).value = options.userKey;
}
checkUserKey();
</script>
<!--<script src="{{'/scripts/components/feedback.js' | prepend: site.baseurl }}"></script>-->
</body>
</html>