forked from plotly/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.html
154 lines (127 loc) · 5.6 KB
/
base.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
142
143
144
145
146
147
148
149
150
151
152
153
154
<!DOCTYPE html>
<html>
{% include head.html %}
<body data-spy="scroll" data-target=".watch" style="position:relative;">
{% include google-tag-body.html %}
<!--[if lt IE 10]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
your browser</a> to improve your experience.</p>
<![endif]-->
{% include lang-splash-banner.html %}
{% include _new/_page-components/_header-main.html %}
{% include breadcrumb.html %}
<main class="--page page--single --index">
<div class="--wrap">
<!-- aside - Main Sidebar-->
<aside class="--sidebar-container">
<div class="--sidebar-fixed reference" data-spy="affix" data-offset-top="435" data-offset-bottom="610" id="where">
<header class="--sidebar-header">Navigation</header>
<nav class="--sidebar-body watch" id="where">
<ul class="--sidebar-list">
<li class="--sidebar-item">
{% include search-suggestions.html %}
</li>
</ul>
{% if page.display_as == "shiny" %}
<ul class="--sidebar-list2">
<li class="--sidebar-item">
<a href="https://plot.ly/products/dash/">Know Python? Try Dash!
</a>
</li>
</ul>
{% endif %}
<button class="--btn back">
<div class="icon">
<svg style="width:24px;height:24px" viewBox="0 0 24 24">
<path fill="#000000"
d="M20,10V14H11L14.5,17.5L12.08,19.92L4.16,12L12.08,4.08L14.5,6.5L11,10H20Z"/>
</svg>
</div>
<span><a href="/{% if page.language == "plotly_js" %}javascript{% else %}{{page.language}}{% endif %}/">Back to {% if page.language == "plotly_js" %}plotly.js{% elsif page.language == "ggplot2" %}ggplot2{% elsif page.language == "matlab" %}MATLAB{% elsif page.language == "matplotlib" %}matplotlib{% else %}{{page.language | capitalize}}{% endif %}
</a></span>
</button>
</nav>
</div>
</aside>
<!-- Main-->
<section class="--page-body --tutorial-index --base">
<header class="--welcome">
<div class="--welcome-body">
<!--div.--wrap-inner-->
<div class="--title">
<div class="--category-img">
{% if page.language == "excel" %}
<img src="http://plot.ineffable.co/images/excel-logo.png" alt="">
{% endif %}
{% if page.language == "python" %}
<img src="https://images.plot.ly/language-icons/api-home/python-logo.png" alt="">
{% endif %}
{% if page.language == "pandas" %}
<img src="https://plot.ly/gh-pages/documentation/static/images/pandas-small.png" alt="">
{% endif %}
{% if page.language == "matlab" %}
<img src="https://images.plot.ly/language-icons/api-home/matlab-logo.png" alt="">
{% endif %}
{% if page.language == "julia" %}
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/69/Julia_prog_language.svg/2000px-Julia_prog_language.svg.png" alt="">
{% endif %}
{% if page.language == "r" %}
<img src="https://images.plot.ly/language-icons/api-home/r-logo.png" alt="">
{% endif %}
{% if page.language == "matplotlib" %}
<img src="https://images.plot.ly/language-icons/matplotlib.png" alt="">
{% endif %}
{% if page.language == "ggplot2" %}
<img src="https://images.plot.ly/language-icons/api-home/ggplot2-logo.png" alt="">
{% endif %}
{% if page.language == "plotly_js" %}
<img src="https://images.plot.ly/language-icons/api-home/js-logo.png" alt="Plotly.js">
{% endif %}
{% if page.language == "nodejs" %}
<img src="https://images.plot.ly/language-icons/api-home/nodejs-logo.png" alt="Node.js">
{% endif %}
{% if page.language == "scala" %}
<img src="https://images.plot.ly/plotly-documentation/thumbnail/scala-small.jpg" alt="Scala">
{% endif %}
</div>
<div class="--body">
{% unless page.ignore_header %}
<h1>
{{page.name}} in {% if page.language == "plotly_js" %}plotly.js{% elsif page.language == "ggplot2" %}ggplot2{% elsif page.language == "matlab" %}MATLAB{% elsif page.language == "matplotlib" %}matplotlib{% else %}{{page.language | capitalize}}{% endif %}
</h1>
<p>{{page.description}} </p>
{% endunless %}
{% include lang-navigation.html %}
</div>
</div>
</div>
</header>
<!-- Start Plotly Basics Section -->
<section class="tutorial-content">
{{ content }}
</section>
<!--End Plotly Basics Section-->
{% if page.language == "plotly_js" %}
<section class="meta">
<div class="wrap">
<img width="250" src="{{ site.staticurl }}/images/browser_support.png">
<p style="text-align: center;">
<b style="color:#447adb;">plotly.js</b> runs on all SVG-compatible browsers
</p>
</div>
</section>
{% endif %}
</section>
</div>
</main>
{% include helpbox.html %}
{% include _new/_page-components/insertSidebarElement.html %}
{% include _new/_page-components/_footer-main.html %}
{% if page.language == "r" or page.language == "python" %}
<script>
window.intercomSettings = { app_id: "anwi88es" };
</script>
<script>(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/anwi88es';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()</script>
{% endif %}
</body>
</html>