Skip to content

Commit bf31e37

Browse files
committed
Include index.html which is manually uploaded to developer.(focus.)teamleader.eu
1 parent 43dd20d commit bf31e37

File tree

3 files changed

+179
-0
lines changed

3 files changed

+179
-0
lines changed

public/apiary.js

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
var embed = new Apiary.Embed({
2+
subdomain: 'teamleadercrm',
3+
preferences: {
4+
header: '.header',
5+
defaultHost: 'production',
6+
collapseMachineColumnByDefault: true,
7+
permalinks: true,
8+
console: false
9+
},
10+
customFonts: {
11+
families: [
12+
{
13+
name: 'Proxima Nova',
14+
style: 'normal',
15+
weight: 200,
16+
formats: [
17+
{
18+
format: 'woff',
19+
url:
20+
'https://focus.teamleader.eu/images/fonts/proximanova-reg-webfont.woff'
21+
}
22+
]
23+
}
24+
]
25+
},
26+
theme: {
27+
fontFamily: 'Proxima Nova',
28+
tableOfContents: {
29+
backgroundColor: '#fdfdfd',
30+
borderRight: '1px solid #e9e9e9',
31+
fontSize: '16px',
32+
section: {
33+
title: {
34+
color: '#00ACA9'
35+
}
36+
}
37+
},
38+
humanColumn: {
39+
content: {
40+
apiName: {
41+
display: 'none',
42+
},
43+
section: {
44+
title: {
45+
color: '#3b4151',
46+
fontSize: '35px'
47+
},
48+
apiDescription: {
49+
h3: {
50+
marginTop: '20px'
51+
},
52+
code: {
53+
color: '#00ACA9'
54+
},
55+
pre: {
56+
padding: '15px',
57+
backgroundColor: '#fafafc',
58+
borderRadius: '5px'
59+
},
60+
ul: {
61+
li: {
62+
marginBottom: '5px'
63+
}
64+
}
65+
}
66+
}
67+
}
68+
}
69+
}
70+
});
71+
72+
const msg = embed.onReady(function (iframeElement, event) {
73+
if (typeof console._commandLineAPI !== 'undefined') {
74+
console._commandLineAPI.clear();
75+
} else if (typeof console._inspectorCommandLineAPI !== 'undefined') {
76+
console._inspectorCommandLineAPI.clear();
77+
} else if (typeof console.clear !== 'undefined') {
78+
console.clear();
79+
}
80+
81+
console.log('Hello fellow developer!');
82+
console.log('Thank you for showing interest in our source code. Perhaps you\'d like to join our team?');
83+
console.log('To learn more, visit: https://www.teamleader.eu/company/engineering');
84+
});

public/index.html

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
5+
<!--
6+
Hello fellow developer! Looks like you're interested in our source code.
7+
Perhaps you'd like to join our team? To learn more, visit:
8+
9+
https://www.teamleader.eu/company/engineering
10+
-->
11+
12+
<meta charset="utf-8">
13+
<title>Teamleader API Documentation</title>
14+
<meta name="viewport" content="initial-scale=1.0, width=device-width,
15+
height=device-height, minimum-scale=1.0, maximum-scale=1.0,
16+
user-scalable=no">
17+
<link rel="shortcut icon" type="image/x-icon" href="https://focus.teamleader.eu/favicon.ico" />
18+
<link rel="stylesheet" href="style.css" type="text/css" />
19+
20+
<!-- Google Tag Manager -->
21+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
22+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
23+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
24+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
25+
})(window,document,'script','dataLayer','GTM-MM9KDVH');</script>
26+
<!-- End Google Tag Manager -->
27+
</head>
28+
<body>
29+
<!-- Google Tag Manager (noscript) -->
30+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MM9KDVH"
31+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
32+
<!-- End Google Tag Manager (noscript) -->
33+
34+
<header class="header">
35+
<img src="https://focus.teamleader.eu/images/logo.svg" alt="Teamleader"
36+
height="48" width="180"/>
37+
<span class="pipe">|</span>
38+
<span>API documentation</span>
39+
</header>
40+
41+
<script src="https://api.apiary.io/seeds/embed.js"></script>
42+
<script src="apiary.js?v4"></script>
43+
</body>
44+
</html>

public/style.css

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
@font-face {
2+
font-family: "proximanova";
3+
src: url("https://focus.teamleader.eu/images/fonts/proximanova-reg-webfont.woff") format("woff")
4+
}
5+
@font-face {
6+
font-family: "proximanova";
7+
src: url("https://focus.teamleader.eu/images/fonts/proximanova-sbold-webfont.woff") format("woff");
8+
font-weight: 700
9+
}
10+
html,
11+
body {
12+
margin: 0px;
13+
padding: 0px;
14+
width: 100%;
15+
height: 100%;
16+
overflow: hidden;
17+
}
18+
body {
19+
font: 100%/1.5 "proximanova", trebuchet ms, Verdana, Arial, Helvetica, sans-serif;
20+
}
21+
header {
22+
position: relative;
23+
padding: 10px 20px;
24+
background: #00aca9;
25+
color: white;
26+
font-size: 20px;
27+
box-shadow: 0 2px 14px rgba(0, 0, 0, .2);
28+
font-weight: 300;
29+
}
30+
header:after {
31+
content: '';
32+
background: url("https://marketplace.teamleader.eu/61a23995e69719a69e444c2266197830.png");
33+
opacity: 0.1;
34+
top: 0;
35+
left: 0;
36+
bottom: 0;
37+
right: 0;
38+
position: absolute;
39+
z-index: 0;
40+
}
41+
header .pipe {
42+
display: inline-block;
43+
padding: 0 .5em;
44+
color: rgba(255, 255, 255, 0.3);
45+
}
46+
header span {
47+
display: inline-block;
48+
font-size: 14px;
49+
font-weight: 300;
50+
color: rgba(255, 255, 255, 0.7);
51+
}

0 commit comments

Comments
 (0)