{"id":704831,"date":"2022-12-03T20:23:25","date_gmt":"2022-12-04T01:23:25","guid":{"rendered":"https:\/\/midlandauctions.ca\/?p=704831"},"modified":"2024-11-11T16:58:38","modified_gmt":"2024-11-11T21:58:38","slug":"titles-of-lots","status":"publish","type":"post","link":"https:\/\/midlandauctions.ca\/?p=704831","title":{"rendered":"titles of lots"},"content":{"rendered":"This account is not authorized yet to use this page. You must have permission to access this area\n<!-- HFCM by 99 Robots - Snippet # 23: duplicate_and_truncate_form_field -->\n<style>\r\ntd {\r\n    width: 260px;\r\n}\r\n<\/style>\r\n<script>\r\nconst description = document.getElementById('description');\r\nconst name = document.getElementById('name');\r\n\r\ndescription.addEventListener('input', () => {\r\n  const value = description.value;\r\n  const truncatedValue = value.slice(0, 235);\r\n  name.value = truncatedValue;\r\n});\r\n\r\n\r\n<\/script>\r\n<script>\r\ndocument.getElementById('description').addEventListener('focus', function() {\r\n  var input = this;\r\n  var currentValue = input.value;\r\n\r\n  \/\/ Check if the input value contains the default \"Description will be updated shortly\"\r\n  var descriptionPlaceholder = 'Description will be updated shortly';\r\n  if (currentValue.includes(descriptionPlaceholder)) {\r\n    \/\/ Get the dynamic part before ' - ' (like (LOT: B181))\r\n    var prefix = currentValue.split(' - ')[0] + ' - ';\r\n    \r\n    \/\/ Update the value to just the dynamic part and remove the description text\r\n    input.value = prefix;\r\n    \r\n    \/\/ Set the cursor position right after the dash and dynamic lot info\r\n    input.setSelectionRange(input.value.length, input.value.length);\r\n  }\r\n});\r\n<\/script>\n<!-- \/end HFCM by 99 Robots -->\n\n<style>\nheader#branding {\n    display: none;\n}\n<\/style>\n","protected":false},"excerpt":{"rendered":" <a class=\"more-link\" href=\"https:\/\/midlandauctions.ca\/?p=704831\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-704831","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/midlandauctions.ca\/index.php?rest_route=\/wp\/v2\/posts\/704831","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/midlandauctions.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/midlandauctions.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/midlandauctions.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/midlandauctions.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=704831"}],"version-history":[{"count":4,"href":"https:\/\/midlandauctions.ca\/index.php?rest_route=\/wp\/v2\/posts\/704831\/revisions"}],"predecessor-version":[{"id":980858,"href":"https:\/\/midlandauctions.ca\/index.php?rest_route=\/wp\/v2\/posts\/704831\/revisions\/980858"}],"wp:attachment":[{"href":"https:\/\/midlandauctions.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=704831"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/midlandauctions.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=704831"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/midlandauctions.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=704831"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}