mobile.js was already removed but not deleted

This commit is contained in:
Connor Turland 2017-03-17 00:29:24 +00:00
parent f4d1b8ba35
commit efd6258c7e

View file

@ -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