(function () {
'use strict';
var modalBox = {};
modalBox.modal = document.getElementById("myModal");
modalBox.modalpic = document.getElementById("myModalpic");
modalBox.triggerBtn = document.getElementById("triggerBtn");
modalBox.triggerBtnpic = document.getElementById('triggerBtnpic')
modalBox.closeBtn = document.getElementById("closeBtn");
modalBox.closeBtnpic = document.getElementById("closeBtnpic");
modalBox.show = function () {
$("#data-content-line").load(location.href + "#data-content-line");
this.modal.style.display = "block";
}
modalBox.showpic = function () {
$('#myModalpic').show();
}
modalBox.close = function () {
this.modal.style.display = "none";
}
modalBox.closepic = function () {
$('#myModalpic').hide();
}
modalBox.init = function () {
var that = this;
this.triggerBtn.onclick = function () {
that.show();
}
this.triggerBtnpic.onclick = function () {
that.showpic();
}
this.closeBtn.onclick = function () {
that.close();
}
this.closeBtnpic.onclick = function () {
that.closepic();
}
}
modalBox.init();
})()