From efd6258c7e2761cbfb186f48119d1b57f4216d16 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Fri, 17 Mar 2017 00:29:24 +0000 Subject: [PATCH] mobile.js was already removed but not deleted --- frontend/src/Metamaps/Mobile.js | 34 --------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 frontend/src/Metamaps/Mobile.js 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