OLD | NEW |
1 title=Working at Eyeo | 1 title=Working at Eyeo |
2 | 2 |
3 {% set openings = ("Web Developer", "C++ Developer", "Android Developer", "DevOp
s Engineer", "HR Manager", "PR Intern", "Business Development Manager") %} | 3 {% set openings = ("Web Developer", "C++ Developer", "Android Developer", "DevOp
s Engineer", "HR Manager", "PR Intern", "Business Development Manager") %} |
4 {% macro slugify(title) %}{{ title|lower|replace(" ", "-") }}{% endmacro %} | 4 {% macro slugify(title) %}{{ title|lower|replace(" ", "-") }}{% endmacro %} |
5 | 5 |
6 <script src="/js/jquery.ui.core.min.js"></script> | 6 <script src="/js/jquery.ui.core.min.js"></script> |
7 <script src="/js/jquery.ui.widget.min.js"></script> | 7 <script src="/js/jquery.ui.widget.min.js"></script> |
8 <script src="/js/jquery.ui.tabs.min.js"></script> | 8 <script src="/js/jquery.ui.tabs.min.js"></script> |
9 <script> | 9 <script> |
10 jQuery(function() | 10 jQuery(function() |
11 { | 11 { |
12 jQuery( | 12 jQuery( |
13 "ul:first", jQuery("#tabs-openings").tabs( | 13 "ul:first", jQuery("#tabs-openings").tabs( |
14 { | 14 { |
15 activate: function(event, ui) | 15 activate: function(event, ui) |
16 { | 16 { |
17 var hash = ui.newTab.find("a")[0].hash; | 17 var hash = ui.newTab.find("a")[0].hash; |
18 if (hash != "#jobs-overview") | 18 if ((hash != "#jobs-overview" ? hash : "") != document.location.hash) |
19 location.hash = hash; | 19 history.pushState(null, null, hash); |
20 } | 20 } |
21 }) | 21 }) |
22 ).addClass("ui-tabs-nav-vertical"); | 22 ).addClass("ui-tabs-nav-vertical"); |
23 | 23 |
24 jQuery("#tabs-details").tabs(); | 24 jQuery("#tabs-details").tabs(); |
25 | 25 |
26 jQuery(window).on("hashchange", function() | 26 jQuery(window).on("hashchange", function() |
27 { | 27 { |
28 var hash = location.hash != "" ? location.hash : "#jobs-overview"; | 28 var hash = location.hash != "" ? location.hash : "#jobs-overview"; |
29 var escapedHash = hash.replace(/\+/g, "\\+"); | 29 var escapedHash = hash.replace(/\+/g, "\\+"); |
30 jQuery("[href=" + escapedHash + "]").click(); | 30 jQuery("[href=" + escapedHash + "]").click(); |
31 }); | 31 }); |
| 32 |
| 33 setTimeout(function() { window.scrollTo(0, 0); }, 0); |
32 }); | 34 }); |
33 </script> | 35 </script> |
34 | 36 |
35 | 37 |
36 <header class="page-title"> | 38 <header class="page-title"> |
37 <h1>Working at Eyeo</h1> | 39 <h1>Working at Eyeo</h1> |
38 </header> | 40 </header> |
39 | 41 |
40 <div id="jobs-info" class="content-block"> | 42 <div id="jobs-info" class="content-block"> |
41 <div id="tabs-openings" class="columns-container one-sidebar"> | 43 <div id="tabs-openings" class="columns-container one-sidebar"> |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 <div id="{{ slugify(title) }}"> | 86 <div id="{{ slugify(title) }}"> |
85 <h2>{{ title }}</h2> | 87 <h2>{{ title }}</h2> |
86 <? include jobs/openings/{{ slugify(title) }} ?> | 88 <? include jobs/openings/{{ slugify(title) }} ?> |
87 <a href="mailto:jobs@eyeo.com"><button>apply now</button></a> | 89 <a href="mailto:jobs@eyeo.com"><button>apply now</button></a> |
88 </div> | 90 </div> |
89 {% endfor %} | 91 {% endfor %} |
90 </div> | 92 </div> |
91 </div> | 93 </div> |
92 </div> | 94 </div> |
93 </div> | 95 </div> |
OLD | NEW |