forked from plotly/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.html
executable file
·184 lines (157 loc) · 7.95 KB
/
header.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<div class="headerbar">
<div class="headerbar-leftside">
<a href="https://plot.ly/feed/" class="logo" target="_blank">
<i class="ploticon-plotlylogo"></i>
<em>plotly</em>
</a>
</div>
<div class="headerbar-rightside hidesmall">
<a href="/alpha/workspace" id="toolsignin" class="headerbar-nav-item --product-header" target="_self">Sign In</a>
<a class="button --enterprise-quaternary" href="/alpha/workspace" id="signup" target="_self">
SIGN UP
</a>
<a href="#" onmouseover="dropDownMenu('create-menu')" onmouseout="hideDropDownMenu('create-menu')" target="_self">
<span class="headerbar-nav-item ">+ CREATE</span><span class="caret"></span>
</a>
<nav id="create-menu" role="menu" class="dropdown-menu" onmouseover="dropDownMenu('create-menu')" onmouseout="hideDropDownMenu('create-menu')" style="display:none; margin-left: 225px;">
<a href="/alpha/workspace" class="dropdown-menu-item" target="_blank">CHART</a>
<a href="/dashboards" class="dropdown-menu-item" target="_blank">DASHBOARD</a>
<a href="/powerpoint-online/" class="dropdown-menu-item" target="_blank">PRESENTATION</a>
<a href="/organize/?create=notebook" class="dropdown-menu-item" target="_blank">JUPYTER NOTEBOOK</a>
<a href="/alpha/workspace/?upload=sql" class="dropdown-menu-item" target="_blank">DATABASE QUERY</a>
</nav>
{% if page.type == 'example_index' %}
<a class="button" style="color:#69738a;" href="https://plot.ly/products/cloud/">
UPGRADE
</a>
{% else %}
<a class="button" href="https://plot.ly/products/cloud/">
UPGRADE
</a>
{% endif %}
</div>
<div class="headerbar-nav hidesmall">
<a href="https://plot.ly/feed/" target="_blank">
<span class="headerbar-nav-item ">Feed</span>
</a>
<a href="https://plot.ly/products/cloud/" target="_blank">
<span class="headerbar-nav-item ">Pricing</span></span>
</a>
<a href="https:/plot.ly/dashboards/" target="_blank">
<span class="headerbar-nav-item ">Dashboards</span></span>
</a>
<a href="https://plot.ly/api/" onmouseover="dropDownMenu('api-menu')" onmouseout="hideDropDownMenu('api-menu')" target="_self">
<span class="headerbar-nav-item ">API</span><span class="caret"></span>
</a>
<nav id="api-menu" role="menu" class="dropdown-menu" onmouseover="dropDownMenu('api-menu')" onmouseout="hideDropDownMenu('api-menu')" style="display:none; margin-left: 225px;">
<a href="/python" class="dropdown-menu-item" target="_blank">PYTHON</a>
<a href="/r" class="dropdown-menu-item" target="_blank">R</a>
<a href="/matlab" class="dropdown-menu-item" target="_blank">MATLAB</a>
<a href="/javascript-graphing-library" class="dropdown-menu-item" target="_blank">JAVASCRIPT</a>
<a href="/api" class="dropdown-menu-item" target="_blank">MORE</a>
</nav>
</div>
<div class="hamburger">
<a href='#popmenufull' onclick='return clickfullmenu();'>
<div id="harburger-menu"></div>
</a>
</div>
</div>
<!-- POP UP MENU -->
<div id="popmenufull" style="display:none;">
<div class="popupheader">
<div class="headerbar-leftside">
<a href="/feed/" class="logo">
<i class="ploticon-plotlylogo"></i>
<em>plotly</em>
</a>
</div>
<a href='#popmenufull' onclick='return clickfullmenu();'>
<div class="close"><img alt="close" src="http://i.imgur.com/esVZHwn.png"></div> </a>
</div>
<div class="popupmenu">
<ul>
<li><a href="https://plot.ly/feed/">Explore</a></li>
<li><a href="https://plot.ly/products/cloud/">Pricing</a></li>
<div onmouseover="dropDownMenu('sub-industries')" onmouseout="hideDropDownMenu('sub-industries')">
<li><a href="https://plot.ly/products/industries/">Industries</a></li>
<div class="sub-popmenu" id="sub-industries" style="display:none;">
<ul class="no-margin">
<li class="no-margin"><a href="https://plot.ly/products/industries/finance/">FINANCE</a></li>
<li class="no-margin"><a href="https://plot.ly/products/industries/insurance/">INSURANCE</a></li>
<li class="no-margin"><a href="https://plot.ly/products/industries/aerospace/">AEROSPACE</a></li>
<li class="no-margin"><a href="https://plot.ly/products/industries/energy/">ENERGY</a></li>
<li class="no-margin"><a href="https://plot.ly/products/industries/research-and-development/">RESEARCH & DEVELOPMENT</a></li>
<li class="no-margin"><a href="https://plot.ly/products/industries/automotive/">AUTOMOTIVE</a></li>
<li class="no-margin"><a href="https://plot.ly/products/industries/government-and-public/">GOVERNMENT</a></li>
<li class="no-margin"><a href="https://plot.ly/products/industries/pharma/">PHARMA & COMPUTATIONAL BIOLOGY</a></li>
<li class="no-margin"><a href="https://plot.ly/products/industries/journalism/">JOURNALISM</a></li>
<li class="no-margin"><a href="https://plot.ly/products/industries/business-intelligence/">BUSINESS INTELLIGENCE</a></li>
</ul>
</div>
</div>
<div onmouseover="dropDownMenu('sub-api')" onmouseout="hideDropDownMenu('sub-api')">
<li><a href="https://plot.ly/api/">API</a></li>
<div class="sub-popmenu" id="sub-api" style="display:none;">
<ul class="no-margin">
<li class="no-margin"><a href="/python">PYTHON</a></li>
<li class="no-margin"><a href="/r">R</a></li>
<li class="no-margin"><a href="/matlab">MATLAB</a></li>
<li class="no-margin"><a href="/javascript">JAVASCRIPT</a></li>
<li class="no-margin"><a href="/api">MORE</a></li>
</ul>
</div>
</div>
</ul>
</div>
</div>
<!-- POPUP MENU FULL PAGE -->
<script>
function clickfullmenu(){
var thediv=document.getElementById('popmenufull');
if(thediv.style.display == "none"){
thediv.style.display = "";
}else{
thediv.style.display = "none";
}
return false;
};
</script>
<!-- Drop Down Menu -->
<script>
function dropDownMenu(divID){
var chosenDiv = document.getElementById(divID);
console.log(chosenDiv);
if(chosenDiv.style.display == "none"){
chosenDiv.style.display = "block";
}
};
function hideDropDownMenu(divID){
var chosenDiv = document.getElementById(divID);
console.log(chosenDiv);
if(chosenDiv.style.display == "block"){
chosenDiv.style.display = "none";
}
}
</script>
<script>
console.log('got this');
var hamburgerDiv = document.getElementById('harburger-menu');
var currentUrl = window.location.href;
var newImg = document.createElement('img');
if (currentUrl === 'https://plot.ly/javascript/' ) {
newImg.setAttribute('src', '{{site.staticurl}}/images/white-hamburger-bg-transparent.png');
newImg.setAttribute('alt', 'Menu');
newImg.setAttribute('id', 'hamburgerlink');
newImg.setAttribute('onmouseover', 'this.src="{{site.staticurl}}/images/blue-hamburger-bg-transparent.png"');
newImg.setAttribute('onmouseout', 'this.src="{{site.staticurl}}/images/white-hamburger-bg-transparent.png"');
hamburgerDiv.appendChild(newImg);
} else {
newImg.setAttribute('src', 'http://i.imgur.com/o7Mxj6T.png');
newImg.setAttribute('alt', 'Menu');
newImg.setAttribute('id', 'hamburgerlink');
newImg.setAttribute('onmouseover', 'this.src="http://i.imgur.com/gj2TtuI.png"');
newImg.setAttribute('onmouseout', 'this.src="http://i.imgur.com/o7Mxj6T.png"');
hamburgerDiv.appendChild(newImg);
}
</script>