.toggleClass("disabled", editDisabled);
};
-$(document).ready(function () {
+$(function () {
// NB: Turns Turbo Drive off by default. Turbo Drive must be opt-in on a per-link and per-form basis
// See https://turbo.hotwired.dev/reference/drive#turbo.session.drive
Turbo.session.drive = false;
-$(document).ready(function () {
+$(function () {
// Attach referer to authentication buttons
$(".auth_button").each(function () {
const params = new URLSearchParams(this.search);
-$(document).ready(function () {
+$(function () {
let marker, map;
function setLocation(e) {
-$(document).ready(function () {
+$(function () {
const id = $("#id-embed"),
idData = id.data();
-$(document).ready(function () {
+$(function () {
const params = OSM.params();
let url = "/note/new";
//= require index/home
//= require router
-$(document).ready(function () {
+$(function () {
const map = new L.OSM.Map("map", {
zoomControl: false,
layerControl: false,
-$(document).ready(function () {
+$(function () {
// Preserve location hash in referer
if (location.hash) {
$("#referer").val($("#referer").val() + location.hash);
if (OSM.MATOMO) {
- $(document).ready(function () {
+ $(function () {
const base = location.protocol + "//" + OSM.MATOMO.location + "/";
let matomoTracker;
-$(document).ready(function () {
+$(function () {
$(".messages-table .destroy-message").on("turbo:submit-end", function (event) {
if (event.detail.success) {
event.target.dataset.isDestroyed = true;
-$(document).ready(function () {
+$(function () {
function openShareUrl(url, initialWidth = 640, initialHeight = 480) {
const width = Math.max(100, Math.min(screen.width, initialWidth));
const height = Math.max(100, Math.min(screen.height, initialHeight));
});
}());
-$(document).ready(function () {
+$(function () {
const defaultHomeZoom = 12;
let map, marker, deleted_lat, deleted_lon;
-$(document).ready(function () {
+$(function () {
const params = OSM.params();
if (params.lat && params.lon) {