var $ui = $('<div>')
.attr('class', 'key-ui');
- $('<header>')
+ $('<div>')
.attr('class', 'sidebar_heading')
.appendTo($ui)
.append(
$('<h4>')
.text(I18n.t('javascripts.key.title')));
- var $section = $('<section>')
+ var $section = $('<div>')
+ .attr('class', 'section')
.appendTo($ui);
options.sidebar.addPane($ui);
var $ui = $('<div>')
.attr('class', 'layers-ui');
- $('<header>')
+ $('<div>')
.attr('class', 'sidebar_heading')
.appendTo($ui)
.append(
$('<h4>')
.text(I18n.t('javascripts.map.layers.header')));
- var baseSection = $('<section>')
- .addClass('base-layers')
+ var baseSection = $('<div>')
+ .attr('class', 'section base-layers')
.appendTo($ui);
$('<p>')
});
if (OSM.STATUS != 'api_offline' && OSM.STATUS != 'database_offline') {
- var overlaySection = $('<section>')
- .addClass('overlay-layers')
+ var overlaySection = $('<div>')
+ .attr('class', 'section overlay-layers')
.appendTo($ui);
$('<p>')
var $ui = $('<div>')
.attr('class', 'share-ui');
- $('<header>')
+ $('<div>')
.attr('class', 'sidebar_heading')
.appendTo($ui)
.append(
$('<h4>')
.text(I18n.t('javascripts.share.title')));
- var $linkSection = $('<section>')
- .attr('class', 'share-link')
+ var $linkSection = $('<div>')
+ .attr('class', 'section share-link')
.appendTo($ui);
$('<h4>')
border-left: 1px solid #CCC;
overflow: auto;
- section {
+ .section {
border-bottom: 1px solid #DDD;
padding: 15px;
}