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") |
| 19 { |
19 location.hash = hash; | 20 location.hash = hash; |
| 21 window.scrollTo(0, 0); |
| 22 } |
20 } | 23 } |
21 }) | 24 }) |
22 ).addClass("ui-tabs-nav-vertical"); | 25 ).addClass("ui-tabs-nav-vertical"); |
23 | 26 |
24 jQuery("#tabs-details").tabs(); | 27 jQuery("#tabs-details").tabs(); |
25 | 28 |
26 jQuery(window).on("hashchange", function() | 29 jQuery(window).on("hashchange", function() |
27 { | 30 { |
28 var hash = location.hash != "" ? location.hash : "#jobs-overview"; | 31 var hash = location.hash != "" ? location.hash : "#jobs-overview"; |
29 var escapedHash = hash.replace(/\+/g, "\\+"); | 32 var escapedHash = hash.replace(/\+/g, "\\+"); |
30 jQuery("[href=" + escapedHash + "]").click(); | 33 jQuery("[href=" + escapedHash + "]").click(); |
31 }); | 34 }); |
| 35 |
| 36 setTimeout(function() { window.scrollTo(0, 0); }, 0); |
32 }); | 37 }); |
33 </script> | 38 </script> |
34 | 39 |
35 | 40 |
36 <header class="page-title"> | 41 <header class="page-title"> |
37 <h1>Working at Eyeo</h1> | 42 <h1>Working at Eyeo</h1> |
38 </header> | 43 </header> |
39 | 44 |
40 <div id="jobs-info" class="content-block"> | 45 <div id="jobs-info" class="content-block"> |
41 <div id="tabs-openings" class="columns-container one-sidebar"> | 46 <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) }}"> | 89 <div id="{{ slugify(title) }}"> |
85 <h2>{{ title }}</h2> | 90 <h2>{{ title }}</h2> |
86 <? include jobs/openings/{{ slugify(title) }} ?> | 91 <? include jobs/openings/{{ slugify(title) }} ?> |
87 <a href="mailto:jobs@eyeo.com"><button>apply now</button></a> | 92 <a href="mailto:jobs@eyeo.com"><button>apply now</button></a> |
88 </div> | 93 </div> |
89 {% endfor %} | 94 {% endfor %} |
90 </div> | 95 </div> |
91 </div> | 96 </div> |
92 </div> | 97 </div> |
93 </div> | 98 </div> |
OLD | NEW |