diff --git a/frontend/src/Metamaps/Mobile.js b/frontend/src/Metamaps/Mobile.js deleted file mode 100644 index 99ccc5ee..00000000 --- a/frontend/src/Metamaps/Mobile.js +++ /dev/null @@ -1,34 +0,0 @@ -/* global $ */ - -import Active from './Active' -import Map from './Map' - -const Mobile = { - init: function() { - var self = Mobile - - $('#menu_icon').click(self.toggleMenu) - $('#mobile_menu li a').click(self.liClick) - $('#header_content').click(self.titleClick) - self.resizeTitle() - }, - resizeTitle: function() { - // the 70 relates to padding - $('#header_content').width($(document).width() - 70) - }, - liClick: function() { - var self = Mobile - $('#header_content').html($(this).text()) - self.toggleMenu() - }, - toggleMenu: function() { - $('#mobile_menu').toggleClass('visible') - }, - titleClick: function() { - if (Active.Map) { - Map.InfoBox.open() - } - } -} - -export default Mobile