mobile.js was already removed but not deleted
This commit is contained in:
parent
f4d1b8ba35
commit
efd6258c7e
1 changed files with 0 additions and 34 deletions
|
@ -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
|
Loading…
Reference in a new issue