Reformat html files
This commit is contained in:
parent
9a208ca108
commit
52f1e77fe1
205 changed files with 11096 additions and 11086 deletions
|
@ -1,27 +1,27 @@
|
|||
{% compress css %}
|
||||
{% if TIMEZONE_BG %}
|
||||
<style>
|
||||
.map-wrap {
|
||||
background: url('{{TIMEZONE_BG}}')
|
||||
}
|
||||
</style>
|
||||
{% endif %}
|
||||
<link rel="stylesheet" href="{{ static('libs/timezone-map/timezone-map.css') }}">
|
||||
{% if TIMEZONE_BG %}
|
||||
<style>
|
||||
.map-inset {
|
||||
background: url('{{TIMEZONE_MAP}}') 50% 50%
|
||||
}
|
||||
|
||||
.map-wrap {
|
||||
display: none
|
||||
}
|
||||
|
||||
.featherlight {
|
||||
z-index: 1000
|
||||
}
|
||||
|
||||
.featherlight .featherlight-content {
|
||||
min-width: 80%
|
||||
}
|
||||
.map-wrap {
|
||||
background: url('{{TIMEZONE_BG}}')
|
||||
}
|
||||
</style>
|
||||
{% endif %}
|
||||
<link rel="stylesheet" href="{{ static('libs/timezone-map/timezone-map.css') }}">
|
||||
<style>
|
||||
.map-inset {
|
||||
background: url('{{TIMEZONE_MAP}}') 50% 50%
|
||||
}
|
||||
|
||||
.map-wrap {
|
||||
display: none
|
||||
}
|
||||
|
||||
.featherlight {
|
||||
z-index: 1000
|
||||
}
|
||||
|
||||
.featherlight .featherlight-content {
|
||||
min-width: 80%
|
||||
}
|
||||
</style>
|
||||
{% endcompress %}
|
|
@ -1,45 +1,45 @@
|
|||
{% compress js %}
|
||||
<script src="{{ static('libs/featherlight/featherlight.min.js') }}" type="text/javascript"></script>
|
||||
<script type="text/javascript" src="{{ static('libs/timezone-map/timezone-picker.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$('#open-map').featherlight({
|
||||
afterOpen: function () {
|
||||
timezone_picker($('.featherlight-inner .map-inset'), $('#id_timezone'),
|
||||
'{{ static('libs/timezone-map/timezone-picker.json') }}');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
if ('geolocation' in navigator) {
|
||||
$(function () {
|
||||
$('<span>, <a href="#" id="detect-tz">detect</a></span>').insertAfter('#open-map');
|
||||
$('#detect-tz').click(function (event) {
|
||||
var button = $(this).html('detecting...');
|
||||
navigator.geolocation.getCurrentPosition(function (position) {
|
||||
$.ajax({
|
||||
url: 'https://maps.googleapis.com/maps/api/timezone/json',
|
||||
data: {
|
||||
location: position.coords.latitude + ',' + position.coords.longitude,
|
||||
timestamp: Math.floor(Date.now() / 1000)
|
||||
}
|
||||
}).done(function (data) {
|
||||
if (data['timeZoneId'])
|
||||
$('#id_timezone').val(data.timeZoneId).change();
|
||||
else
|
||||
alert('Invalid response from Google: ' + data);
|
||||
}).fail(function (jqXHR, status) {
|
||||
alert(status);
|
||||
}).always(function () {
|
||||
button.html('detect');
|
||||
});
|
||||
}, function () {
|
||||
button.html('detect');
|
||||
alert('Unable to detect');
|
||||
});
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
<script src="{{ static('libs/featherlight/featherlight.min.js') }}" type="text/javascript"></script>
|
||||
<script type="text/javascript" src="{{ static('libs/timezone-map/timezone-picker.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$('#open-map').featherlight({
|
||||
afterOpen: function () {
|
||||
timezone_picker($('.featherlight-inner .map-inset'), $('#id_timezone'),
|
||||
'{{ static('libs/timezone-map/timezone-picker.json') }}');
|
||||
}
|
||||
</script>
|
||||
});
|
||||
});
|
||||
|
||||
if ('geolocation' in navigator) {
|
||||
$(function () {
|
||||
$('<span>, <a href="#" id="detect-tz">detect</a></span>').insertAfter('#open-map');
|
||||
$('#detect-tz').click(function (event) {
|
||||
var button = $(this).html('detecting...');
|
||||
navigator.geolocation.getCurrentPosition(function (position) {
|
||||
$.ajax({
|
||||
url: 'https://maps.googleapis.com/maps/api/timezone/json',
|
||||
data: {
|
||||
location: position.coords.latitude + ',' + position.coords.longitude,
|
||||
timestamp: Math.floor(Date.now() / 1000)
|
||||
}
|
||||
}).done(function (data) {
|
||||
if (data['timeZoneId'])
|
||||
$('#id_timezone').val(data.timeZoneId).change();
|
||||
else
|
||||
alert('Invalid response from Google: ' + data);
|
||||
}).fail(function (jqXHR, status) {
|
||||
alert(status);
|
||||
}).always(function () {
|
||||
button.html('detect');
|
||||
});
|
||||
}, function () {
|
||||
button.html('detect');
|
||||
alert('Unable to detect');
|
||||
});
|
||||
event.preventDefault();
|
||||
});
|
||||
});
|
||||
}
|
||||
</script>
|
||||
{% endcompress %}
|
Loading…
Add table
Add a link
Reference in a new issue